[email protected] | dbb2416 | 2012-06-06 01:41:22 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "chrome/browser/extensions/extension_apitest.h" |
| 6 | |
Devlin Cronin | ef3e37e | 2018-05-14 23:47:24 | [diff] [blame] | 7 | namespace extensions { |
| 8 | |
[email protected] | dbb2416 | 2012-06-06 01:41:22 | [diff] [blame] | 9 | IN_PROC_BROWSER_TEST_F(ExtensionApiTest, SandboxedPages) { |
| 10 | EXPECT_TRUE(RunExtensionSubtest("sandboxed_pages", "main.html")) << message_; |
| 11 | } |
lazyboy | c0304f6 | 2017-01-03 21:17:30 | [diff] [blame] | 12 | |
| 13 | IN_PROC_BROWSER_TEST_F(ExtensionApiTest, SandboxedPagesCSP) { |
| 14 | ASSERT_TRUE(StartEmbeddedTestServer()); |
| 15 | |
| 16 | // This app attempts to load remote web content inside a sandboxed page. |
| 17 | // Loading web content will fail because of CSP. In addition to that we will |
| 18 | // show manifest warnings, hence the kFlagIgnoreManifestWarnings. |
| 19 | EXPECT_TRUE(RunExtensionSubtest("sandboxed_pages_csp", "main.html", |
| 20 | kFlagIgnoreManifestWarnings)) |
| 21 | << message_; |
| 22 | } |
Devlin Cronin | ef3e37e | 2018-05-14 23:47:24 | [diff] [blame] | 23 | |
| 24 | } // namespace extensions |