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

Unified Diff: test/BaseJsTest.h

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/BaseJsTest.h
===================================================================
--- a/test/BaseJsTest.h
+++ b/test/BaseJsTest.h
@@ -18,9 +18,10 @@
#ifndef MOCKS_H
#define MOCKS_H
+#include <thread>
+
#include <AdblockPlus.h>
#include <gtest/gtest.h>
-#include "../src/Thread.h"
class ThrowingLogSystem : public AdblockPlus::LogSystem
{
@@ -124,7 +125,7 @@
AdblockPlus::ServerResponse GET(const std::string& url, const AdblockPlus::HeaderList& requestHeaders) const
{
while (true)
- AdblockPlus::Sleep(100000);
+ std::this_thread::sleep_for(std::chrono::seconds(100));
return AdblockPlus::ServerResponse();
}
};
« src/Thread.h ('K') | « src/WebRequestJsObject.cpp ('k') | test/FileSystemJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld