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

Side by Side Diff: chrome/browser/chromeos/login/kiosk_browsertest.cc

Issue 366813007: Removed InProcessBrowserTest::CleanUpOnMainThread() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More merge to ToT. 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "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 "ash/desktop_background/desktop_background_controller.h" 8 #include "ash/desktop_background/desktop_background_controller.h"
9 #include "ash/desktop_background/desktop_background_controller_observer.h" 9 #include "ash/desktop_background/desktop_background_controller_observer.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 AppLaunchController::SetNetworkWaitForTesting(kTestNetworkTimeoutSeconds); 243 AppLaunchController::SetNetworkWaitForTesting(kTestNetworkTimeoutSeconds);
244 244
245 OobeBaseTest::SetUp(); 245 OobeBaseTest::SetUp();
246 } 246 }
247 247
248 virtual void TearDown() OVERRIDE { 248 virtual void TearDown() OVERRIDE {
249 ProfileHelper::SetAlwaysReturnPrimaryUserForTesting(false); 249 ProfileHelper::SetAlwaysReturnPrimaryUserForTesting(false);
250 OobeBaseTest::TearDown(); 250 OobeBaseTest::TearDown();
251 } 251 }
252 252
253 virtual void CleanUpOnMainThread() OVERRIDE { 253 virtual void TearDownOnMainThread() OVERRIDE {
254 AppLaunchController::SetNetworkTimeoutCallbackForTesting(NULL); 254 AppLaunchController::SetNetworkTimeoutCallbackForTesting(NULL);
255 AppLaunchSigninScreen::SetUserManagerForTesting(NULL); 255 AppLaunchSigninScreen::SetUserManagerForTesting(NULL);
256 256
257 OobeBaseTest::CleanUpOnMainThread(); 257 OobeBaseTest::TearDownOnMainThread();
258 258
259 // Clean up while main thread still runs. 259 // Clean up while main thread still runs.
260 // See http://crbug.com/176659. 260 // See http://crbug.com/176659.
261 KioskAppManager::Get()->CleanUp(); 261 KioskAppManager::Get()->CleanUp();
262 } 262 }
263 263
264 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 264 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
265 OobeBaseTest::SetUpCommandLine(command_line); 265 OobeBaseTest::SetUpCommandLine(command_line);
266 fake_cws_->Init(embedded_test_server()); 266 fake_cws_->Init(embedded_test_server());
267 } 267 }
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 content::WindowedNotificationObserver( 1193 content::WindowedNotificationObserver(
1194 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE, 1194 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE,
1195 content::NotificationService::AllSources()).Wait(); 1195 content::NotificationService::AllSources()).Wait();
1196 1196
1197 // Wait for the wallpaper to load. 1197 // Wait for the wallpaper to load.
1198 WaitForWallpaper(); 1198 WaitForWallpaper();
1199 EXPECT_TRUE(wallpaper_loaded()); 1199 EXPECT_TRUE(wallpaper_loaded());
1200 } 1200 }
1201 1201
1202 } // namespace chromeos 1202 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698