Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(735)

Side by Side Diff: chrome/browser/extensions/api/app_window/app_window_apitest.cc

Issue 190533006: Add support for transparent background API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac (no-Aura) browsertest Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 WindowsApiAlwaysOnTopNoPermissions) { 98 WindowsApiAlwaysOnTopNoPermissions) {
99 EXPECT_TRUE(RunPlatformAppTest( 99 EXPECT_TRUE(RunPlatformAppTest(
100 "platform_apps/windows_api_always_on_top/no_permissions")) << message_; 100 "platform_apps/windows_api_always_on_top/no_permissions")) << message_;
101 } 101 }
102 102
103 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, WindowsApiGet) { 103 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, WindowsApiGet) {
104 EXPECT_TRUE(RunPlatformAppTest("platform_apps/windows_api_get")) 104 EXPECT_TRUE(RunPlatformAppTest("platform_apps/windows_api_get"))
105 << message_; 105 << message_;
106 } 106 }
107 107
108 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest,
109 WindowsApiAlphaEnabledHasPermissions) {
110 #if defined(USE_AURA)
111 EXPECT_TRUE(RunPlatformAppTest(
112 "platform_apps/windows_api_alpha_enabled/has_permissions_aura"))
113 << message_;
114 #else
115 EXPECT_TRUE(RunPlatformAppTest(
116 "platform_apps/windows_api_alpha_enabled/has_permissions_no_aura"))
117 << message_;
118 #endif
119 }
120
121 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest,
122 WindowsApiAlphaEnabledNoPermissions) {
123 EXPECT_TRUE(RunPlatformAppTest(
124 "platform_apps/windows_api_alpha_enabled/no_permissions"))
125 << message_;
126 }
127
128 #ifdef USE_AURA
129 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, WindowsApiAlphaEnabledInStable) {
130 extensions::ScopedCurrentChannel channel(chrome::VersionInfo::CHANNEL_STABLE);
131 EXPECT_TRUE(RunPlatformAppTestWithFlags(
132 "platform_apps/windows_api_alpha_enabled/in_stable",
133 // Ignore manifest warnings because the extension will not load at all
134 // in stable.
135 kFlagIgnoreManifestWarnings))
136 << message_;
137 }
138 #endif
139
108 } // namespace extensions 140 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698