| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/prefs/pref_registry_simple.h" | 9 #include "base/prefs/pref_registry_simple.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 : fake_session_manager_client_(NULL) { | 403 : fake_session_manager_client_(NULL) { |
| 404 } | 404 } |
| 405 | 405 |
| 406 virtual ~WizardControllerBrokenLocalStateTest() {} | 406 virtual ~WizardControllerBrokenLocalStateTest() {} |
| 407 | 407 |
| 408 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { | 408 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { |
| 409 WizardControllerTest::SetUpInProcessBrowserTestFixture(); | 409 WizardControllerTest::SetUpInProcessBrowserTestFixture(); |
| 410 | 410 |
| 411 FakeDBusThreadManager* fake_dbus_thread_manager = | 411 FakeDBusThreadManager* fake_dbus_thread_manager = |
| 412 new FakeDBusThreadManager(); | 412 new FakeDBusThreadManager(); |
| 413 fake_session_manager_client_ = | 413 fake_session_manager_client_ = new FakeSessionManagerClient; |
| 414 fake_dbus_thread_manager->fake_session_manager_client(); | 414 fake_dbus_thread_manager->SetSessionManagerClient( |
| 415 scoped_ptr<SessionManagerClient>(fake_session_manager_client_)); |
| 415 DBusThreadManager::InitializeForTesting(fake_dbus_thread_manager); | 416 DBusThreadManager::InitializeForTesting(fake_dbus_thread_manager); |
| 416 } | 417 } |
| 417 | 418 |
| 418 virtual void SetUpOnMainThread() OVERRIDE { | 419 virtual void SetUpOnMainThread() OVERRIDE { |
| 419 PrefServiceBuilder builder; | 420 PrefServiceBuilder builder; |
| 420 local_state_.reset(builder | 421 local_state_.reset(builder |
| 421 .WithUserPrefs(new PrefStoreStub()) | 422 .WithUserPrefs(new PrefStoreStub()) |
| 422 .Create(new PrefRegistrySimple())); | 423 .Create(new PrefRegistrySimple())); |
| 423 WizardController::set_local_state_for_testing(local_state_.get()); | 424 WizardController::set_local_state_for_testing(local_state_.get()); |
| 424 | 425 |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 } | 618 } |
| 618 | 619 |
| 619 // TODO(dzhioev): Add test emaulating device with wrong HWID. | 620 // TODO(dzhioev): Add test emaulating device with wrong HWID. |
| 620 | 621 |
| 621 // TODO(nkostylev): Add test for WebUI accelerators http://crosbug.com/22571 | 622 // TODO(nkostylev): Add test for WebUI accelerators http://crosbug.com/22571 |
| 622 | 623 |
| 623 COMPILE_ASSERT(ScreenObserver::EXIT_CODES_COUNT == 18, | 624 COMPILE_ASSERT(ScreenObserver::EXIT_CODES_COUNT == 18, |
| 624 add_tests_for_new_control_flow_you_just_introduced); | 625 add_tests_for_new_control_flow_you_just_introduced); |
| 625 | 626 |
| 626 } // namespace chromeos | 627 } // namespace chromeos |
| OLD | NEW |