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

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

Issue 1409163006: Migrating tests to use EmbeddedTestServer (/chrome/browser misc) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 1 month 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
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 <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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698