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

Unified Diff: test/AppInfoJsObject.cpp

Issue 10310030: Convert references to FileSystem & Co. into shared pointers (avoid use after free) (Closed)
Patch Set: Created April 18, 2013, 11:59 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
Index: test/AppInfoJsObject.cpp
===================================================================
--- a/test/AppInfoJsObject.cpp
+++ b/test/AppInfoJsObject.cpp
@@ -3,14 +3,14 @@
TEST(AppInfoJsObjectTest, AllProperties)
{
AdblockPlus::AppInfo appInfo;
appInfo.id = "1";
appInfo.version = "2";
appInfo.name = "4";
appInfo.platform = "5";
- AdblockPlus::JsEngine jsEngine(appInfo, 0, 0, 0);
+ AdblockPlus::JsEngine jsEngine(appInfo);
ASSERT_EQ("1", jsEngine.Evaluate("_appInfo.id")->AsString());
ASSERT_EQ("2", jsEngine.Evaluate("_appInfo.version")->AsString());
ASSERT_EQ("4", jsEngine.Evaluate("_appInfo.name")->AsString());
ASSERT_EQ("5", jsEngine.Evaluate("_appInfo.platform")->AsString());
}
« src/JsEngine.cpp ('K') | « src/WebRequestJsObject.cpp ('k') | test/ConsoleJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld