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

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

Issue 83633004: Do not spawn a thread in browser/interactive ui tests before spawning sandbox host process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
OLDNEW
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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 447
448 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { 448 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
449 WizardControllerTest::SetUpInProcessBrowserTestFixture(); 449 WizardControllerTest::SetUpInProcessBrowserTestFixture();
450 450
451 FakeDBusThreadManager* fake_dbus_thread_manager = 451 FakeDBusThreadManager* fake_dbus_thread_manager =
452 new FakeDBusThreadManager(); 452 new FakeDBusThreadManager();
453 fake_dbus_thread_manager->SetFakeClients(); 453 fake_dbus_thread_manager->SetFakeClients();
454 fake_session_manager_client_ = new FakeSessionManagerClient; 454 fake_session_manager_client_ = new FakeSessionManagerClient;
455 fake_dbus_thread_manager->SetSessionManagerClient( 455 fake_dbus_thread_manager->SetSessionManagerClient(
456 scoped_ptr<SessionManagerClient>(fake_session_manager_client_)); 456 scoped_ptr<SessionManagerClient>(fake_session_manager_client_));
457 DBusThreadManager::InitializeForTesting(fake_dbus_thread_manager); 457 DBusThreadManager::SetInstanceForTesting(fake_dbus_thread_manager);
458 } 458 }
459 459
460 virtual void SetUpOnMainThread() OVERRIDE { 460 virtual void SetUpOnMainThread() OVERRIDE {
461 base::PrefServiceFactory factory; 461 base::PrefServiceFactory factory;
462 factory.set_user_prefs(make_scoped_refptr(new PrefStoreStub())); 462 factory.set_user_prefs(make_scoped_refptr(new PrefStoreStub()));
463 local_state_ = factory.Create(new PrefRegistrySimple()).Pass(); 463 local_state_ = factory.Create(new PrefRegistrySimple()).Pass();
464 WizardController::set_local_state_for_testing(local_state_.get()); 464 WizardController::set_local_state_for_testing(local_state_.get());
465 465
466 WizardControllerTest::SetUpOnMainThread(); 466 WizardControllerTest::SetUpOnMainThread();
467 467
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 } 706 }
707 707
708 // TODO(dzhioev): Add test emaulating device with wrong HWID. 708 // TODO(dzhioev): Add test emaulating device with wrong HWID.
709 709
710 // TODO(nkostylev): Add test for WebUI accelerators http://crosbug.com/22571 710 // TODO(nkostylev): Add test for WebUI accelerators http://crosbug.com/22571
711 711
712 COMPILE_ASSERT(ScreenObserver::EXIT_CODES_COUNT == 19, 712 COMPILE_ASSERT(ScreenObserver::EXIT_CODES_COUNT == 19,
713 add_tests_for_new_control_flow_you_just_introduced); 713 add_tests_for_new_control_flow_you_just_introduced);
714 714
715 } // namespace chromeos 715 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698