Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: device/bluetooth/test/mock_bluetooth_adapter.h

Issue 2389753003: Delete unused BluetoothAudioSink code. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « device/bluetooth/bluez/bluetooth_bluez_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/scoped_vector.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_audio_sink.h"
16 #include "device/bluetooth/bluetooth_device.h" 15 #include "device/bluetooth/bluetooth_device.h"
17 #include "device/bluetooth/bluetooth_discovery_session.h" 16 #include "device/bluetooth/bluetooth_discovery_session.h"
18 #include "device/bluetooth/test/mock_bluetooth_device.h" 17 #include "device/bluetooth/test/mock_bluetooth_device.h"
19 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
20 19
21 namespace device { 20 namespace device {
22 21
23 class MockBluetoothAdapter : public BluetoothAdapter { 22 class MockBluetoothAdapter : public BluetoothAdapter {
24 public: 23 public:
25 class Observer : public BluetoothAdapter::Observer { 24 class Observer : public BluetoothAdapter::Observer {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 MOCK_METHOD4(CreateRfcommService, 86 MOCK_METHOD4(CreateRfcommService,
88 void(const BluetoothUUID& uuid, 87 void(const BluetoothUUID& uuid,
89 const ServiceOptions& options, 88 const ServiceOptions& options,
90 const CreateServiceCallback& callback, 89 const CreateServiceCallback& callback,
91 const CreateServiceErrorCallback& error_callback)); 90 const CreateServiceErrorCallback& error_callback));
92 MOCK_METHOD4(CreateL2capService, 91 MOCK_METHOD4(CreateL2capService,
93 void(const BluetoothUUID& uuid, 92 void(const BluetoothUUID& uuid,
94 const ServiceOptions& options, 93 const ServiceOptions& options,
95 const CreateServiceCallback& callback, 94 const CreateServiceCallback& callback,
96 const CreateServiceErrorCallback& error_callback)); 95 const CreateServiceErrorCallback& error_callback));
97 MOCK_METHOD3(RegisterAudioSink,
98 void(const BluetoothAudioSink::Options& options,
99 const AcquiredCallback& callback,
100 const BluetoothAudioSink::ErrorCallback& error_callback));
101 MOCK_CONST_METHOD1(GetGattService, 96 MOCK_CONST_METHOD1(GetGattService,
102 BluetoothLocalGattService*(const std::string& identifier)); 97 BluetoothLocalGattService*(const std::string& identifier));
103 98
104 void StartDiscoverySessionWithFilter( 99 void StartDiscoverySessionWithFilter(
105 std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter, 100 std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter,
106 const DiscoverySessionCallback& callback, 101 const DiscoverySessionCallback& callback,
107 const ErrorCallback& error_callback); 102 const ErrorCallback& error_callback);
108 103
109 // BluetoothAdapter is supposed to manage the lifetime of BluetoothDevices. 104 // BluetoothAdapter is supposed to manage the lifetime of BluetoothDevices.
110 // This method takes ownership of the MockBluetoothDevice. This is only for 105 // This method takes ownership of the MockBluetoothDevice. This is only for
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 144
150 MOCK_METHOD1(RemovePairingDelegateInternal, 145 MOCK_METHOD1(RemovePairingDelegateInternal,
151 void(BluetoothDevice::PairingDelegate* pairing_delegate)); 146 void(BluetoothDevice::PairingDelegate* pairing_delegate));
152 147
153 ScopedVector<MockBluetoothDevice> mock_devices_; 148 ScopedVector<MockBluetoothDevice> mock_devices_;
154 }; 149 };
155 150
156 } // namespace device 151 } // namespace device
157 152
158 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ 153 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluez/bluetooth_bluez_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698