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

Side by Side Diff: ash/test/ash_test_helper.cc

Issue 477663004: Merged FakedDBusThreadManager with DBusThreadManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 months 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
« no previous file with comments | « ash/system/chromeos/power/power_status_unittest.cc ('k') | athena/test/athena_test_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "ash/test/ash_test_helper.h" 5 #include "ash/test/ash_test_helper.h"
6 6
7 #include "ash/accelerators/accelerator_controller.h" 7 #include "ash/accelerators/accelerator_controller.h"
8 #include "ash/ash_switches.h" 8 #include "ash/ash_switches.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/shell_init_params.h" 10 #include "ash/shell_init_params.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 if (!test_shell_delegate_) 74 if (!test_shell_delegate_)
75 test_shell_delegate_ = new TestShellDelegate; 75 test_shell_delegate_ = new TestShellDelegate;
76 76
77 // Creates MessageCenter since g_browser_process is not created in AshTestBase 77 // Creates MessageCenter since g_browser_process is not created in AshTestBase
78 // tests. 78 // tests.
79 message_center::MessageCenter::Initialize(); 79 message_center::MessageCenter::Initialize();
80 80
81 #if defined(OS_CHROMEOS) 81 #if defined(OS_CHROMEOS)
82 // Create DBusThreadManager for testing. 82 // Create DBusThreadManager for testing.
83 if (!chromeos::DBusThreadManager::IsInitialized()) { 83 if (!chromeos::DBusThreadManager::IsInitialized()) {
84 chromeos::DBusThreadManager::InitializeWithStub(); 84 chromeos::DBusThreadManager::Initialize();
85 dbus_thread_manager_initialized_ = true; 85 dbus_thread_manager_initialized_ = true;
86 } 86 }
87 // Create CrasAudioHandler for testing since g_browser_process is not 87 // Create CrasAudioHandler for testing since g_browser_process is not
88 // created in AshTestBase tests. 88 // created in AshTestBase tests.
89 chromeos::CrasAudioHandler::InitializeForTesting(); 89 chromeos::CrasAudioHandler::InitializeForTesting();
90 #endif 90 #endif
91 ShellInitParams init_params; 91 ShellInitParams init_params;
92 init_params.delegate = test_shell_delegate_; 92 init_params.delegate = test_shell_delegate_;
93 init_params.context_factory = context_factory; 93 init_params.context_factory = context_factory;
94 ash::Shell::CreateInstance(init_params); 94 ash::Shell::CreateInstance(init_params);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 bool AshTestHelper::SupportsHostWindowResize() { 171 bool AshTestHelper::SupportsHostWindowResize() {
172 #if defined(OS_WIN) 172 #if defined(OS_WIN)
173 return false; 173 return false;
174 #else 174 #else
175 return true; 175 return true;
176 #endif 176 #endif
177 } 177 }
178 178
179 } // namespace test 179 } // namespace test
180 } // namespace ash 180 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/chromeos/power/power_status_unittest.cc ('k') | athena/test/athena_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698