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

Unified Diff: test/FilterEngineStubs.cpp

Issue 10198022: Pass application data into libadblockplus (Closed)
Patch Set: Created April 12, 2013, 1:23 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/FilterEngineStubs.cpp
===================================================================
--- a/test/FilterEngineStubs.cpp
+++ b/test/FilterEngineStubs.cpp
@@ -3,7 +3,7 @@
TEST(FilterEngineStubsTest, FilterCreation)
{
- AdblockPlus::JsEngine jsEngine(0, 0, 0);
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), 0, 0, 0);
AdblockPlus::FilterEngine filterEngine(jsEngine);
AdblockPlus::FilterPtr filter1 = filterEngine.GetFilter("foo");
@@ -20,7 +20,7 @@
TEST(FilterEngineStubsTest, FilterProperties)
{
- AdblockPlus::JsEngine jsEngine(0, 0, 0);
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), 0, 0, 0);
AdblockPlus::FilterEngine filterEngine(jsEngine);
AdblockPlus::FilterPtr filter = filterEngine.GetFilter("foo");
@@ -38,7 +38,7 @@
TEST(FilterEngineStubsTest, AddRemoveFilters)
{
- AdblockPlus::JsEngine jsEngine(0, 0, 0);
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), 0, 0, 0);
AdblockPlus::FilterEngine filterEngine(jsEngine);
ASSERT_EQ(filterEngine.GetListedFilters().size(), 0u);
AdblockPlus::FilterPtr filter = filterEngine.GetFilter("foo");
@@ -57,7 +57,7 @@
TEST(FilterEngineStubsTest, SubscriptionProperties)
{
- AdblockPlus::JsEngine jsEngine(0, 0, 0);
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), 0, 0, 0);
AdblockPlus::FilterEngine filterEngine(jsEngine);
AdblockPlus::SubscriptionPtr subscription = filterEngine.GetSubscription("foo");
@@ -75,7 +75,7 @@
TEST(FilterEngineStubsTest, AddRemoveSubscriptions)
{
- AdblockPlus::JsEngine jsEngine(0, 0, 0);
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), 0, 0, 0);
AdblockPlus::FilterEngine filterEngine(jsEngine);
ASSERT_EQ(filterEngine.GetListedSubscriptions().size(), 0u);
AdblockPlus::SubscriptionPtr subscription = filterEngine.GetSubscription("foo");
@@ -94,7 +94,7 @@
TEST(FilterEngineStubsTest, Matches)
{
- AdblockPlus::JsEngine jsEngine(0, 0, 0);
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), 0, 0, 0);
AdblockPlus::FilterEngine filterEngine(jsEngine);
AdblockPlus::SubscriptionPtr subscription = filterEngine.GetSubscription("foo");
subscription->AddToList();
« lib/info.js ('K') | « test/ConsoleJsObject.cpp ('k') | test/GlobalJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld