OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |