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_NOTIFY_SESSION_H_ | 5 #ifndef DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_GATT_NOTIFY_SESSION_H_ |
6 #define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_GATT_NOTIFY_SESSION_H_ | 6 #define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_GATT_NOTIFY_SESSION_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" |
11 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
12 #include "device/bluetooth/bluetooth_gatt_notify_session.h" | 15 #include "device/bluetooth/bluetooth_gatt_notify_session.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
14 | 17 |
15 namespace device { | 18 namespace device { |
16 | 19 |
17 class MockBluetoothAdapter; | 20 class MockBluetoothAdapter; |
18 class MockBluetoothGattCharacteristic; | 21 class MockBluetoothGattCharacteristic; |
19 | 22 |
20 class MockBluetoothGattNotifySession : public BluetoothGattNotifySession { | 23 class MockBluetoothGattNotifySession : public BluetoothGattNotifySession { |
(...skipping 22 matching lines...) Expand all Loading... |
43 const std::vector<uint8_t>& value); | 46 const std::vector<uint8_t>& value); |
44 | 47 |
45 base::RepeatingTimer test_notifications_timer_; | 48 base::RepeatingTimer test_notifications_timer_; |
46 | 49 |
47 DISALLOW_COPY_AND_ASSIGN(MockBluetoothGattNotifySession); | 50 DISALLOW_COPY_AND_ASSIGN(MockBluetoothGattNotifySession); |
48 }; | 51 }; |
49 | 52 |
50 } // namespace device | 53 } // namespace device |
51 | 54 |
52 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_GATT_NOTIFY_SESSION_H_ | 55 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_GATT_NOTIFY_SESSION_H_ |
OLD | NEW |