| 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 "chrome/browser/chromeos/login/oobe_base_test.h" | 5 #include "chrome/browser/chromeos/login/oobe_base_test.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // Note the path name must be the same as in shill stub. | 32 // Note the path name must be the same as in shill stub. |
| 33 const char kStubEthernetServicePath[] = "eth1"; | 33 const char kStubEthernetServicePath[] = "eth1"; |
| 34 | 34 |
| 35 } // namespace | 35 } // namespace |
| 36 | 36 |
| 37 OobeBaseTest::OobeBaseTest() | 37 OobeBaseTest::OobeBaseTest() |
| 38 : fake_gaia_(new FakeGaia()), | 38 : fake_gaia_(new FakeGaia()), |
| 39 network_portal_detector_(NULL), | 39 network_portal_detector_(NULL), |
| 40 needs_background_networking_(false) { | 40 needs_background_networking_(false) { |
| 41 set_exit_when_last_browser_closes(false); | 41 set_exit_when_last_browser_closes(false); |
| 42 set_chromeos_user_ = false; | |
| 43 } | 42 } |
| 44 | 43 |
| 45 OobeBaseTest::~OobeBaseTest() { | 44 OobeBaseTest::~OobeBaseTest() { |
| 46 } | 45 } |
| 47 | 46 |
| 48 void OobeBaseTest::SetUp() { | 47 void OobeBaseTest::SetUp() { |
| 49 base::FilePath test_data_dir; | 48 base::FilePath test_data_dir; |
| 50 PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir); | 49 PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir); |
| 51 embedded_test_server()->ServeFilesFromDirectory(test_data_dir); | 50 embedded_test_server()->ServeFilesFromDirectory(test_data_dir); |
| 52 embedded_test_server()->RegisterRequestHandler( | 51 embedded_test_server()->RegisterRequestHandler( |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 173 |
| 175 WebUILoginDisplay* OobeBaseTest::GetLoginDisplay() { | 174 WebUILoginDisplay* OobeBaseTest::GetLoginDisplay() { |
| 176 ExistingUserController* controller = | 175 ExistingUserController* controller = |
| 177 ExistingUserController::current_controller(); | 176 ExistingUserController::current_controller(); |
| 178 CHECK(controller); | 177 CHECK(controller); |
| 179 return static_cast<WebUILoginDisplay*>( | 178 return static_cast<WebUILoginDisplay*>( |
| 180 controller->login_display()); | 179 controller->login_display()); |
| 181 } | 180 } |
| 182 | 181 |
| 183 } // namespace chromeos | 182 } // namespace chromeos |
| OLD | NEW |