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

Unified Diff: test/FilterEngine.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
Index: test/FilterEngine.cpp
===================================================================
--- a/test/FilterEngine.cpp
+++ b/test/FilterEngine.cpp
@@ -522,12 +522,12 @@
filterEngine->SetUpdateAvailableCallback(mockUpdateAvailableCallback);
filterEngine->ForceUpdateCheck(&NoOpUpdaterCallback);
- AdblockPlus::Sleep(100);
+ std::this_thread::sleep_for(std::chrono::milliseconds(100));
ASSERT_EQ(1, timesCalled);
filterEngine->RemoveUpdateAvailableCallback();
filterEngine->ForceUpdateCheck(&NoOpUpdaterCallback);
- AdblockPlus::Sleep(100);
+ std::this_thread::sleep_for(std::chrono::milliseconds(100));
ASSERT_EQ(1, timesCalled);
}
« src/Thread.h ('K') | « test/FileSystemJsObject.cpp ('k') | test/GlobalJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld