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

Unified Diff: test/BaseJsTest.cpp

Issue 29367507: Issue #3595 - Add an actual scheduler; use joined threads for file system
Patch Set: Created Dec. 14, 2016, 5:38 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.cpp
===================================================================
--- a/test/BaseJsTest.cpp
+++ b/test/BaseJsTest.cpp
@@ -22,3 +22,16 @@
static AdblockPlus::ScopedV8IsolatePtr isolate = std::make_shared<AdblockPlus::ScopedV8Isolate>();
return AdblockPlus::JsEngine::New(appInfo, isolate);
}
+
+void BaseJsTest::SetUp()
+{
+ jsEngine = CreateJsEngine();
+ jsEngine->SetLogSystem(AdblockPlus::LogSystemPtr(new ThrowingLogSystem));
+ jsEngine->SetFileSystem(AdblockPlus::FileSystemPtr(new ThrowingFileSystem));
+ jsEngine->SetWebRequest(AdblockPlus::WebRequestPtr(new ThrowingWebRequest));
+}
+
+void BaseJsTest::TearDown()
+{
+ jsEngine->WaitForQuietScheduler();
+}

Powered by Google App Engine
This is Rietveld