| 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/extensions/extension_test_message_listener.h" | 8 #include "chrome/browser/extensions/extension_test_message_listener.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/common/extensions/features/feature_channel.h" | 10 #include "chrome/common/extensions/features/feature_channel.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 << message_; | 153 << message_; |
| 154 } | 154 } |
| 155 | 155 |
| 156 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, | 156 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, |
| 157 WindowsApiAlphaEnabledWrongFrameType) { | 157 WindowsApiAlphaEnabledWrongFrameType) { |
| 158 EXPECT_TRUE(RunPlatformAppTest( | 158 EXPECT_TRUE(RunPlatformAppTest( |
| 159 "platform_apps/windows_api_alpha_enabled/wrong_frame_type")) | 159 "platform_apps/windows_api_alpha_enabled/wrong_frame_type")) |
| 160 << message_; | 160 << message_; |
| 161 } | 161 } |
| 162 | 162 |
| 163 #if defined(OS_CHROMEOS) |
| 164 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, |
| 165 WindowsApiImeWindowHasPermissions) { |
| 166 EXPECT_TRUE(RunComponentExtensionTest( |
| 167 "platform_apps/windows_api_ime/has_permissions_whitelisted")) |
| 168 << message_; |
| 169 |
| 170 EXPECT_TRUE(RunPlatformAppTestWithFlags( |
| 171 "platform_apps/windows_api_ime/has_permissions_not_whitelisted", |
| 172 kFlagIgnoreManifestWarnings)) |
| 173 << message_; |
| 174 |
| 175 } |
| 176 |
| 177 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, |
| 178 WindowsApiImeWindowNoPermissions) { |
| 179 EXPECT_TRUE(RunComponentExtensionTest( |
| 180 "platform_apps/windows_api_ime/no_permissions_whitelisted")) |
| 181 << message_; |
| 182 |
| 183 EXPECT_TRUE(RunPlatformAppTest( |
| 184 "platform_apps/windows_api_ime/no_permissions_not_whitelisted")) |
| 185 << message_; |
| 186 |
| 187 } |
| 188 #endif // OS_CHROMEOS |
| 189 |
| 163 } // namespace extensions | 190 } // namespace extensions |
| OLD | NEW |