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(); |
+} |