Index: test/UpdateCheck.cpp |
=================================================================== |
--- a/test/UpdateCheck.cpp |
+++ b/test/UpdateCheck.cpp |
@@ -113,7 +113,7 @@ |
Reset(); |
ForceUpdateCheck(); |
- AdblockPlus::Sleep(100); |
+ std::this_thread::sleep_for(std::chrono::milliseconds(100)); |
ASSERT_FALSE(eventCallbackCalled); |
ASSERT_TRUE(updateCallbackCalled); |
@@ -150,7 +150,7 @@ |
Reset(); |
ForceUpdateCheck(); |
- AdblockPlus::Sleep(100); |
+ std::this_thread::sleep_for(std::chrono::milliseconds(100)); |
ASSERT_TRUE(eventCallbackCalled); |
ASSERT_EQ(1u, eventCallbackParams.size()); |
@@ -189,7 +189,7 @@ |
Reset(); |
ForceUpdateCheck(); |
- AdblockPlus::Sleep(100); |
+ std::this_thread::sleep_for(std::chrono::milliseconds(100)); |
ASSERT_TRUE(eventCallbackCalled); |
ASSERT_EQ(1u, eventCallbackParams.size()); |
@@ -213,7 +213,7 @@ |
Reset(); |
ForceUpdateCheck(); |
- AdblockPlus::Sleep(100); |
+ std::this_thread::sleep_for(std::chrono::milliseconds(100)); |
ASSERT_FALSE(eventCallbackCalled); |
ASSERT_TRUE(updateCallbackCalled); |
@@ -235,7 +235,7 @@ |
Reset(); |
ForceUpdateCheck(); |
- AdblockPlus::Sleep(100); |
+ std::this_thread::sleep_for(std::chrono::milliseconds(100)); |
ASSERT_FALSE(eventCallbackCalled); |
ASSERT_TRUE(updateCallbackCalled); |
@@ -257,7 +257,7 @@ |
Reset(); |
ForceUpdateCheck(); |
- AdblockPlus::Sleep(100); |
+ std::this_thread::sleep_for(std::chrono::milliseconds(100)); |
ASSERT_FALSE(eventCallbackCalled); |
ASSERT_TRUE(updateCallbackCalled); |