OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_MOCK_BLUETOOTH_ADAPTER_CLIENT_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_DBUS_MOCK_BLUETOOTH_ADAPTER_CLIENT_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "chrome/browser/chromeos/dbus/bluetooth_adapter_client.h" | |
11 #include "testing/gmock/include/gmock/gmock.h" | |
12 | |
13 namespace chromeos { | |
14 | |
15 class MockBluetoothAdapterClient : public BluetoothAdapterClient { | |
16 public: | |
17 MockBluetoothAdapterClient(); | |
18 virtual ~MockBluetoothAdapterClient(); | |
19 | |
20 MOCK_METHOD1(AddObserver, void(Observer*)); | |
21 MOCK_METHOD1(RemoveObserver, void(Observer*)); | |
22 MOCK_METHOD1(GetProperties, Properties*(const dbus::ObjectPath&)); | |
23 MOCK_METHOD2(RequestSession, void(const dbus::ObjectPath&, | |
24 const AdapterCallback&)); | |
25 MOCK_METHOD2(ReleaseSession, void(const dbus::ObjectPath&, | |
26 const AdapterCallback&)); | |
27 MOCK_METHOD2(StartDiscovery, void(const dbus::ObjectPath&, | |
28 const AdapterCallback&)); | |
29 MOCK_METHOD2(StopDiscovery, void(const dbus::ObjectPath&, | |
30 const AdapterCallback&)); | |
31 MOCK_METHOD3(FindDevice, void(const dbus::ObjectPath&, | |
32 const std::string&, | |
33 const DeviceCallback&)); | |
34 MOCK_METHOD3(CreateDevice, void(const dbus::ObjectPath&, | |
35 const std::string&, | |
36 const DeviceCallback&)); | |
37 MOCK_METHOD5(CreatePairedDevice, void(const dbus::ObjectPath&, | |
38 const std::string&, | |
39 const dbus::ObjectPath&, | |
40 const std::string&, | |
41 const DeviceCallback&)); | |
42 MOCK_METHOD3(CancelDeviceCreation, void(const dbus::ObjectPath&, | |
43 const std::string&, | |
44 const AdapterCallback&)); | |
45 MOCK_METHOD3(RemoveDevice, void(const dbus::ObjectPath&, | |
46 const dbus::ObjectPath&, | |
47 const AdapterCallback&)); | |
48 MOCK_METHOD4(RegisterAgent, void(const dbus::ObjectPath&, | |
49 const dbus::ObjectPath&, | |
50 const std::string&, | |
51 const AdapterCallback&)); | |
52 MOCK_METHOD3(UnregisterAgent, void(const dbus::ObjectPath&, | |
53 const dbus::ObjectPath&, | |
54 const AdapterCallback&)); | |
55 }; | |
56 | |
57 } // namespace chromeos | |
58 | |
59 #endif // CHROME_BROWSER_CHROMEOS_DBUS_MOCK_BLUETOOTH_ADAPTER_CLIENT_H_ | |
OLD | NEW |