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

Side by Side Diff: chromeos/dbus/mock_dbus_thread_manager_without_gmock.h

Issue 14428004: dbus: Add FakeShillManagerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment. Created 7 years, 8 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
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 #ifndef CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_ 5 #ifndef CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_
6 #define CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_ 6 #define CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "chromeos/dbus/dbus_thread_manager.h" 12 #include "chromeos/dbus/dbus_thread_manager.h"
13 13
14 namespace dbus { 14 namespace dbus {
15 class Bus; 15 class Bus;
16 class ObjectPath; 16 class ObjectPath;
17 } // namespace dbus 17 } // namespace dbus
18 18
19 namespace chromeos { 19 namespace chromeos {
20 20
21 class DBusThreadManagerObserver; 21 class DBusThreadManagerObserver;
22 class FakeBluetoothAdapterClient; 22 class FakeBluetoothAdapterClient;
23 class FakeBluetoothAgentManagerClient; 23 class FakeBluetoothAgentManagerClient;
24 class FakeBluetoothDeviceClient; 24 class FakeBluetoothDeviceClient;
25 class FakeBluetoothInputClient; 25 class FakeBluetoothInputClient;
26 class FakeBluetoothProfileManagerClient; 26 class FakeBluetoothProfileManagerClient;
27 class FakeCrosDisksClient; 27 class FakeCrosDisksClient;
28 class FakeShillManagerClient;
28 class MockIBusClient; 29 class MockIBusClient;
29 class MockIBusConfigClient; 30 class MockIBusConfigClient;
30 class MockIBusEngineFactoryService; 31 class MockIBusEngineFactoryService;
31 class MockIBusEngineService; 32 class MockIBusEngineService;
32 class MockIBusInputContextClient; 33 class MockIBusInputContextClient;
33 class MockIBusPanelService; 34 class MockIBusPanelService;
34 35
35 // This class provides an another mock DBusThreadManager without gmock 36 // This class provides an another mock DBusThreadManager without gmock
36 // dependency. This class is used for places where GMock is not allowed 37 // dependency. This class is used for places where GMock is not allowed
37 // (ex. ui/) or is not used. 38 // (ex. ui/) or is not used.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 109 }
109 110
110 FakeBluetoothInputClient* fake_bluetooth_input_client() { 111 FakeBluetoothInputClient* fake_bluetooth_input_client() {
111 return fake_bluetooth_input_client_.get(); 112 return fake_bluetooth_input_client_.get();
112 } 113 }
113 114
114 FakeBluetoothProfileManagerClient* fake_bluetooth_profile_manager_client() { 115 FakeBluetoothProfileManagerClient* fake_bluetooth_profile_manager_client() {
115 return fake_bluetooth_profile_manager_client_.get(); 116 return fake_bluetooth_profile_manager_client_.get();
116 } 117 }
117 118
119 FakeShillManagerClient* fake_shill_manager_client() {
120 return fake_shill_manager_client_.get();
121 }
122
118 MockIBusClient* mock_ibus_client() { 123 MockIBusClient* mock_ibus_client() {
119 return mock_ibus_client_.get(); 124 return mock_ibus_client_.get();
120 } 125 }
121 126
122 MockIBusConfigClient* mock_ibus_config_client() { 127 MockIBusConfigClient* mock_ibus_config_client() {
123 return mock_ibus_config_client_.get(); 128 return mock_ibus_config_client_.get();
124 } 129 }
125 130
126 MockIBusInputContextClient* mock_ibus_input_context_client() { 131 MockIBusInputContextClient* mock_ibus_input_context_client() {
127 return mock_ibus_input_context_client_.get(); 132 return mock_ibus_input_context_client_.get();
(...skipping 17 matching lines...) Expand all
145 150
146 private: 151 private:
147 scoped_ptr<FakeBluetoothAdapterClient> fake_bluetooth_adapter_client_; 152 scoped_ptr<FakeBluetoothAdapterClient> fake_bluetooth_adapter_client_;
148 scoped_ptr<FakeBluetoothAgentManagerClient> 153 scoped_ptr<FakeBluetoothAgentManagerClient>
149 fake_bluetooth_agent_manager_client_; 154 fake_bluetooth_agent_manager_client_;
150 scoped_ptr<FakeBluetoothDeviceClient> fake_bluetooth_device_client_; 155 scoped_ptr<FakeBluetoothDeviceClient> fake_bluetooth_device_client_;
151 scoped_ptr<FakeBluetoothInputClient> fake_bluetooth_input_client_; 156 scoped_ptr<FakeBluetoothInputClient> fake_bluetooth_input_client_;
152 scoped_ptr<FakeBluetoothProfileManagerClient> 157 scoped_ptr<FakeBluetoothProfileManagerClient>
153 fake_bluetooth_profile_manager_client_; 158 fake_bluetooth_profile_manager_client_;
154 scoped_ptr<FakeCrosDisksClient> fake_cros_disks_client_; 159 scoped_ptr<FakeCrosDisksClient> fake_cros_disks_client_;
160 scoped_ptr<FakeShillManagerClient> fake_shill_manager_client_;
155 161
156 scoped_ptr<MockIBusClient> mock_ibus_client_; 162 scoped_ptr<MockIBusClient> mock_ibus_client_;
157 scoped_ptr<MockIBusConfigClient> mock_ibus_config_client_; 163 scoped_ptr<MockIBusConfigClient> mock_ibus_config_client_;
158 scoped_ptr<MockIBusInputContextClient> mock_ibus_input_context_client_; 164 scoped_ptr<MockIBusInputContextClient> mock_ibus_input_context_client_;
159 scoped_ptr<MockIBusEngineService> mock_ibus_engine_service_; 165 scoped_ptr<MockIBusEngineService> mock_ibus_engine_service_;
160 scoped_ptr<MockIBusEngineFactoryService> mock_ibus_engine_factory_service_; 166 scoped_ptr<MockIBusEngineFactoryService> mock_ibus_engine_factory_service_;
161 scoped_ptr<MockIBusPanelService> mock_ibus_panel_service_; 167 scoped_ptr<MockIBusPanelService> mock_ibus_panel_service_;
162 168
163 dbus::Bus* ibus_bus_; 169 dbus::Bus* ibus_bus_;
164 170
165 ObserverList<DBusThreadManagerObserver> observers_; 171 ObserverList<DBusThreadManagerObserver> observers_;
166 172
167 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManagerWithoutGMock); 173 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManagerWithoutGMock);
168 }; 174 };
169 175
170 } // namespace chromeos 176 } // namespace chromeos
171 177
172 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_ 178 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_WITHOUT_GMOCK_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_shill_manager_client.cc ('k') | chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698