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/browser/extensions/extension_test_message_listener.h" | 7 #include "chrome/browser/extensions/extension_test_message_listener.h" |
8 #include "chrome/common/chrome_switches.h" | 8 #include "chrome/common/chrome_switches.h" |
9 #include "chrome/test/base/ui_test_utils.h" | 9 #include "chrome/test/base/ui_test_utils.h" |
10 #include "content/public/browser/notification_service.h" | 10 #include "content/public/browser/notification_service.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // Tests that <appview> is able to navigate to another installed app. | 142 // Tests that <appview> is able to navigate to another installed app. |
143 IN_PROC_BROWSER_TEST_F(AppViewTest, TestAppViewBasic) { | 143 IN_PROC_BROWSER_TEST_F(AppViewTest, TestAppViewBasic) { |
144 const extensions::Extension* skeleton_app = | 144 const extensions::Extension* skeleton_app = |
145 InstallPlatformApp("app_view/shim/skeleton"); | 145 InstallPlatformApp("app_view/shim/skeleton"); |
146 TestHelper("testAppViewBasic", | 146 TestHelper("testAppViewBasic", |
147 "app_view/shim", | 147 "app_view/shim", |
148 skeleton_app->id(), | 148 skeleton_app->id(), |
149 NO_TEST_SERVER); | 149 NO_TEST_SERVER); |
150 } | 150 } |
151 | 151 |
| 152 // Tests that <appview> correctly processes parameters passed on connect. |
| 153 IN_PROC_BROWSER_TEST_F(AppViewTest, TestAppViewRefusedDataShouldFail) { |
| 154 const extensions::Extension* skeleton_app = |
| 155 InstallPlatformApp("app_view/shim/skeleton"); |
| 156 TestHelper("testAppViewRefusedDataShouldFail", |
| 157 "app_view/shim", |
| 158 skeleton_app->id(), |
| 159 NO_TEST_SERVER); |
| 160 } |
| 161 |
| 162 // Tests that <appview> correctly processes parameters passed on connect. |
| 163 IN_PROC_BROWSER_TEST_F(AppViewTest, TestAppViewGoodDataShouldSucceed) { |
| 164 const extensions::Extension* skeleton_app = |
| 165 InstallPlatformApp("app_view/shim/skeleton"); |
| 166 TestHelper("testAppViewGoodDataShouldSucceed", |
| 167 "app_view/shim", |
| 168 skeleton_app->id(), |
| 169 NO_TEST_SERVER); |
| 170 } |
OLD | NEW |