Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4593)

Unified Diff: chrome/browser/extensions/api/declarative/rules_registry_with_cache_unittest.cc

Issue 28273006: <webview>: Implement declarativeWebRequest API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added tests Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/declarative/rules_registry_with_cache_unittest.cc
diff --git a/chrome/browser/extensions/api/declarative/rules_registry_with_cache_unittest.cc b/chrome/browser/extensions/api/declarative/rules_registry_with_cache_unittest.cc
index 6601b57fb94d13935b74b03f6b020cf05fdb060a..b47188e576c92096a718166d1c9b11d68c81b4a6 100644
--- a/chrome/browser/extensions/api/declarative/rules_registry_with_cache_unittest.cc
+++ b/chrome/browser/extensions/api/declarative/rules_registry_with_cache_unittest.cc
@@ -228,9 +228,10 @@ TEST_F(RulesRegistryWithCacheTest, DeclarativeRulesStored) {
TestingValueStore* store = system->value_store();
const std::string event_name("testEvent");
+ const RulesRegistry::WebViewKey key(0, 0);
const std::string rules_stored_key(
RulesRegistryWithCache::RuleStorageOnUI::GetRulesStoredKey(
- event_name, profile.IsOffTheRecord()));
+ event_name, profile.IsOffTheRecord(), key));
scoped_ptr<RulesRegistryWithCache::RuleStorageOnUI> ui_part;
scoped_refptr<RulesRegistryWithCache> registry(new TestRulesRegistry(
&profile, event_name, content::BrowserThread::UI, &ui_part));
@@ -300,12 +301,13 @@ TEST_F(RulesRegistryWithCacheTest, RulesStoredFlagMultipleRegistries) {
const std::string event_name1("testEvent1");
const std::string event_name2("testEvent2");
+ const RulesRegistry::WebViewKey key(0, 0);
const std::string rules_stored_key1(
RulesRegistryWithCache::RuleStorageOnUI::GetRulesStoredKey(
- event_name1, profile.IsOffTheRecord()));
+ event_name1, profile.IsOffTheRecord(), key));
const std::string rules_stored_key2(
RulesRegistryWithCache::RuleStorageOnUI::GetRulesStoredKey(
- event_name2, profile.IsOffTheRecord()));
+ event_name2, profile.IsOffTheRecord(), key));
scoped_ptr<RulesRegistryWithCache::RuleStorageOnUI> ui_part1;
scoped_refptr<RulesRegistryWithCache> registry1(new TestRulesRegistry(
&profile, event_name1, content::BrowserThread::UI, &ui_part1));

Powered by Google App Engine
This is Rietveld 408576698