| 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/string16.h" | 10 #include "base/string16.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 uint32 bluetooth_class, | 22 uint32 bluetooth_class, |
| 23 const std::string& name, | 23 const std::string& name, |
| 24 const std::string& address, | 24 const std::string& address, |
| 25 bool paired, | 25 bool paired, |
| 26 bool connected); | 26 bool connected); |
| 27 virtual ~MockBluetoothDevice(); | 27 virtual ~MockBluetoothDevice(); |
| 28 | 28 |
| 29 MOCK_CONST_METHOD0(GetBluetoothClass, uint32()); | 29 MOCK_CONST_METHOD0(GetBluetoothClass, uint32()); |
| 30 MOCK_CONST_METHOD0(GetDeviceName, std::string()); | 30 MOCK_CONST_METHOD0(GetDeviceName, std::string()); |
| 31 MOCK_CONST_METHOD0(GetAddress, std::string()); | 31 MOCK_CONST_METHOD0(GetAddress, std::string()); |
| 32 MOCK_CONST_METHOD0(GetVendorID, uint16()); |
| 33 MOCK_CONST_METHOD0(GetProductID, uint16()); |
| 34 MOCK_CONST_METHOD0(GetDeviceID, uint16()); |
| 32 MOCK_CONST_METHOD0(GetName, string16()); | 35 MOCK_CONST_METHOD0(GetName, string16()); |
| 33 MOCK_CONST_METHOD0(GetDeviceType, BluetoothDevice::DeviceType()); | 36 MOCK_CONST_METHOD0(GetDeviceType, BluetoothDevice::DeviceType()); |
| 34 MOCK_CONST_METHOD0(IsPaired, bool()); | 37 MOCK_CONST_METHOD0(IsPaired, bool()); |
| 35 MOCK_CONST_METHOD0(IsConnected, bool()); | 38 MOCK_CONST_METHOD0(IsConnected, bool()); |
| 36 MOCK_CONST_METHOD0(IsConnectable, bool()); | 39 MOCK_CONST_METHOD0(IsConnectable, bool()); |
| 37 MOCK_CONST_METHOD0(IsConnecting, bool()); | 40 MOCK_CONST_METHOD0(IsConnecting, bool()); |
| 38 MOCK_CONST_METHOD0(GetServices, ServiceList()); | 41 MOCK_CONST_METHOD0(GetServices, ServiceList()); |
| 39 MOCK_METHOD2(GetServiceRecords, | 42 MOCK_METHOD2(GetServiceRecords, |
| 40 void(const BluetoothDevice::ServiceRecordsCallback&, | 43 void(const BluetoothDevice::ServiceRecordsCallback&, |
| 41 const BluetoothDevice::ErrorCallback&)); | 44 const BluetoothDevice::ErrorCallback&)); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 private: | 82 private: |
| 80 uint32 bluetooth_class_; | 83 uint32 bluetooth_class_; |
| 81 std::string name_; | 84 std::string name_; |
| 82 std::string address_; | 85 std::string address_; |
| 83 BluetoothDevice::ServiceList service_list_; | 86 BluetoothDevice::ServiceList service_list_; |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 } // namespace device | 89 } // namespace device |
| 87 | 90 |
| 88 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | 91 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ |
| OLD | NEW |