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_ADAPTER_H_ | 5 #ifndef DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ |
6 #define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ | 6 #define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
| 10 #include <vector> |
10 | 11 |
11 #include "base/callback.h" | 12 #include "base/callback.h" |
12 #include "base/memory/scoped_vector.h" | |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "device/bluetooth/bluetooth_adapter.h" | 14 #include "device/bluetooth/bluetooth_adapter.h" |
15 #include "device/bluetooth/bluetooth_device.h" | 15 #include "device/bluetooth/bluetooth_device.h" |
16 #include "device/bluetooth/bluetooth_discovery_session.h" | 16 #include "device/bluetooth/bluetooth_discovery_session.h" |
17 #include "device/bluetooth/test/mock_bluetooth_device.h" | 17 #include "device/bluetooth/test/mock_bluetooth_device.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 MockBluetoothAdapter : public BluetoothAdapter { | 22 class MockBluetoothAdapter : public BluetoothAdapter { |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 const base::TimeDelta& min, | 140 const base::TimeDelta& min, |
141 const base::TimeDelta& max, | 141 const base::TimeDelta& max, |
142 const base::Closure& callback, | 142 const base::Closure& callback, |
143 const AdvertisementErrorCallback& error_callback) override; | 143 const AdvertisementErrorCallback& error_callback) override; |
144 #endif | 144 #endif |
145 virtual ~MockBluetoothAdapter(); | 145 virtual ~MockBluetoothAdapter(); |
146 | 146 |
147 MOCK_METHOD1(RemovePairingDelegateInternal, | 147 MOCK_METHOD1(RemovePairingDelegateInternal, |
148 void(BluetoothDevice::PairingDelegate* pairing_delegate)); | 148 void(BluetoothDevice::PairingDelegate* pairing_delegate)); |
149 | 149 |
150 ScopedVector<MockBluetoothDevice> mock_devices_; | 150 std::vector<std::unique_ptr<MockBluetoothDevice>> mock_devices_; |
151 }; | 151 }; |
152 | 152 |
153 } // namespace device | 153 } // namespace device |
154 | 154 |
155 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ | 155 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ |
OLD | NEW |