blob: 578952d6f9a4342b3eafad555f7b308fbca4e3db [file] [log] [blame]
[email protected]dbb24162012-06-06 01:41:221// 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 Croninef3e37e2018-05-14 23:47:247namespace extensions {
8
[email protected]dbb24162012-06-06 01:41:229IN_PROC_BROWSER_TEST_F(ExtensionApiTest, SandboxedPages) {
10 EXPECT_TRUE(RunExtensionSubtest("sandboxed_pages", "main.html")) << message_;
11}
lazyboyc0304f62017-01-03 21:17:3012
13IN_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 Croninef3e37e2018-05-14 23:47:2423
24} // namespace extensions