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 the crash (hacky) Created Nov. 16, 2015, 4:51 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
« no previous file with comments | « 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 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
« no previous file with comments | « src/JsValue.cpp ('k') | test/BaseJsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld