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

Side by Side Diff: chrome/browser/apps/app_window_browsertest.cc

Issue 757433004: Add SOURCE_TEST. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed remaining instances of SOURCE_BROWSER_TEST. Created 6 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/apps/app_browsertest_util.h" 5 #include "chrome/browser/apps/app_browsertest_util.h"
6 #include "chrome/browser/profiles/profile.h" 6 #include "chrome/browser/profiles/profile.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/extensions/app_launch_params.h" 8 #include "chrome/browser/ui/extensions/app_launch_params.h"
9 #include "chrome/browser/ui/extensions/application_launch.h" 9 #include "chrome/browser/ui/extensions/application_launch.h"
10 #include "content/public/browser/notification_service.h" 10 #include "content/public/browser/notification_service.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 content::WindowedNotificationObserver app_loaded_observer( 212 content::WindowedNotificationObserver app_loaded_observer(
213 content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME, 213 content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME,
214 content::NotificationService::AllSources()); 214 content::NotificationService::AllSources());
215 215
216 const extensions::Extension* extension = LoadExtension( 216 const extensions::Extension* extension = LoadExtension(
217 test_data_dir_.AppendASCII("platform_apps").AppendASCII("window_api")); 217 test_data_dir_.AppendASCII("platform_apps").AppendASCII("window_api"));
218 EXPECT_TRUE(extension); 218 EXPECT_TRUE(extension);
219 219
220 OpenApplication(AppLaunchParams(browser()->profile(), extension, 220 OpenApplication(AppLaunchParams(browser()->profile(), extension,
221 extensions::LAUNCH_CONTAINER_NONE, NEW_WINDOW, 221 extensions::LAUNCH_CONTAINER_NONE, NEW_WINDOW,
222 extensions::SOURCE_UNTRACKED)); 222 extensions::SOURCE_TEST));
223 223
224 ExtensionTestMessageListener geometry_listener("ListenGeometryChange", true); 224 ExtensionTestMessageListener geometry_listener("ListenGeometryChange", true);
225 225
226 ASSERT_TRUE(launched_listener.WaitUntilSatisfied()); 226 ASSERT_TRUE(launched_listener.WaitUntilSatisfied());
227 launched_listener.Reply("testRestoreAfterGeometryCacheChange"); 227 launched_listener.Reply("testRestoreAfterGeometryCacheChange");
228 228
229 ASSERT_TRUE(geometry_listener.WaitUntilSatisfied()); 229 ASSERT_TRUE(geometry_listener.WaitUntilSatisfied());
230 230
231 GeometryCacheChangeHelper geo_change_helper_1( 231 GeometryCacheChangeHelper geo_change_helper_1(
232 AppWindowGeometryCache::Get(browser()->profile()), 232 AppWindowGeometryCache::Get(browser()->profile()),
(...skipping 28 matching lines...) Expand all
261 IN_PROC_BROWSER_TEST_F(AppWindowAPITest, TestFrameColors) { 261 IN_PROC_BROWSER_TEST_F(AppWindowAPITest, TestFrameColors) {
262 ASSERT_TRUE(RunAppWindowAPITest("testFrameColors")) << message_; 262 ASSERT_TRUE(RunAppWindowAPITest("testFrameColors")) << message_;
263 } 263 }
264 #endif 264 #endif
265 265
266 IN_PROC_BROWSER_TEST_F(AppWindowAPITest, TestVisibleOnAllWorkspaces) { 266 IN_PROC_BROWSER_TEST_F(AppWindowAPITest, TestVisibleOnAllWorkspaces) {
267 ASSERT_TRUE( 267 ASSERT_TRUE(
268 RunAppWindowAPITestAndWaitForRoundTrip("testVisibleOnAllWorkspaces")) 268 RunAppWindowAPITestAndWaitForRoundTrip("testVisibleOnAllWorkspaces"))
269 << message_; 269 << message_;
270 } 270 }
OLDNEW
« no previous file with comments | « chrome/browser/apps/app_browsertest_util.cc ('k') | chrome/browser/chromeos/policy/device_local_account_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698