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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 MOCK_METHOD0(RejectPairing, void()); | 59 MOCK_METHOD0(RejectPairing, void()); |
60 MOCK_METHOD0(CancelPairing, void()); | 60 MOCK_METHOD0(CancelPairing, void()); |
61 MOCK_METHOD2(Disconnect, | 61 MOCK_METHOD2(Disconnect, |
62 void(const base::Closure& callback, | 62 void(const base::Closure& callback, |
63 const BluetoothDevice::ErrorCallback& error_callback)); | 63 const BluetoothDevice::ErrorCallback& error_callback)); |
64 MOCK_METHOD1(Forget, void(const BluetoothDevice::ErrorCallback&)); | 64 MOCK_METHOD1(Forget, void(const BluetoothDevice::ErrorCallback&)); |
65 MOCK_METHOD3(ConnectToService, | 65 MOCK_METHOD3(ConnectToService, |
66 void(const BluetoothUUID& uuid, | 66 void(const BluetoothUUID& uuid, |
67 const ConnectToServiceCallback& callback, | 67 const ConnectToServiceCallback& callback, |
68 const ConnectToServiceErrorCallback& error_callback)); | 68 const ConnectToServiceErrorCallback& error_callback)); |
| 69 MOCK_METHOD2(CreateGattConnection, |
| 70 void(const GattConnectionCallback& callback, |
| 71 const ConnectErrorCallback& error_callback)); |
69 | 72 |
70 MOCK_METHOD2(StartConnectionMonitor, | 73 MOCK_METHOD2(StartConnectionMonitor, |
71 void(const base::Closure& callback, | 74 void(const base::Closure& callback, |
72 const BluetoothDevice::ErrorCallback& error_callback)); | 75 const BluetoothDevice::ErrorCallback& error_callback)); |
73 | 76 |
74 MOCK_CONST_METHOD0(GetGattServices, std::vector<BluetoothGattService*>()); | 77 MOCK_CONST_METHOD0(GetGattServices, std::vector<BluetoothGattService*>()); |
75 MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&)); | 78 MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&)); |
76 | 79 |
77 private: | 80 private: |
78 uint32 bluetooth_class_; | 81 uint32 bluetooth_class_; |
79 std::string name_; | 82 std::string name_; |
80 std::string address_; | 83 std::string address_; |
81 BluetoothDevice::UUIDList uuids_; | 84 BluetoothDevice::UUIDList uuids_; |
82 }; | 85 }; |
83 | 86 |
84 } // namespace device | 87 } // namespace device |
85 | 88 |
86 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ | 89 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_DEVICE_H_ |
OLD | NEW |