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 #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 Loading... |
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 Loading... |
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 |
OLD | NEW |