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

Unified Diff: test/BaseJsTest.h

Issue 6233220328718336: Issue #3593, #1197- fix isolate management (Closed)
Patch Set: fix typo Created Jan. 29, 2016, 11:29 a.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
« src/JsEngine.cpp ('K') | « src/JsValue.cpp ('k') | test/BaseJsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« src/JsEngine.cpp ('K') | « src/JsValue.cpp ('k') | test/BaseJsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld