| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |