| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "ash/desktop_background/desktop_background_controller.h" | 7 #include "ash/desktop_background/desktop_background_controller.h" |
| 8 #include "ash/desktop_background/desktop_background_controller_observer.h" | 8 #include "ash/desktop_background/desktop_background_controller_observer.h" |
| 9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2136 | 2136 |
| 2137 // Terminate the app. | 2137 // Terminate the app. |
| 2138 window->GetBaseWindow()->Close(); | 2138 window->GetBaseWindow()->Close(); |
| 2139 content::RunAllPendingInMessageLoop(); | 2139 content::RunAllPendingInMessageLoop(); |
| 2140 } | 2140 } |
| 2141 | 2141 |
| 2142 IN_PROC_BROWSER_TEST_F(KioskEnterpriseTest, PrivateStore) { | 2142 IN_PROC_BROWSER_TEST_F(KioskEnterpriseTest, PrivateStore) { |
| 2143 set_test_app_id(kTestEnterpriseKioskApp); | 2143 set_test_app_id(kTestEnterpriseKioskApp); |
| 2144 | 2144 |
| 2145 const char kPrivateStoreUpdate[] = "/private_store_update"; | 2145 const char kPrivateStoreUpdate[] = "/private_store_update"; |
| 2146 net::test_server::EmbeddedTestServer private_server; | 2146 net::EmbeddedTestServer private_server; |
| 2147 ASSERT_TRUE(private_server.InitializeAndWaitUntilReady()); | 2147 ASSERT_TRUE(private_server.Start()); |
| 2148 | 2148 |
| 2149 // |private_server| serves crx from test data dir. | 2149 // |private_server| serves crx from test data dir. |
| 2150 base::FilePath test_data_dir; | 2150 base::FilePath test_data_dir; |
| 2151 PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir); | 2151 PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir); |
| 2152 private_server.ServeFilesFromDirectory(test_data_dir); | 2152 private_server.ServeFilesFromDirectory(test_data_dir); |
| 2153 | 2153 |
| 2154 FakeCWS private_store; | 2154 FakeCWS private_store; |
| 2155 private_store.InitAsPrivateStore(&private_server, kPrivateStoreUpdate); | 2155 private_store.InitAsPrivateStore(&private_server, kPrivateStoreUpdate); |
| 2156 private_store.SetUpdateCrx(kTestEnterpriseKioskApp, | 2156 private_store.SetUpdateCrx(kTestEnterpriseKioskApp, |
| 2157 std::string(kTestEnterpriseKioskApp) + ".crx", | 2157 std::string(kTestEnterpriseKioskApp) + ".crx", |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2252 content::WindowedNotificationObserver( | 2252 content::WindowedNotificationObserver( |
| 2253 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE, | 2253 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE, |
| 2254 content::NotificationService::AllSources()).Wait(); | 2254 content::NotificationService::AllSources()).Wait(); |
| 2255 | 2255 |
| 2256 // Wait for the wallpaper to load. | 2256 // Wait for the wallpaper to load. |
| 2257 WaitForWallpaper(); | 2257 WaitForWallpaper(); |
| 2258 EXPECT_TRUE(wallpaper_loaded()); | 2258 EXPECT_TRUE(wallpaper_loaded()); |
| 2259 } | 2259 } |
| 2260 | 2260 |
| 2261 } // namespace chromeos | 2261 } // namespace chromeos |
| OLD | NEW |