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

Unified Diff: test/ConsoleJsObject.cpp

Issue 10198022: Pass application data into libadblockplus (Closed)
Patch Set: Merged upstream, addressed issues, renamed AppInfo fields Created April 17, 2013, 2:47 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
Index: test/ConsoleJsObject.cpp
===================================================================
--- a/test/ConsoleJsObject.cpp
+++ b/test/ConsoleJsObject.cpp
@@ -15,7 +15,7 @@
TEST(ConsoleJsObjectTest, ErrorInvokesErrorCallback)
{
MockErrorCallback errorCallback;
- AdblockPlus::JsEngine jsEngine(0, 0, &errorCallback);
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), 0, 0, &errorCallback);
jsEngine.Evaluate("console.error('foo')");
ASSERT_EQ("foo", errorCallback.lastMessage);
}
@@ -23,13 +23,13 @@
TEST(ConsoleJsObjectTest, ErrorWithMultipleArguments)
{
MockErrorCallback errorCallback;
- AdblockPlus::JsEngine jsEngine(0, 0, &errorCallback);
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), 0, 0, &errorCallback);
jsEngine.Evaluate("console.error('foo', 'bar')");
ASSERT_EQ("foobar", errorCallback.lastMessage);
}
TEST(ConsoleJsObjectTest, TraceDoesNothing)
{
- AdblockPlus::JsEngine jsEngine(0, 0, 0);
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), 0, 0, 0);
jsEngine.Evaluate("console.trace()");
}

Powered by Google App Engine
This is Rietveld