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

Unified Diff: extensions/browser/api/declarative/rules_registry_unittest.cc

Issue 764643002: Remove WebViewKey in rules registry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. Created 6 years 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: extensions/browser/api/declarative/rules_registry_unittest.cc
diff --git a/extensions/browser/api/declarative/rules_registry_unittest.cc b/extensions/browser/api/declarative/rules_registry_unittest.cc
index 5e4616b403704dcf62fd934938ea058418adc6c0..33da872a1667d3d6a2db96dacefff7f5c57ea830 100644
--- a/extensions/browser/api/declarative/rules_registry_unittest.cc
+++ b/extensions/browser/api/declarative/rules_registry_unittest.cc
@@ -8,12 +8,14 @@
#include "base/message_loop/message_loop.h"
#include "content/public/test/test_browser_thread.h"
+#include "extensions/browser/api/declarative/rules_registry_service.h"
#include "extensions/browser/api/declarative/test_rules_registry.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const char kExtensionId[] = "foobar";
const char kRuleId[] = "foo";
+const int key = extensions::RulesRegistryService::kDefaultRulesRegistryID;
} // namespace
namespace extensions {
@@ -22,7 +24,6 @@ TEST(RulesRegistryTest, FillOptionalIdentifiers) {
base::MessageLoopForUI message_loop;
content::TestBrowserThread thread(content::BrowserThread::UI, &message_loop);
- const RulesRegistry::WebViewKey key(0, 0);
std::string error;
scoped_refptr<RulesRegistry> registry =
new TestRulesRegistry(content::BrowserThread::UI, "" /*event_name*/, key);
@@ -132,7 +133,6 @@ TEST(RulesRegistryTest, FillOptionalPriority) {
base::MessageLoopForUI message_loop;
content::TestBrowserThread thread(content::BrowserThread::UI, &message_loop);
- const RulesRegistry::WebViewKey key(0, 0);
std::string error;
scoped_refptr<RulesRegistry> registry =
new TestRulesRegistry(content::BrowserThread::UI, "" /*event_name*/, key);
« no previous file with comments | « extensions/browser/api/declarative/rules_registry_service.cc ('k') | extensions/browser/api/declarative/test_rules_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698