Index: test/Prefs.cpp |
=================================================================== |
--- a/test/Prefs.cpp |
+++ b/test/Prefs.cpp |
@@ -122,7 +122,7 @@ |
filterEngine->SetPref("patternsbackupinterval", jsEngine->NewValue(48)); |
filterEngine->SetPref("subscriptions_autoupdate", jsEngine->NewValue(false)); |
- AdblockPlus::Sleep(100); |
+ std::this_thread::sleep_for(std::chrono::milliseconds(100)); |
ASSERT_FALSE(fileSystem->prefsContents.empty()); |
@@ -193,7 +193,7 @@ |
ASSERT_TRUE(filterEngine->GetPref("suppress_first_run_page")->AsBool()); |
filterEngine->SetPref("suppress_first_run_page", jsEngine->NewValue(false)); |
- AdblockPlus::Sleep(100); |
+ std::this_thread::sleep_for(std::chrono::milliseconds(100)); |
ASSERT_FALSE(fileSystem->prefsContents.empty()); |