| 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 "apps/shell_window.h" | 5 #include "apps/shell_window.h" |
| 6 #include "apps/shell_window_registry.h" | 6 #include "apps/shell_window_registry.h" |
| 7 #include "apps/ui/native_app_window.h" | 7 #include "apps/ui/native_app_window.h" |
| 8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "chrome/browser/apps/app_browsertest_util.h" | 10 #include "chrome/browser/apps/app_browsertest_util.h" |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 138 |
| 139 #endif // defined(TOOLKIT_VIEWS) | 139 #endif // defined(TOOLKIT_VIEWS) |
| 140 | 140 |
| 141 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, | 141 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, |
| 142 WindowsApiAlwaysOnTopWithPermissions) { | 142 WindowsApiAlwaysOnTopWithPermissions) { |
| 143 EXPECT_TRUE(RunPlatformAppTest( | 143 EXPECT_TRUE(RunPlatformAppTest( |
| 144 "platform_apps/windows_api_always_on_top/has_permissions")) << message_; | 144 "platform_apps/windows_api_always_on_top/has_permissions")) << message_; |
| 145 } | 145 } |
| 146 | 146 |
| 147 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, | 147 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, |
| 148 WindowsApiAlwaysOnTopWithPermissionsStable) { | |
| 149 ScopedCurrentChannel channel(chrome::VersionInfo::CHANNEL_STABLE); | |
| 150 EXPECT_TRUE(RunPlatformAppTestWithFlags( | |
| 151 "platform_apps/windows_api_always_on_top/has_permissions_stable", | |
| 152 ExtensionApiTest::kFlagIgnoreManifestWarnings)) << message_; | |
| 153 } | |
| 154 | |
| 155 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, | |
| 156 WindowsApiAlwaysOnTopNoPermissions) { | 148 WindowsApiAlwaysOnTopNoPermissions) { |
| 157 EXPECT_TRUE(RunPlatformAppTest( | 149 EXPECT_TRUE(RunPlatformAppTest( |
| 158 "platform_apps/windows_api_always_on_top/no_permissions")) << message_; | 150 "platform_apps/windows_api_always_on_top/no_permissions")) << message_; |
| 159 } | 151 } |
| 160 | 152 |
| 161 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, WindowsApiGet) { | 153 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, WindowsApiGet) { |
| 162 EXPECT_TRUE(RunPlatformAppTest("platform_apps/windows_api_get")) | 154 EXPECT_TRUE(RunPlatformAppTest("platform_apps/windows_api_get")) |
| 163 << message_; | 155 << message_; |
| 164 } | 156 } |
| 165 | 157 |
| 166 } // namespace extensions | 158 } // namespace extensions |
| OLD | NEW |