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

Unified Diff: chrome/common/extensions/manifest_handlers/exclude_matches_manifest_unittest.cc

Issue 11724002: Move ContentScripts out of Extension (Closed) Base URL: http://git.chromium.org/chromium/src.git@dc_unref_browser_action
Patch Set: Latest master for CQ Created 7 years, 9 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/common/extensions/manifest_handlers/exclude_matches_manifest_unittest.cc
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_excludematches_unittest.cc b/chrome/common/extensions/manifest_handlers/exclude_matches_manifest_unittest.cc
similarity index 66%
rename from chrome/common/extensions/manifest_tests/extension_manifests_excludematches_unittest.cc
rename to chrome/common/extensions/manifest_handlers/exclude_matches_manifest_unittest.cc
index 0f0163806baeedf4b6f00926b69d274c231a6acb..37a4ae5d94c08d3cb6867741f5f894fd64934df8 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_excludematches_unittest.cc
+++ b/chrome/common/extensions/manifest_handlers/exclude_matches_manifest_unittest.cc
@@ -1,13 +1,24 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
#include "chrome/common/extensions/extension.h"
+#include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h"
+#include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
#include "testing/gtest/include/gtest/gtest.h"
-TEST_F(ExtensionManifestTest, ExcludeMatchPatterns) {
+namespace extensions {
+
+class ExcludeMatchesManifestTest : public ExtensionManifestTest {
+ protected:
+ virtual void SetUp() OVERRIDE {
+ ExtensionManifestTest::SetUp();
+ (new ContentScriptsHandler)->Register();
+ }
+};
+
+TEST_F(ExcludeMatchesManifestTest, ExcludeMatchPatterns) {
Testcase testcases[] = {
Testcase("exclude_matches.json"),
Testcase("exclude_matches_empty.json")
@@ -25,3 +36,5 @@ TEST_F(ExtensionManifestTest, ExcludeMatchPatterns) {
RunTestcases(testcases2, arraysize(testcases2),
EXPECT_TYPE_ERROR);
}
+
+} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698