Index: test/BaseJsTest.h |
diff --git a/test/BaseJsTest.h b/test/BaseJsTest.h |
index 1f66a5830a89cbfa65f9ffc3e18ca3c9fd3475ca..d4c290dbe75287071fb197335c6c380d4e9b94bc 100644 |
--- a/test/BaseJsTest.h |
+++ b/test/BaseJsTest.h |
@@ -138,6 +138,8 @@ public: |
} |
}; |
+AdblockPlus::JsEnginePtr createJsEngine(const AdblockPlus::AppInfo& appInfo = AdblockPlus::AppInfo()); |
+ |
class BaseJsTest : public ::testing::Test |
{ |
protected: |
@@ -145,11 +147,12 @@ protected: |
virtual void SetUp() |
{ |
- jsEngine = AdblockPlus::JsEngine::New(); |
+ jsEngine = createJsEngine(); |
jsEngine->SetLogSystem(AdblockPlus::LogSystemPtr(new ThrowingLogSystem)); |
jsEngine->SetFileSystem(AdblockPlus::FileSystemPtr(new ThrowingFileSystem)); |
jsEngine->SetWebRequest(AdblockPlus::WebRequestPtr(new ThrowingWebRequest)); |
} |
}; |
+ |
#endif |