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

Unified Diff: chrome/browser/extensions/api/declarative_content/content_rules_registry_unittest.cc

Issue 344433003: Prepare declarativeContent API for new script injection feature. Added Javascript types and functio… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Greatly simplified: Got rid of WatchedPagesRecipient and new event types Created 6 years, 5 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_content/content_rules_registry_unittest.cc
diff --git a/chrome/browser/extensions/api/declarative_content/content_rules_registry_unittest.cc b/chrome/browser/extensions/api/declarative_content/content_rules_registry_unittest.cc
index c55736b82086b08a1022552d18cef58fc8e4ea98..452183310c16ffb05a4e34ae2b521a71a7b24a73 100644
--- a/chrome/browser/extensions/api/declarative_content/content_rules_registry_unittest.cc
+++ b/chrome/browser/extensions/api/declarative_content/content_rules_registry_unittest.cc
@@ -7,6 +7,7 @@
#include <string>
#include "base/test/values_test_util.h"
+#include "chrome/browser/extensions/api/declarative_content/content_constants.h"
#include "chrome/browser/extensions/extension_tab_util.h"
#include "chrome/browser/extensions/test_extension_environment.h"
#include "chrome/test/base/testing_profile.h"
@@ -34,11 +35,15 @@ class DeclarativeContentRulesRegistryTest : public testing::Test {
namespace {
+namespace constants = extensions::declarative_content_constants;
+
TEST_F(DeclarativeContentRulesRegistryTest, ActiveRulesDoesntGrow) {
TestExtensionEnvironment env;
scoped_refptr<ContentRulesRegistry> registry(
- new ContentRulesRegistry(env.profile(), NULL));
+ new ContentRulesRegistry(env.profile(),
+ constants::kOnPageChanged,
+ NULL));
EXPECT_EQ(0u, active_rules(*registry.get()).size());

Powered by Google App Engine
This is Rietveld 408576698