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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( | 77 virtual void ReadLocalOutOfBandPairingData( |
78 const BluetoothAdapter::BluetoothOutOfBandPairingDataCallback& callback, | 78 const BluetoothAdapter::BluetoothOutOfBandPairingDataCallback& callback, |
79 const ErrorCallback& error_callback) OVERRIDE { | 79 const ErrorCallback& error_callback) OVERRIDE { |
80 } | 80 } |
81 | 81 |
| 82 virtual void CreateRfcommService( |
| 83 const BluetoothUUID& uuid, |
| 84 int channel, |
| 85 bool insecure, |
| 86 const CreateServiceCallback& callback, |
| 87 const CreateServiceErrorCallback& error_callback) OVERRIDE { |
| 88 } |
| 89 |
| 90 virtual void CreateL2capService( |
| 91 const BluetoothUUID& uuid, |
| 92 int psm, |
| 93 const CreateServiceCallback& callback, |
| 94 const CreateServiceErrorCallback& error_callback) OVERRIDE { |
| 95 } |
| 96 |
82 protected: | 97 protected: |
83 virtual ~TestBluetoothAdapter() {} | 98 virtual ~TestBluetoothAdapter() {} |
84 | 99 |
85 virtual void AddDiscoverySession( | 100 virtual void AddDiscoverySession( |
86 const base::Closure& callback, | 101 const base::Closure& callback, |
87 const ErrorCallback& error_callback) OVERRIDE { | 102 const ErrorCallback& error_callback) OVERRIDE { |
88 } | 103 } |
89 | 104 |
90 virtual void RemoveDiscoverySession( | 105 virtual void RemoveDiscoverySession( |
91 const base::Closure& callback, | 106 const base::Closure& callback, |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 TestPairingDelegate delegate; | 189 TestPairingDelegate delegate; |
175 | 190 |
176 adapter->AddPairingDelegate(&delegate, | 191 adapter->AddPairingDelegate(&delegate, |
177 BluetoothAdapter::PAIRING_DELEGATE_PRIORITY_LOW); | 192 BluetoothAdapter::PAIRING_DELEGATE_PRIORITY_LOW); |
178 adapter->RemovePairingDelegate(&delegate); | 193 adapter->RemovePairingDelegate(&delegate); |
179 | 194 |
180 EXPECT_TRUE(adapter->DefaultPairingDelegate() == NULL); | 195 EXPECT_TRUE(adapter->DefaultPairingDelegate() == NULL); |
181 } | 196 } |
182 | 197 |
183 } // namespace device | 198 } // namespace device |
OLD | NEW |