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

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

Issue 10546010: Implement support for the OOB Pairing APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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_H_ 5 #ifndef CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_
6 #define CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ 6 #define CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chromeos/dbus/dbus_thread_manager.h" 10 #include "chromeos/dbus/dbus_thread_manager.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace dbus { 13 namespace dbus {
14 14
15 class Bus; 15 class Bus;
16 16
17 } // namespace dbus 17 } // namespace dbus
18 18
19 namespace chromeos { 19 namespace chromeos {
20 20
21 class MockBluetoothAdapterClient; 21 class MockBluetoothAdapterClient;
22 class MockBluetoothDeviceClient; 22 class MockBluetoothDeviceClient;
23 class MockBluetoothInputClient; 23 class MockBluetoothInputClient;
24 class MockBluetoothManagerClient; 24 class MockBluetoothManagerClient;
25 class MockBluetoothNodeClient; 25 class MockBluetoothNodeClient;
26 class MockBluetoothOutOfBandClient;
26 class MockCashewClient; 27 class MockCashewClient;
27 class MockCrosDisksClient; 28 class MockCrosDisksClient;
28 class MockCryptohomeClient; 29 class MockCryptohomeClient;
29 class MockDebugDaemonClient; 30 class MockDebugDaemonClient;
30 class MockFlimflamDeviceClient; 31 class MockFlimflamDeviceClient;
31 class MockFlimflamIPConfigClient; 32 class MockFlimflamIPConfigClient;
32 class MockFlimflamManagerClient; 33 class MockFlimflamManagerClient;
33 class MockFlimflamNetworkClient; 34 class MockFlimflamNetworkClient;
34 class MockFlimflamProfileClient; 35 class MockFlimflamProfileClient;
35 class MockFlimflamServiceClient; 36 class MockFlimflamServiceClient;
(...skipping 18 matching lines...) Expand all
54 virtual ~MockDBusThreadManager(); 55 virtual ~MockDBusThreadManager();
55 56
56 MOCK_METHOD1(InitIBusBus, void(const std::string& ibus_address)); 57 MOCK_METHOD1(InitIBusBus, void(const std::string& ibus_address));
57 MOCK_METHOD0(GetSystemBus, dbus::Bus*(void)); 58 MOCK_METHOD0(GetSystemBus, dbus::Bus*(void));
58 MOCK_METHOD0(GetIBusBus, dbus::Bus*(void)); 59 MOCK_METHOD0(GetIBusBus, dbus::Bus*(void));
59 MOCK_METHOD0(GetBluetoothAdapterClient, BluetoothAdapterClient*(void)); 60 MOCK_METHOD0(GetBluetoothAdapterClient, BluetoothAdapterClient*(void));
60 MOCK_METHOD0(GetBluetoothDeviceClient, BluetoothDeviceClient*(void)); 61 MOCK_METHOD0(GetBluetoothDeviceClient, BluetoothDeviceClient*(void));
61 MOCK_METHOD0(GetBluetoothInputClient, BluetoothInputClient*(void)); 62 MOCK_METHOD0(GetBluetoothInputClient, BluetoothInputClient*(void));
62 MOCK_METHOD0(GetBluetoothManagerClient, BluetoothManagerClient*(void)); 63 MOCK_METHOD0(GetBluetoothManagerClient, BluetoothManagerClient*(void));
63 MOCK_METHOD0(GetBluetoothNodeClient, BluetoothNodeClient*(void)); 64 MOCK_METHOD0(GetBluetoothNodeClient, BluetoothNodeClient*(void));
65 MOCK_METHOD0(GetBluetoothOutOfBandClient, BluetoothOutOfBandClient*(void));
64 MOCK_METHOD0(GetCashewClient, CashewClient*(void)); 66 MOCK_METHOD0(GetCashewClient, CashewClient*(void));
65 MOCK_METHOD0(GetCrosDisksClient, CrosDisksClient*(void)); 67 MOCK_METHOD0(GetCrosDisksClient, CrosDisksClient*(void));
66 MOCK_METHOD0(GetCryptohomeClient, CryptohomeClient*(void)); 68 MOCK_METHOD0(GetCryptohomeClient, CryptohomeClient*(void));
67 MOCK_METHOD0(GetDebugDaemonClient, DebugDaemonClient*(void)); 69 MOCK_METHOD0(GetDebugDaemonClient, DebugDaemonClient*(void));
68 MOCK_METHOD0(GetFlimflamDeviceClient, FlimflamDeviceClient*(void)); 70 MOCK_METHOD0(GetFlimflamDeviceClient, FlimflamDeviceClient*(void));
69 MOCK_METHOD0(GetFlimflamIPConfigClient, FlimflamIPConfigClient*(void)); 71 MOCK_METHOD0(GetFlimflamIPConfigClient, FlimflamIPConfigClient*(void));
70 MOCK_METHOD0(GetFlimflamManagerClient, FlimflamManagerClient*(void)); 72 MOCK_METHOD0(GetFlimflamManagerClient, FlimflamManagerClient*(void));
71 MOCK_METHOD0(GetFlimflamNetworkClient, FlimflamNetworkClient*(void)); 73 MOCK_METHOD0(GetFlimflamNetworkClient, FlimflamNetworkClient*(void));
72 MOCK_METHOD0(GetFlimflamProfileClient, FlimflamProfileClient*(void)); 74 MOCK_METHOD0(GetFlimflamProfileClient, FlimflamProfileClient*(void));
73 MOCK_METHOD0(GetFlimflamServiceClient, FlimflamServiceClient*(void)); 75 MOCK_METHOD0(GetFlimflamServiceClient, FlimflamServiceClient*(void));
(...skipping 17 matching lines...) Expand all
91 } 93 }
92 MockBluetoothInputClient* mock_bluetooth_input_client() { 94 MockBluetoothInputClient* mock_bluetooth_input_client() {
93 return mock_bluetooth_input_client_.get(); 95 return mock_bluetooth_input_client_.get();
94 } 96 }
95 MockBluetoothManagerClient* mock_bluetooth_manager_client() { 97 MockBluetoothManagerClient* mock_bluetooth_manager_client() {
96 return mock_bluetooth_manager_client_.get(); 98 return mock_bluetooth_manager_client_.get();
97 } 99 }
98 MockBluetoothNodeClient* mock_bluetooth_node_client() { 100 MockBluetoothNodeClient* mock_bluetooth_node_client() {
99 return mock_bluetooth_node_client_.get(); 101 return mock_bluetooth_node_client_.get();
100 } 102 }
103 MockBluetoothOutOfBandClient* mock_bluetooth_out_of_band_client() {
104 return mock_bluetooth_out_of_band_client_.get();
105 }
101 MockCashewClient* mock_cashew_client() { 106 MockCashewClient* mock_cashew_client() {
102 return mock_cashew_client_.get(); 107 return mock_cashew_client_.get();
103 } 108 }
104 MockCrosDisksClient* mock_cros_disks_client() { 109 MockCrosDisksClient* mock_cros_disks_client() {
105 return mock_cros_disks_client_.get(); 110 return mock_cros_disks_client_.get();
106 } 111 }
107 MockCryptohomeClient* mock_cryptohome_client() { 112 MockCryptohomeClient* mock_cryptohome_client() {
108 return mock_cryptohome_client_.get(); 113 return mock_cryptohome_client_.get();
109 } 114 }
110 MockDebugDaemonClient* mock_debugdaemon_client() { 115 MockDebugDaemonClient* mock_debugdaemon_client() {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 MockIBusInputContextClient* mock_ibus_input_context_client() { 166 MockIBusInputContextClient* mock_ibus_input_context_client() {
162 return mock_ibus_input_context_client_.get(); 167 return mock_ibus_input_context_client_.get();
163 } 168 }
164 169
165 private: 170 private:
166 scoped_ptr<MockBluetoothAdapterClient> mock_bluetooth_adapter_client_; 171 scoped_ptr<MockBluetoothAdapterClient> mock_bluetooth_adapter_client_;
167 scoped_ptr<MockBluetoothDeviceClient> mock_bluetooth_device_client_; 172 scoped_ptr<MockBluetoothDeviceClient> mock_bluetooth_device_client_;
168 scoped_ptr<MockBluetoothInputClient> mock_bluetooth_input_client_; 173 scoped_ptr<MockBluetoothInputClient> mock_bluetooth_input_client_;
169 scoped_ptr<MockBluetoothManagerClient> mock_bluetooth_manager_client_; 174 scoped_ptr<MockBluetoothManagerClient> mock_bluetooth_manager_client_;
170 scoped_ptr<MockBluetoothNodeClient> mock_bluetooth_node_client_; 175 scoped_ptr<MockBluetoothNodeClient> mock_bluetooth_node_client_;
176 scoped_ptr<MockBluetoothOutOfBandClient> mock_bluetooth_out_of_band_client_;
171 scoped_ptr<MockCashewClient> mock_cashew_client_; 177 scoped_ptr<MockCashewClient> mock_cashew_client_;
172 scoped_ptr<MockCrosDisksClient> mock_cros_disks_client_; 178 scoped_ptr<MockCrosDisksClient> mock_cros_disks_client_;
173 scoped_ptr<MockCryptohomeClient> mock_cryptohome_client_; 179 scoped_ptr<MockCryptohomeClient> mock_cryptohome_client_;
174 scoped_ptr<MockDebugDaemonClient> mock_debugdaemon_client_; 180 scoped_ptr<MockDebugDaemonClient> mock_debugdaemon_client_;
175 scoped_ptr<MockFlimflamDeviceClient> mock_flimflam_device_client_; 181 scoped_ptr<MockFlimflamDeviceClient> mock_flimflam_device_client_;
176 scoped_ptr<MockFlimflamIPConfigClient> mock_flimflam_ipconfig_client_; 182 scoped_ptr<MockFlimflamIPConfigClient> mock_flimflam_ipconfig_client_;
177 scoped_ptr<MockFlimflamManagerClient> mock_flimflam_manager_client_; 183 scoped_ptr<MockFlimflamManagerClient> mock_flimflam_manager_client_;
178 scoped_ptr<MockFlimflamNetworkClient> mock_flimflam_network_client_; 184 scoped_ptr<MockFlimflamNetworkClient> mock_flimflam_network_client_;
179 scoped_ptr<MockFlimflamProfileClient> mock_flimflam_profile_client_; 185 scoped_ptr<MockFlimflamProfileClient> mock_flimflam_profile_client_;
180 scoped_ptr<MockFlimflamServiceClient> mock_flimflam_service_client_; 186 scoped_ptr<MockFlimflamServiceClient> mock_flimflam_service_client_;
181 scoped_ptr<MockGsmSMSClient> mock_gsm_sms_client_; 187 scoped_ptr<MockGsmSMSClient> mock_gsm_sms_client_;
182 scoped_ptr<MockImageBurnerClient> mock_image_burner_client_; 188 scoped_ptr<MockImageBurnerClient> mock_image_burner_client_;
183 scoped_ptr<MockIntrospectableClient> mock_introspectable_client_; 189 scoped_ptr<MockIntrospectableClient> mock_introspectable_client_;
184 scoped_ptr<MockModemMessagingClient> mock_modem_messaging_client_; 190 scoped_ptr<MockModemMessagingClient> mock_modem_messaging_client_;
185 scoped_ptr<MockPowerManagerClient> mock_power_manager_client_; 191 scoped_ptr<MockPowerManagerClient> mock_power_manager_client_;
186 scoped_ptr<MockSessionManagerClient> mock_session_manager_client_; 192 scoped_ptr<MockSessionManagerClient> mock_session_manager_client_;
187 scoped_ptr<MockSMSClient> mock_sms_client_; 193 scoped_ptr<MockSMSClient> mock_sms_client_;
188 scoped_ptr<MockSpeechSynthesizerClient> mock_speech_synthesizer_client_; 194 scoped_ptr<MockSpeechSynthesizerClient> mock_speech_synthesizer_client_;
189 scoped_ptr<MockUpdateEngineClient> mock_update_engine_client_; 195 scoped_ptr<MockUpdateEngineClient> mock_update_engine_client_;
190 scoped_ptr<MockIBusClient> mock_ibus_client_; 196 scoped_ptr<MockIBusClient> mock_ibus_client_;
191 scoped_ptr<MockIBusInputContextClient> mock_ibus_input_context_client_; 197 scoped_ptr<MockIBusInputContextClient> mock_ibus_input_context_client_;
192 198
193 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManager); 199 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManager);
194 }; 200 };
195 201
196 } // namespace chromeos 202 } // namespace chromeos
197 203
198 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ 204 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_bluetooth_out_of_band_client.cc ('k') | chromeos/dbus/mock_dbus_thread_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698