Index: test/BaseJsTest.h |
diff --git a/test/BaseJsTest.h b/test/BaseJsTest.h |
index 48a01f219c4a2718bbb96d367be7d263882c581c..a38a8fb5044e98b178ad57292c852de3d791754b 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,7 +147,7 @@ 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)); |