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

Side by Side Diff: chrome/browser/apps/guest_view/extension_view_browsertest.cc

Issue 913393003: Restrict extensionview to chrome-extension:// (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/test/data/extensions/platform_apps/extension_view/connect_api/main.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/strings/stringprintf.h" 5 #include "base/strings/stringprintf.h"
6 #include "chrome/browser/apps/app_browsertest_util.h" 6 #include "chrome/browser/apps/app_browsertest_util.h"
7 #include "chrome/test/base/ui_test_utils.h" 7 #include "chrome/test/base/ui_test_utils.h"
8 #include "content/public/test/browser_test_utils.h" 8 #include "content/public/test/browser_test_utils.h"
9 #include "extensions/browser/guest_view/guest_view_manager.h" 9 #include "extensions/browser/guest_view/guest_view_manager.h"
10 #include "extensions/browser/guest_view/guest_view_manager_factory.h" 10 #include "extensions/browser/guest_view/guest_view_manager_factory.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 IN_PROC_BROWSER_TEST_F(ExtensionViewTest, 118 IN_PROC_BROWSER_TEST_F(ExtensionViewTest,
119 TestExtensionViewCreationShouldSucceed) { 119 TestExtensionViewCreationShouldSucceed) {
120 const extensions::Extension* skeleton_app = 120 const extensions::Extension* skeleton_app =
121 InstallPlatformApp("extension_view/skeleton"); 121 InstallPlatformApp("extension_view/skeleton");
122 TestHelper("testExtensionViewCreationShouldSucceed", "extension_view", 122 TestHelper("testExtensionViewCreationShouldSucceed", "extension_view",
123 skeleton_app->id()); 123 skeleton_app->id());
124 } 124 }
125 125
126 // Tests that verify that <extensionview> can navigate to different sources. 126 // Tests that verify that <extensionview> can navigate to different sources.
127 IN_PROC_BROWSER_TEST_F(ExtensionViewTest, ShimSrcAttribute) { 127 IN_PROC_BROWSER_TEST_F(ExtensionViewTest, ShimSrcAttribute) {
128 ASSERT_TRUE(RunPlatformAppTest("platform_apps/extension_view/src_attribute")); 128 ASSERT_TRUE(RunPlatformAppTest(
129 "platform_apps/extension_view/src_attribute"));
129 } 130 }
131
132 // Tests that verify that <extensionview> can call the connect function.
133 IN_PROC_BROWSER_TEST_F(ExtensionViewTest, ConnectAPICall) {
134 ASSERT_TRUE(RunPlatformAppTest("platform_apps/extension_view/connect_api"));
135 }
136
137 // Tests that verify that <extensionview> does not change extension ID if
138 // someone tries to change it in JavaScript.
139 IN_PROC_BROWSER_TEST_F(ExtensionViewTest, ShimExtensionAttribute) {
140 ASSERT_TRUE(RunPlatformAppTest(
141 "platform_apps/extension_view/extension_attribute"));
142 }
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/extensions/platform_apps/extension_view/connect_api/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698