| 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)); |
| 85 MOCK_METHOD2(StopConnectionMonitor, |
| 86 void(const base::Closure& callback, |
| 87 const BluetoothDevice::ErrorCallback& error_callback)); |
| 82 | 88 |
| 83 MOCK_CONST_METHOD0(GetGattServices, std::vector<BluetoothGattService*>()); | 89 MOCK_CONST_METHOD0(GetGattServices, std::vector<BluetoothGattService*>()); |
| 84 MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&)); | 90 MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&)); |
| 85 | 91 |
| 86 private: | 92 private: |
| 87 uint32 bluetooth_class_; | 93 uint32 bluetooth_class_; |
| 88 std::string name_; | 94 std::string name_; |
| 89 std::string address_; | 95 std::string address_; |
| 90 BluetoothDevice::UUIDList uuids_; | 96 BluetoothDevice::UUIDList uuids_; |
| 91 }; | 97 }; |
| 92 | 98 |
| 93 } // namespace device | 99 } // namespace device |
| 94 | 100 |
| 95 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | 101 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ |
| OLD | NEW |