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

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

Issue 1920353002: Implement create attribute API functions for BTLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@api_changes
Patch Set: owners Created 4 years, 7 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/test/bluetooth_test.h ('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
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const CreateServiceErrorCallback& error_callback)); 91 const CreateServiceErrorCallback& error_callback));
92 MOCK_METHOD4(CreateL2capService, 92 MOCK_METHOD4(CreateL2capService,
93 void(const BluetoothUUID& uuid, 93 void(const BluetoothUUID& uuid,
94 const ServiceOptions& options, 94 const ServiceOptions& options,
95 const CreateServiceCallback& callback, 95 const CreateServiceCallback& callback,
96 const CreateServiceErrorCallback& error_callback)); 96 const CreateServiceErrorCallback& error_callback));
97 MOCK_METHOD3(RegisterAudioSink, 97 MOCK_METHOD3(RegisterAudioSink,
98 void(const BluetoothAudioSink::Options& options, 98 void(const BluetoothAudioSink::Options& options,
99 const AcquiredCallback& callback, 99 const AcquiredCallback& callback,
100 const BluetoothAudioSink::ErrorCallback& error_callback)); 100 const BluetoothAudioSink::ErrorCallback& error_callback));
101 MOCK_CONST_METHOD1(GetGattService,
102 BluetoothLocalGattService*(const std::string& identifier));
101 103
102 void StartDiscoverySessionWithFilter( 104 void StartDiscoverySessionWithFilter(
103 std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter, 105 std::unique_ptr<BluetoothDiscoveryFilter> discovery_filter,
104 const DiscoverySessionCallback& callback, 106 const DiscoverySessionCallback& callback,
105 const ErrorCallback& error_callback); 107 const ErrorCallback& error_callback);
106 108
107 // BluetoothAdapter is supposed to manage the lifetime of BluetoothDevices. 109 // BluetoothAdapter is supposed to manage the lifetime of BluetoothDevices.
108 // This method takes ownership of the MockBluetoothDevice. This is only for 110 // This method takes ownership of the MockBluetoothDevice. This is only for
109 // convenience as far testing is concerned and it's possible to write test 111 // convenience as far testing is concerned and it's possible to write test
110 // cases without using these functions. 112 // cases without using these functions.
(...skipping 29 matching lines...) Expand all
140 142
141 MOCK_METHOD1(RemovePairingDelegateInternal, 143 MOCK_METHOD1(RemovePairingDelegateInternal,
142 void(BluetoothDevice::PairingDelegate* pairing_delegate)); 144 void(BluetoothDevice::PairingDelegate* pairing_delegate));
143 145
144 ScopedVector<MockBluetoothDevice> mock_devices_; 146 ScopedVector<MockBluetoothDevice> mock_devices_;
145 }; 147 };
146 148
147 } // namespace device 149 } // namespace device
148 150
149 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ 151 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_
OLDNEW
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698