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

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

Issue 503383002: Allow component IME extension use app.window and add 'ime' window type for app window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 "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/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/common/extensions/features/feature_channel.h" 9 #include "chrome/common/extensions/features/feature_channel.h"
10 #include "chrome/test/base/testing_profile.h" 10 #include "chrome/test/base/testing_profile.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 161 }
162 162
163 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, 163 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest,
164 WindowsApiVisibleOnAllWorkspacesInStable) { 164 WindowsApiVisibleOnAllWorkspacesInStable) {
165 extensions::ScopedCurrentChannel channel(chrome::VersionInfo::CHANNEL_STABLE); 165 extensions::ScopedCurrentChannel channel(chrome::VersionInfo::CHANNEL_STABLE);
166 EXPECT_TRUE(RunPlatformAppTest( 166 EXPECT_TRUE(RunPlatformAppTest(
167 "platform_apps/windows_api_visible_on_all_workspaces/in_stable")) 167 "platform_apps/windows_api_visible_on_all_workspaces/in_stable"))
168 << message_; 168 << message_;
169 } 169 }
170 170
171 #if defined(OS_CHROMEOS)
172 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest,
173 WindowsApiImeWindowHasPermissions) {
174 EXPECT_TRUE(RunComponentExtensionTest(
175 "platform_apps/windows_api_ime/has_permissions_whitelisted"))
176 << message_;
177
178 EXPECT_TRUE(RunPlatformAppTestWithFlags(
179 "platform_apps/windows_api_ime/has_permissions_platform_app",
180 kFlagIgnoreManifestWarnings))
181 << message_;
182 }
183
184 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest,
185 WindowsApiImeWindowNoPermissions) {
186 EXPECT_TRUE(RunComponentExtensionTest(
187 "platform_apps/windows_api_ime/no_permissions_whitelisted"))
188 << message_;
189
190 EXPECT_TRUE(RunPlatformAppTest(
191 "platform_apps/windows_api_ime/no_permissions_platform_app"))
192 << message_;
193 }
194 #endif // OS_CHROMEOS
195
171 } // namespace extensions 196 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/app_window/app_window_api.cc ('k') | extensions/browser/app_window/app_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698