| 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 <memory> | 5 #include <memory> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 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 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 "var e = new Event('click');" | 981 "var e = new Event('click');" |
| 982 "$('continue-network-config-btn').dispatchEvent(e);" | 982 "$('continue-network-config-btn').dispatchEvent(e);" |
| 983 "})();")); | 983 "})();")); |
| 984 | 984 |
| 985 // Let app launching resume. | 985 // Let app launching resume. |
| 986 lock.reset(); | 986 lock.reset(); |
| 987 | 987 |
| 988 WaitForAppLaunchSuccess(); | 988 WaitForAppLaunchSuccess(); |
| 989 } | 989 } |
| 990 | 990 |
| 991 IN_PROC_BROWSER_TEST_F(KioskTest, LaunchAppNetworkDownConfigureNotAllowed) { | 991 #if defined(OS_CHROMEOS) |
| 992 #define MAYBE_LaunchAppNetworkDownConfigureNotAllowed \ |
| 993 DISABLED_LaunchAppNetworkDownConfigureNotAllowed |
| 994 #else |
| 995 #define MAYBE_LaunchAppNetworkDownConfigureNotAllowed \ |
| 996 LaunchAppNetworkDownConfigureNotAllowed |
| 997 #endif |
| 998 IN_PROC_BROWSER_TEST_F(KioskTest, |
| 999 MAYBE_LaunchAppNetworkDownConfigureNotAllowed) { |
| 992 // Mock network could not be configured. | 1000 // Mock network could not be configured. |
| 993 ScopedCanConfigureNetwork can_configure_network(false, true); | 1001 ScopedCanConfigureNetwork can_configure_network(false, true); |
| 994 | 1002 |
| 995 // Start app launch and wait for network connectivity timeout. | 1003 // Start app launch and wait for network connectivity timeout. |
| 996 StartAppLaunchFromLoginScreen(SimulateNetworkOfflineClosure()); | 1004 StartAppLaunchFromLoginScreen(SimulateNetworkOfflineClosure()); |
| 997 OobeScreenWaiter splash_waiter(OobeScreen::SCREEN_APP_LAUNCH_SPLASH); | 1005 OobeScreenWaiter splash_waiter(OobeScreen::SCREEN_APP_LAUNCH_SPLASH); |
| 998 splash_waiter.Wait(); | 1006 splash_waiter.Wait(); |
| 999 WaitForAppLaunchNetworkTimeout(); | 1007 WaitForAppLaunchNetworkTimeout(); |
| 1000 | 1008 |
| 1001 // Configure network link should not be visible. | 1009 // Configure network link should not be visible. |
| (...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2402 content::WindowedNotificationObserver( | 2410 content::WindowedNotificationObserver( |
| 2403 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE, | 2411 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE, |
| 2404 content::NotificationService::AllSources()).Wait(); | 2412 content::NotificationService::AllSources()).Wait(); |
| 2405 | 2413 |
| 2406 // Wait for the wallpaper to load. | 2414 // Wait for the wallpaper to load. |
| 2407 WaitForWallpaper(); | 2415 WaitForWallpaper(); |
| 2408 EXPECT_TRUE(wallpaper_loaded()); | 2416 EXPECT_TRUE(wallpaper_loaded()); |
| 2409 } | 2417 } |
| 2410 | 2418 |
| 2411 } // namespace chromeos | 2419 } // namespace chromeos |
| OLD | NEW |