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

Unified Diff: chrome/common/extensions/manifest_tests/extension_manifests_sandboxed_unittest.cc

Issue 12886023: Remove SandboxedPages and SandboxedCSP from Extension Class (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Yoyo's 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_tests/extension_manifests_sandboxed_unittest.cc
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_sandboxed_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_sandboxed_unittest.cc
index eaa459306e6e1eae6b0b89091bf1de1b78e770c5..8f0e4310a6b120b32cfb338f39e7583bc6936a10 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_sandboxed_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_sandboxed_unittest.cc
@@ -6,16 +6,19 @@
#include "chrome/common/extensions/extension_manifest_constants.h"
#include "chrome/common/extensions/manifest_handler.h"
#include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
+#include "chrome/common/extensions/sandboxed_page_info.h"
#include "testing/gtest/include/gtest/gtest.h"
-using extensions::Extension;
-
namespace errors = extension_manifest_errors;
+namespace extensions {
+
class SandboxedPagesManifestTest : public ExtensionManifestTest {
+ protected:
virtual void SetUp() OVERRIDE {
ExtensionManifestTest::SetUp();
- (new extensions::CSPHandler(false))->Register(); // Not platform app.
+ (new SandboxedPageHandler)->Register();
+ (new CSPHandler(false))->Register(); // Not platform app.
}
};
@@ -75,3 +78,5 @@ TEST_F(SandboxedPagesManifestTest, SandboxedPages) {
RunTestcases(testcases, arraysize(testcases),
EXPECT_TYPE_ERROR);
}
+
+} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698