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

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: Wrap Missing Permission string in #ifdef AURA Created 6 years, 7 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 WindowsApiAlwaysOnTopNoPermissions) { 101 WindowsApiAlwaysOnTopNoPermissions) {
102 EXPECT_TRUE(RunPlatformAppTest( 102 EXPECT_TRUE(RunPlatformAppTest(
103 "platform_apps/windows_api_always_on_top/no_permissions")) << message_; 103 "platform_apps/windows_api_always_on_top/no_permissions")) << message_;
104 } 104 }
105 105
106 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, WindowsApiGet) { 106 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, WindowsApiGet) {
107 EXPECT_TRUE(RunPlatformAppTest("platform_apps/windows_api_get")) 107 EXPECT_TRUE(RunPlatformAppTest("platform_apps/windows_api_get"))
108 << message_; 108 << message_;
109 } 109 }
110 110
111 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest,
112 WindowsApiAlphaEnabledHasPermissions) {
benwells 2014/05/12 04:25:17 Please also add a test for running this in stable
garykac 2014/07/09 23:19:21 Done, but on Stable requesting app.window.shape pr
113 #if defined(USE_AURA)
benwells 2014/05/12 04:25:17 So ... if aura is enabled, alphaEnabled will be tr
garykac 2014/07/09 23:19:21 Changed all the #ifdefs to use USE_ASH.
114 EXPECT_TRUE(RunPlatformAppTest(
115 "platform_apps/windows_api_alpha_enabled/has_permissions_aura"))
116 << message_;
117 #else
118 EXPECT_TRUE(RunPlatformAppTest(
119 "platform_apps/windows_api_alpha_enabled/has_permissions_no_aura"))
120 << message_;
121 #endif
122 }
123
124 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest,
125 WindowsApiAlphaEnabledNoPermissions) {
126 EXPECT_TRUE(RunPlatformAppTest(
127 "platform_apps/windows_api_alpha_enabled/no_permissions"))
128 << message_;
129 }
130
111 } // namespace extensions 131 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698