blob: 42451062963f463e60c2071717bf91116af9f935 [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
7IN_PROC_BROWSER_TEST_F(ExtensionApiTest, SandboxedPages) {
8 EXPECT_TRUE(RunExtensionSubtest("sandboxed_pages", "main.html")) << message_;
9}
lazyboyc0304f62017-01-03 21:17:3010
11IN_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}