1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_DBUS_MOCK_BLUETOOTH_ADAPTER_CLIENT_H_
#define CHROME_BROWSER_CHROMEOS_DBUS_MOCK_BLUETOOTH_ADAPTER_CLIENT_H_
#include <string>
#include "chrome/browser/chromeos/dbus/bluetooth_adapter_client.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace chromeos {
class MockBluetoothAdapterClient : public BluetoothAdapterClient {
public:
MockBluetoothAdapterClient();
virtual ~MockBluetoothAdapterClient();
MOCK_METHOD1(AddObserver, void(Observer*));
MOCK_METHOD1(RemoveObserver, void(Observer*));
MOCK_METHOD1(GetProperties, Properties*(const dbus::ObjectPath&));
MOCK_METHOD2(RequestSession, void(const dbus::ObjectPath&,
const AdapterCallback&));
MOCK_METHOD2(ReleaseSession, void(const dbus::ObjectPath&,
const AdapterCallback&));
MOCK_METHOD2(StartDiscovery, void(const dbus::ObjectPath&,
const AdapterCallback&));
MOCK_METHOD2(StopDiscovery, void(const dbus::ObjectPath&,
const AdapterCallback&));
MOCK_METHOD3(FindDevice, void(const dbus::ObjectPath&,
const std::string&,
const DeviceCallback&));
MOCK_METHOD3(CreateDevice, void(const dbus::ObjectPath&,
const std::string&,
const DeviceCallback&));
MOCK_METHOD5(CreatePairedDevice, void(const dbus::ObjectPath&,
const std::string&,
const dbus::ObjectPath&,
const std::string&,
const DeviceCallback&));
MOCK_METHOD3(CancelDeviceCreation, void(const dbus::ObjectPath&,
const std::string&,
const AdapterCallback&));
MOCK_METHOD3(RemoveDevice, void(const dbus::ObjectPath&,
const dbus::ObjectPath&,
const AdapterCallback&));
MOCK_METHOD4(RegisterAgent, void(const dbus::ObjectPath&,
const dbus::ObjectPath&,
const std::string&,
const AdapterCallback&));
MOCK_METHOD3(UnregisterAgent, void(const dbus::ObjectPath&,
const dbus::ObjectPath&,
const AdapterCallback&));
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_DBUS_MOCK_BLUETOOTH_ADAPTER_CLIENT_H_
|