OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/extensions/extension_apitest.h" | 5 #include "chrome/browser/extensions/extension_apitest.h" |
6 | 6 |
7 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, SandboxedPages) { | 7 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, SandboxedPages) { |
8 EXPECT_TRUE(RunExtensionSubtest("sandboxed_pages", "main.html")) << message_; | 8 EXPECT_TRUE(RunExtensionSubtest("sandboxed_pages", "main.html")) << message_; |
9 } | 9 } |
| 10 |
| 11 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, SandboxedPagesCSP) { |
| 12 ASSERT_TRUE(StartEmbeddedTestServer()); |
| 13 |
| 14 // This app attempts to load remote web content inside a sandboxed page. |
| 15 // Loading web content will fail because of CSP. In addition to that we will |
| 16 // show manifest warnings, hence the kFlagIgnoreManifestWarnings. |
| 17 EXPECT_TRUE(RunExtensionSubtest("sandboxed_pages_csp", "main.html", |
| 18 kFlagIgnoreManifestWarnings)) |
| 19 << message_; |
| 20 } |
OLD | NEW |