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/app_window.h" | 5 #include "apps/app_window.h" |
6 #include "apps/app_window_registry.h" | 6 #include "apps/app_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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 WindowsApiAlwaysOnTopNoPermissions) { | 103 WindowsApiAlwaysOnTopNoPermissions) { |
104 EXPECT_TRUE(RunPlatformAppTest( | 104 EXPECT_TRUE(RunPlatformAppTest( |
105 "platform_apps/windows_api_always_on_top/no_permissions")) << message_; | 105 "platform_apps/windows_api_always_on_top/no_permissions")) << message_; |
106 } | 106 } |
107 | 107 |
108 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, WindowsApiGet) { | 108 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, WindowsApiGet) { |
109 EXPECT_TRUE(RunPlatformAppTest("platform_apps/windows_api_get")) | 109 EXPECT_TRUE(RunPlatformAppTest("platform_apps/windows_api_get")) |
110 << message_; | 110 << message_; |
111 } | 111 } |
112 | 112 |
| 113 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, |
| 114 WindowsApiAlphaEnabledHasPermissions) { |
| 115 #if defined(USE_AURA) |
| 116 EXPECT_TRUE(RunPlatformAppTest( |
| 117 "platform_apps/windows_api_alpha_enabled/has_permissions_aura")) |
| 118 << message_; |
| 119 #else |
| 120 EXPECT_TRUE(RunPlatformAppTest( |
| 121 "platform_apps/windows_api_alpha_enabled/has_permissions_no_aura")) |
| 122 << message_; |
| 123 #endif |
| 124 } |
| 125 |
113 } // namespace extensions | 126 } // namespace extensions |
OLD | NEW |