Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/Prefs.cpp

Issue 29367003: Issue #4711 - Rewrite legacy thread facilities
Patch Set: Created Dec. 7, 2016, 4:44 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/Thread.h ('K') | « test/GlobalJsObject.cpp ('k') | test/Thread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« src/Thread.h ('K') | « test/GlobalJsObject.cpp ('k') | test/Thread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld