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

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

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
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 <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const base::Closure& callback, 53 const base::Closure& callback,
54 const ErrorCallback& error_callback)); 54 const ErrorCallback& error_callback));
55 MOCK_CONST_METHOD0(IsDiscovering, bool()); 55 MOCK_CONST_METHOD0(IsDiscovering, bool());
56 MOCK_METHOD2(StartDiscoverySession, 56 MOCK_METHOD2(StartDiscoverySession,
57 void(const DiscoverySessionCallback& callback, 57 void(const DiscoverySessionCallback& callback,
58 const ErrorCallback& error_callback)); 58 const ErrorCallback& error_callback));
59 MOCK_CONST_METHOD0(GetDevices, BluetoothAdapter::ConstDeviceList()); 59 MOCK_CONST_METHOD0(GetDevices, BluetoothAdapter::ConstDeviceList());
60 MOCK_METHOD1(GetDevice, BluetoothDevice*(const std::string& address)); 60 MOCK_METHOD1(GetDevice, BluetoothDevice*(const std::string& address));
61 MOCK_CONST_METHOD1(GetDevice, 61 MOCK_CONST_METHOD1(GetDevice,
62 const BluetoothDevice*(const std::string& address)); 62 const BluetoothDevice*(const std::string& address));
63 MOCK_METHOD2(
64 ReadLocalOutOfBandPairingData,
65 void(const BluetoothOutOfBandPairingDataCallback& callback,
66 const ErrorCallback& error_callback));
67 MOCK_METHOD2(AddPairingDelegate, 63 MOCK_METHOD2(AddPairingDelegate,
68 void(BluetoothDevice::PairingDelegate* pairing_delegate, 64 void(BluetoothDevice::PairingDelegate* pairing_delegate,
69 enum PairingDelegatePriority priority)); 65 enum PairingDelegatePriority priority));
70 MOCK_METHOD1(RemovePairingDelegate, 66 MOCK_METHOD1(RemovePairingDelegate,
71 void(BluetoothDevice::PairingDelegate* pairing_delegate)); 67 void(BluetoothDevice::PairingDelegate* pairing_delegate));
72 MOCK_METHOD0(DefaultPairingDelegate, BluetoothDevice::PairingDelegate*()); 68 MOCK_METHOD0(DefaultPairingDelegate, BluetoothDevice::PairingDelegate*());
73 MOCK_METHOD5(CreateRfcommService, 69 MOCK_METHOD5(CreateRfcommService,
74 void(const BluetoothUUID& uuid, 70 void(const BluetoothUUID& uuid,
75 int channel, 71 int channel,
76 bool insecure, 72 bool insecure,
(...skipping 12 matching lines...) Expand all
89 const ErrorCallback& error_callback); 85 const ErrorCallback& error_callback);
90 virtual ~MockBluetoothAdapter(); 86 virtual ~MockBluetoothAdapter();
91 87
92 MOCK_METHOD1(RemovePairingDelegateInternal, 88 MOCK_METHOD1(RemovePairingDelegateInternal,
93 void(BluetoothDevice::PairingDelegate* pairing_delegate)); 89 void(BluetoothDevice::PairingDelegate* pairing_delegate));
94 }; 90 };
95 91
96 } // namespace device 92 } // namespace device
97 93
98 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ 94 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_out_of_band_pairing_data.h ('k') | device/bluetooth/test/mock_bluetooth_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698