Index: test/FilterEngineStubs.cpp |
=================================================================== |
--- a/test/FilterEngineStubs.cpp |
+++ b/test/FilterEngineStubs.cpp |
@@ -44,7 +44,8 @@ |
{ |
DummyFileSystem fileSystem; |
DummyErrorCallback errorCallback; |
- AdblockPlus::JsEngine jsEngine(&fileSystem, 0, &errorCallback); |
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), &fileSystem, 0, |
+ &errorCallback); |
AdblockPlus::FilterEngine filterEngine(jsEngine); |
AdblockPlus::FilterPtr filter1 = filterEngine.GetFilter("foo"); |
@@ -63,7 +64,8 @@ |
{ |
DummyFileSystem fileSystem; |
DummyErrorCallback errorCallback; |
- AdblockPlus::JsEngine jsEngine(&fileSystem, 0, &errorCallback); |
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), &fileSystem, 0, |
+ &errorCallback); |
AdblockPlus::FilterEngine filterEngine(jsEngine); |
AdblockPlus::FilterPtr filter = filterEngine.GetFilter("foo"); |
@@ -83,7 +85,8 @@ |
{ |
DummyFileSystem fileSystem; |
DummyErrorCallback errorCallback; |
- AdblockPlus::JsEngine jsEngine(&fileSystem, 0, &errorCallback); |
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), &fileSystem, 0, |
+ &errorCallback); |
AdblockPlus::FilterEngine filterEngine(jsEngine); |
ASSERT_EQ(0u, filterEngine.GetListedFilters().size()); |
AdblockPlus::FilterPtr filter = filterEngine.GetFilter("foo"); |
@@ -104,7 +107,8 @@ |
{ |
DummyFileSystem fileSystem; |
DummyErrorCallback errorCallback; |
- AdblockPlus::JsEngine jsEngine(&fileSystem, 0, &errorCallback); |
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), &fileSystem, 0, |
+ &errorCallback); |
AdblockPlus::FilterEngine filterEngine(jsEngine); |
AdblockPlus::SubscriptionPtr subscription = filterEngine.GetSubscription("foo"); |
@@ -124,7 +128,8 @@ |
{ |
DummyFileSystem fileSystem; |
DummyErrorCallback errorCallback; |
- AdblockPlus::JsEngine jsEngine(&fileSystem, 0, &errorCallback); |
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), &fileSystem, 0, |
+ &errorCallback); |
AdblockPlus::FilterEngine filterEngine(jsEngine); |
ASSERT_EQ(0u, filterEngine.GetListedSubscriptions().size()); |
AdblockPlus::SubscriptionPtr subscription = filterEngine.GetSubscription("foo"); |
@@ -145,7 +150,8 @@ |
{ |
DummyFileSystem fileSystem; |
DummyErrorCallback errorCallback; |
- AdblockPlus::JsEngine jsEngine(&fileSystem, 0, &errorCallback); |
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), &fileSystem, 0, |
+ &errorCallback); |
AdblockPlus::FilterEngine filterEngine(jsEngine); |
AdblockPlus::SubscriptionPtr subscription = filterEngine.GetSubscription("foo"); |
ASSERT_FALSE(subscription->IsUpdating()); |
@@ -158,7 +164,8 @@ |
{ |
DummyFileSystem fileSystem; |
DummyErrorCallback errorCallback; |
- AdblockPlus::JsEngine jsEngine(&fileSystem, 0, &errorCallback); |
+ AdblockPlus::JsEngine jsEngine(AdblockPlus::AppInfo(), &fileSystem, 0, |
+ &errorCallback); |
AdblockPlus::FilterEngine filterEngine(jsEngine); |
filterEngine.GetFilter("adbanner.gif")->AddToList(); |