OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_GATT_DESCRIPTOR_H_ | 5 #ifndef DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_GATT_DESCRIPTOR_H_ |
6 #define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_GATT_DESCRIPTOR_H_ | 6 #define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_GATT_DESCRIPTOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "device/bluetooth/bluetooth_remote_gatt_characteristic.h" | 15 #include "device/bluetooth/bluetooth_remote_gatt_characteristic.h" |
16 #include "device/bluetooth/bluetooth_remote_gatt_descriptor.h" | 16 #include "device/bluetooth/bluetooth_remote_gatt_descriptor.h" |
17 #include "device/bluetooth/bluetooth_uuid.h" | 17 #include "device/bluetooth/bluetooth_uuid.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
19 | 19 |
20 namespace device { | 20 namespace device { |
21 | 21 |
22 class MockBluetoothGattCharacteristic; | 22 class MockBluetoothGattCharacteristic; |
23 | 23 |
24 // TODO(rkc): This class doesn't seem to be used anywhere. Figure out whether | |
25 // it will be used (in which case, name it appropriately), otherwise delete the | |
26 // class. | |
27 class MockBluetoothGattDescriptor : public BluetoothRemoteGattDescriptor { | 24 class MockBluetoothGattDescriptor : public BluetoothRemoteGattDescriptor { |
28 public: | 25 public: |
29 MockBluetoothGattDescriptor( | 26 MockBluetoothGattDescriptor( |
30 MockBluetoothGattCharacteristic* characteristic, | 27 MockBluetoothGattCharacteristic* characteristic, |
31 const std::string& identifier, | 28 const std::string& identifier, |
32 const BluetoothUUID& uuid, | 29 const BluetoothUUID& uuid, |
33 bool is_local, | 30 bool is_local, |
34 BluetoothRemoteGattCharacteristic::Permissions permissions); | 31 BluetoothRemoteGattCharacteristic::Permissions permissions); |
35 virtual ~MockBluetoothGattDescriptor(); | 32 virtual ~MockBluetoothGattDescriptor(); |
36 | 33 |
(...skipping 11 matching lines...) Expand all Loading... |
48 const base::Closure&, | 45 const base::Closure&, |
49 const ErrorCallback&)); | 46 const ErrorCallback&)); |
50 | 47 |
51 private: | 48 private: |
52 DISALLOW_COPY_AND_ASSIGN(MockBluetoothGattDescriptor); | 49 DISALLOW_COPY_AND_ASSIGN(MockBluetoothGattDescriptor); |
53 }; | 50 }; |
54 | 51 |
55 } // namespace device | 52 } // namespace device |
56 | 53 |
57 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_GATT_DESCRIPTOR_H_ | 54 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_GATT_DESCRIPTOR_H_ |
OLD | NEW |