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

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

Issue 2338063002: chromeos: Refactor D-Bus client type enum and stub vs. fake naming (Closed)
Patch Set: review comments Created 4 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
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_delegate_aura.h" 7 #include "ash/accelerators/accelerator_controller_delegate_aura.h"
8 #include "ash/common/material_design/material_design_controller.h" 8 #include "ash/common/material_design/material_design_controller.h"
9 #include "ash/common/test/material_design_controller_test_api.h" 9 #include "ash/common/test/material_design_controller_test_api.h"
10 #include "ash/common/wm_shell.h" 10 #include "ash/common/wm_shell.h"
(...skipping 17 matching lines...) Expand all
28 #include "ui/base/test/material_design_controller_test_api.h" 28 #include "ui/base/test/material_design_controller_test_api.h"
29 #include "ui/compositor/scoped_animation_duration_scale_mode.h" 29 #include "ui/compositor/scoped_animation_duration_scale_mode.h"
30 #include "ui/compositor/test/context_factories_for_test.h" 30 #include "ui/compositor/test/context_factories_for_test.h"
31 #include "ui/display/manager/managed_display_info.h" 31 #include "ui/display/manager/managed_display_info.h"
32 #include "ui/message_center/message_center.h" 32 #include "ui/message_center/message_center.h"
33 #include "ui/wm/core/capture_controller.h" 33 #include "ui/wm/core/capture_controller.h"
34 #include "ui/wm/core/cursor_manager.h" 34 #include "ui/wm/core/cursor_manager.h"
35 35
36 #if defined(OS_CHROMEOS) 36 #if defined(OS_CHROMEOS)
37 #include "chromeos/audio/cras_audio_handler.h" 37 #include "chromeos/audio/cras_audio_handler.h"
38 #include "chromeos/dbus/dbus_client_types.h"
38 #include "chromeos/dbus/dbus_thread_manager.h" 39 #include "chromeos/dbus/dbus_thread_manager.h"
39 #include "device/bluetooth/bluetooth_adapter_factory.h" 40 #include "device/bluetooth/bluetooth_adapter_factory.h"
40 #include "device/bluetooth/dbus/bluez_dbus_manager.h" 41 #include "device/bluetooth/dbus/bluez_dbus_manager.h"
41 #endif 42 #endif
42 43
43 #if defined(OS_WIN) 44 #if defined(OS_WIN)
44 #include "base/win/windows_version.h" 45 #include "base/win/windows_version.h"
45 #endif 46 #endif
46 47
47 #if defined(USE_X11) 48 #if defined(USE_X11)
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 #if defined(OS_CHROMEOS) 93 #if defined(OS_CHROMEOS)
93 // Create DBusThreadManager for testing. 94 // Create DBusThreadManager for testing.
94 if (!chromeos::DBusThreadManager::IsInitialized()) { 95 if (!chromeos::DBusThreadManager::IsInitialized()) {
95 chromeos::DBusThreadManager::Initialize(); 96 chromeos::DBusThreadManager::Initialize();
96 dbus_thread_manager_initialized_ = true; 97 dbus_thread_manager_initialized_ = true;
97 } 98 }
98 99
99 if (!bluez::BluezDBusManager::IsInitialized()) { 100 if (!bluez::BluezDBusManager::IsInitialized()) {
100 bluez::BluezDBusManager::Initialize( 101 bluez::BluezDBusManager::Initialize(
101 chromeos::DBusThreadManager::Get()->GetSystemBus(), 102 chromeos::DBusThreadManager::Get()->GetSystemBus(),
102 chromeos::DBusThreadManager::Get()->IsUsingStub( 103 chromeos::DBusThreadManager::Get()->IsUsingFake(
103 chromeos::DBusClientBundle::BLUETOOTH)); 104 chromeos::DBusClientType::BLUETOOTH));
104 bluez_dbus_manager_initialized_ = true; 105 bluez_dbus_manager_initialized_ = true;
105 } 106 }
106 107
107 // Create CrasAudioHandler for testing since g_browser_process is not 108 // Create CrasAudioHandler for testing since g_browser_process is not
108 // created in AshTestBase tests. 109 // created in AshTestBase tests.
109 chromeos::CrasAudioHandler::InitializeForTesting(); 110 chromeos::CrasAudioHandler::InitializeForTesting();
110 #endif 111 #endif
111 ash_test_environment_->SetUp(); 112 ash_test_environment_->SetUp();
112 // Reset the global state for the cursor manager. This includes the 113 // Reset the global state for the cursor manager. This includes the
113 // last cursor visibility state, etc. 114 // last cursor visibility state, etc.
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 bool AshTestHelper::SupportsHostWindowResize() { 218 bool AshTestHelper::SupportsHostWindowResize() {
218 #if defined(OS_WIN) 219 #if defined(OS_WIN)
219 return false; 220 return false;
220 #else 221 #else
221 return true; 222 return true;
222 #endif 223 #endif
223 } 224 }
224 225
225 } // namespace test 226 } // namespace test
226 } // namespace ash 227 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/window_manager_application.cc ('k') | chrome/browser/chromeos/chrome_browser_main_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698