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_DEVICE_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_DEVICE_CLIENT_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "chromeos/dbus/experimental_bluetooth_device_client.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 |
| 13 namespace chromeos { |
| 14 |
| 15 class MockExperimentalBluetoothDeviceClient |
| 16 : public ExperimentalBluetoothDeviceClient { |
| 17 public: |
| 18 struct Properties : public ExperimentalBluetoothDeviceClient::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 MockExperimentalBluetoothDeviceClient(); |
| 34 virtual ~MockExperimentalBluetoothDeviceClient(); |
| 35 |
| 36 MOCK_METHOD1(AddObserver, void(Observer*)); |
| 37 MOCK_METHOD1(RemoveObserver, void(Observer*)); |
| 38 MOCK_METHOD1(GetDevicesForAdapter, |
| 39 std::vector<dbus::ObjectPath>(const dbus::ObjectPath&)); |
| 40 MOCK_METHOD1(GetProperties, Properties*(const dbus::ObjectPath&)); |
| 41 MOCK_METHOD3(Connect, void(const dbus::ObjectPath&, |
| 42 const base::Closure&, |
| 43 const ErrorCallback&)); |
| 44 MOCK_METHOD3(Disconnect, void(const dbus::ObjectPath&, |
| 45 const base::Closure&, |
| 46 const ErrorCallback&)); |
| 47 MOCK_METHOD4(ConnectProfile, void(const dbus::ObjectPath&, |
| 48 const std::string&, |
| 49 const base::Closure&, |
| 50 const ErrorCallback&)); |
| 51 MOCK_METHOD4(DisconnectProfile, void(const dbus::ObjectPath&, |
| 52 const std::string&, |
| 53 const base::Closure&, |
| 54 const ErrorCallback&)); |
| 55 MOCK_METHOD3(Pair, void(const dbus::ObjectPath&, |
| 56 const base::Closure&, |
| 57 const ErrorCallback&)); |
| 58 MOCK_METHOD3(CancelPairing, void(const dbus::ObjectPath&, |
| 59 const base::Closure&, |
| 60 const ErrorCallback&)); |
| 61 }; |
| 62 |
| 63 } // namespace chromeos |
| 64 |
| 65 #endif // CHROMEOS_DBUS_MOCK_EXPERIMENTAL_BLUETOOTH_DEVICE_CLIENT_H_ |
OLD | NEW |