OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013 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 CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_ADAPTER_CLIENT_H_ | |
6 #define CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_ADAPTER_CLIENT_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "chromeos/dbus/experimental_bluetooth_adapter_client.h" | |
11 #include "testing/gmock/include/gmock/gmock.h" | |
12 | |
13 namespace chromeos { | |
14 | |
15 class MockExperimentalBluetoothAdapterClient | |
16 : public ExperimentalBluetoothAdapterClient { | |
17 public: | |
18 struct Properties : public ExperimentalBluetoothAdapterClient::Properties { | |
19 Properties(); | |
20 virtual ~Properties(); | |
21 | |
22 MOCK_METHOD0(ConnectSignals, void()); | |
23 | |
24 MOCK_METHOD2(Get, void(dbus::PropertyBase* property, | |
25 dbus::PropertySet::GetCallback callback)); | |
26 MOCK_METHOD0(GetAll, void()); | |
27 MOCK_METHOD2(Set, void(dbus::PropertyBase* property, | |
28 dbus::PropertySet::SetCallback callback)); | |
29 | |
30 MOCK_METHOD1(ChangedReceived, void(dbus::Signal*)); | |
31 }; | |
32 | |
33 MockExperimentalBluetoothAdapterClient(); | |
34 virtual ~MockExperimentalBluetoothAdapterClient(); | |
35 | |
36 MOCK_METHOD1(AddObserver, void(Observer*)); | |
37 MOCK_METHOD1(RemoveObserver, void(Observer*)); | |
38 MOCK_METHOD0(GetAdapters, std::vector<dbus::ObjectPath>()); | |
39 MOCK_METHOD1(GetProperties, Properties*(const dbus::ObjectPath&)); | |
40 MOCK_METHOD3(StartDiscovery, void(const dbus::ObjectPath&, | |
41 const base::Closure&, | |
42 const ErrorCallback&)); | |
43 MOCK_METHOD3(StopDiscovery, void(const dbus::ObjectPath&, | |
44 const base::Closure&, | |
45 const ErrorCallback&)); | |
46 MOCK_METHOD4(RemoveDevice, void(const dbus::ObjectPath&, | |
47 const dbus::ObjectPath&, | |
48 const base::Closure&, | |
49 const ErrorCallback&)); | |
50 }; | |
51 | |
52 } // namespace chromeos | |
53 | |
54 #endif // CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_ADAPTER_CLIENT_H_ | |
OLD | NEW |