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

Side by Side Diff: device/bluetooth/bluetooth_adapter_unittest.cc

Issue 293063015: Bluetooth: remove Out of Band Pairing APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_adapter_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "base/memory/ref_counted.h" 5 #include "base/memory/ref_counted.h"
6 #include "device/bluetooth/bluetooth_adapter.h" 6 #include "device/bluetooth/bluetooth_adapter.h"
7 #include "device/bluetooth/bluetooth_device.h" 7 #include "device/bluetooth/bluetooth_device.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 using device::BluetoothAdapter; 10 using device::BluetoothAdapter;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 virtual bool IsDiscovering() const OVERRIDE { 68 virtual bool IsDiscovering() const OVERRIDE {
69 return false; 69 return false;
70 } 70 }
71 71
72 virtual void StartDiscoverySession( 72 virtual void StartDiscoverySession(
73 const DiscoverySessionCallback& callback, 73 const DiscoverySessionCallback& callback,
74 const ErrorCallback& error_callback) OVERRIDE { 74 const ErrorCallback& error_callback) OVERRIDE {
75 } 75 }
76 76
77 virtual void ReadLocalOutOfBandPairingData(
78 const BluetoothAdapter::BluetoothOutOfBandPairingDataCallback& callback,
79 const ErrorCallback& error_callback) OVERRIDE {
80 }
81
82 virtual void CreateRfcommService( 77 virtual void CreateRfcommService(
83 const BluetoothUUID& uuid, 78 const BluetoothUUID& uuid,
84 int channel, 79 int channel,
85 bool insecure, 80 bool insecure,
86 const CreateServiceCallback& callback, 81 const CreateServiceCallback& callback,
87 const CreateServiceErrorCallback& error_callback) OVERRIDE { 82 const CreateServiceErrorCallback& error_callback) OVERRIDE {
88 } 83 }
89 84
90 virtual void CreateL2capService( 85 virtual void CreateL2capService(
91 const BluetoothUUID& uuid, 86 const BluetoothUUID& uuid,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 TestPairingDelegate delegate; 184 TestPairingDelegate delegate;
190 185
191 adapter->AddPairingDelegate(&delegate, 186 adapter->AddPairingDelegate(&delegate,
192 BluetoothAdapter::PAIRING_DELEGATE_PRIORITY_LOW); 187 BluetoothAdapter::PAIRING_DELEGATE_PRIORITY_LOW);
193 adapter->RemovePairingDelegate(&delegate); 188 adapter->RemovePairingDelegate(&delegate);
194 189
195 EXPECT_TRUE(adapter->DefaultPairingDelegate() == NULL); 190 EXPECT_TRUE(adapter->DefaultPairingDelegate() == NULL);
196 } 191 }
197 192
198 } // namespace device 193 } // namespace device
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_adapter_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698