OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // 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 | 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/run_loop.h" | 5 #include "base/run_loop.h" |
6 #include "base/strings/string_number_conversions.h" | 6 #include "base/strings/string_number_conversions.h" |
7 #include "chrome/browser/apps/app_browsertest_util.h" | 7 #include "chrome/browser/apps/app_browsertest_util.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/common/extensions/features/feature_channel.h" | 9 #include "chrome/common/extensions/features/feature_channel.h" |
10 #include "chrome/test/base/testing_profile.h" | 10 #include "chrome/test/base/testing_profile.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 } | 161 } |
162 | 162 |
163 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, | 163 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, |
164 WindowsApiVisibleOnAllWorkspacesInStable) { | 164 WindowsApiVisibleOnAllWorkspacesInStable) { |
165 extensions::ScopedCurrentChannel channel(chrome::VersionInfo::CHANNEL_STABLE); | 165 extensions::ScopedCurrentChannel channel(chrome::VersionInfo::CHANNEL_STABLE); |
166 EXPECT_TRUE(RunPlatformAppTest( | 166 EXPECT_TRUE(RunPlatformAppTest( |
167 "platform_apps/windows_api_visible_on_all_workspaces/in_stable")) | 167 "platform_apps/windows_api_visible_on_all_workspaces/in_stable")) |
168 << message_; | 168 << message_; |
169 } | 169 } |
170 | 170 |
| 171 #if defined(OS_CHROMEOS) |
| 172 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, |
| 173 WindowsApiImeWindowHasPermissions) { |
| 174 EXPECT_TRUE(RunComponentExtensionTest( |
| 175 "platform_apps/windows_api_ime/has_permissions_whitelisted")) |
| 176 << message_; |
| 177 |
| 178 EXPECT_TRUE(RunPlatformAppTestWithFlags( |
| 179 "platform_apps/windows_api_ime/has_permissions_platform_app", |
| 180 kFlagIgnoreManifestWarnings)) |
| 181 << message_; |
| 182 } |
| 183 |
| 184 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, |
| 185 WindowsApiImeWindowNoPermissions) { |
| 186 EXPECT_TRUE(RunComponentExtensionTest( |
| 187 "platform_apps/windows_api_ime/no_permissions_whitelisted")) |
| 188 << message_; |
| 189 |
| 190 EXPECT_TRUE(RunPlatformAppTest( |
| 191 "platform_apps/windows_api_ime/no_permissions_platform_app")) |
| 192 << message_; |
| 193 } |
| 194 #endif // OS_CHROMEOS |
| 195 |
171 } // namespace extensions | 196 } // namespace extensions |
OLD | NEW |