OLD | NEW |
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 DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | 5 #ifndef DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ |
6 #define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | 6 #define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 const ConnectToServiceCallback& callback, | 72 const ConnectToServiceCallback& callback, |
73 const ConnectToServiceErrorCallback& error_callback)); | 73 const ConnectToServiceErrorCallback& error_callback)); |
74 | 74 |
75 MOCK_METHOD3(SetOutOfBandPairingData, | 75 MOCK_METHOD3(SetOutOfBandPairingData, |
76 void(const BluetoothOutOfBandPairingData& data, | 76 void(const BluetoothOutOfBandPairingData& data, |
77 const base::Closure& callback, | 77 const base::Closure& callback, |
78 const BluetoothDevice::ErrorCallback& error_callback)); | 78 const BluetoothDevice::ErrorCallback& error_callback)); |
79 MOCK_METHOD2(ClearOutOfBandPairingData, | 79 MOCK_METHOD2(ClearOutOfBandPairingData, |
80 void(const base::Closure& callback, | 80 void(const base::Closure& callback, |
81 const BluetoothDevice::ErrorCallback& error_callback)); | 81 const BluetoothDevice::ErrorCallback& error_callback)); |
| 82 MOCK_METHOD2(StartConnectionMonitor, |
| 83 void(const base::Closure& callback, |
| 84 const BluetoothDevice::ErrorCallback& error_callback)); |
82 | 85 |
83 MOCK_CONST_METHOD0(GetGattServices, std::vector<BluetoothGattService*>()); | 86 MOCK_CONST_METHOD0(GetGattServices, std::vector<BluetoothGattService*>()); |
84 MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&)); | 87 MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&)); |
85 | 88 |
86 private: | 89 private: |
87 uint32 bluetooth_class_; | 90 uint32 bluetooth_class_; |
88 std::string name_; | 91 std::string name_; |
89 std::string address_; | 92 std::string address_; |
90 BluetoothDevice::UUIDList uuids_; | 93 BluetoothDevice::UUIDList uuids_; |
91 }; | 94 }; |
92 | 95 |
93 } // namespace device | 96 } // namespace device |
94 | 97 |
95 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | 98 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ |
OLD | NEW |