| OLD | NEW |
| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 AppLaunchController::SetNetworkWaitForTesting(kTestNetworkTimeoutSeconds); | 246 AppLaunchController::SetNetworkWaitForTesting(kTestNetworkTimeoutSeconds); |
| 247 | 247 |
| 248 OobeBaseTest::SetUp(); | 248 OobeBaseTest::SetUp(); |
| 249 } | 249 } |
| 250 | 250 |
| 251 virtual void TearDown() OVERRIDE { | 251 virtual void TearDown() OVERRIDE { |
| 252 ProfileHelper::SetAlwaysReturnPrimaryUserForTesting(false); | 252 ProfileHelper::SetAlwaysReturnPrimaryUserForTesting(false); |
| 253 OobeBaseTest::TearDown(); | 253 OobeBaseTest::TearDown(); |
| 254 } | 254 } |
| 255 | 255 |
| 256 virtual void CleanUpOnMainThread() OVERRIDE { | 256 virtual void TearDownOnMainThread() OVERRIDE { |
| 257 AppLaunchController::SetNetworkTimeoutCallbackForTesting(NULL); | 257 AppLaunchController::SetNetworkTimeoutCallbackForTesting(NULL); |
| 258 AppLaunchSigninScreen::SetUserManagerForTesting(NULL); | 258 AppLaunchSigninScreen::SetUserManagerForTesting(NULL); |
| 259 | 259 |
| 260 OobeBaseTest::CleanUpOnMainThread(); | 260 OobeBaseTest::TearDownOnMainThread(); |
| 261 | 261 |
| 262 // Clean up while main thread still runs. | 262 // Clean up while main thread still runs. |
| 263 // See http://crbug.com/176659. | 263 // See http://crbug.com/176659. |
| 264 KioskAppManager::Get()->CleanUp(); | 264 KioskAppManager::Get()->CleanUp(); |
| 265 } | 265 } |
| 266 | 266 |
| 267 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { | 267 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
| 268 OobeBaseTest::SetUpCommandLine(command_line); | 268 OobeBaseTest::SetUpCommandLine(command_line); |
| 269 fake_cws_->Init(embedded_test_server()); | 269 fake_cws_->Init(embedded_test_server()); |
| 270 } | 270 } |
| (...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1368 content::WindowedNotificationObserver( | 1368 content::WindowedNotificationObserver( |
| 1369 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE, | 1369 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE, |
| 1370 content::NotificationService::AllSources()).Wait(); | 1370 content::NotificationService::AllSources()).Wait(); |
| 1371 | 1371 |
| 1372 // Wait for the wallpaper to load. | 1372 // Wait for the wallpaper to load. |
| 1373 WaitForWallpaper(); | 1373 WaitForWallpaper(); |
| 1374 EXPECT_TRUE(wallpaper_loaded()); | 1374 EXPECT_TRUE(wallpaper_loaded()); |
| 1375 } | 1375 } |
| 1376 | 1376 |
| 1377 } // namespace chromeos | 1377 } // namespace chromeos |
| OLD | NEW |