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

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

Issue 278663002: Implement chrome.bluetoothSocket.listenUsing*() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix BluetoothAdapterMac include typo 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 MOCK_METHOD2( 63 MOCK_METHOD2(
64 ReadLocalOutOfBandPairingData, 64 ReadLocalOutOfBandPairingData,
65 void(const BluetoothOutOfBandPairingDataCallback& callback, 65 void(const BluetoothOutOfBandPairingDataCallback& callback,
66 const ErrorCallback& error_callback)); 66 const ErrorCallback& error_callback));
67 MOCK_METHOD2(AddPairingDelegate, 67 MOCK_METHOD2(AddPairingDelegate,
68 void(BluetoothDevice::PairingDelegate* pairing_delegate, 68 void(BluetoothDevice::PairingDelegate* pairing_delegate,
69 enum PairingDelegatePriority priority)); 69 enum PairingDelegatePriority priority));
70 MOCK_METHOD1(RemovePairingDelegate, 70 MOCK_METHOD1(RemovePairingDelegate,
71 void(BluetoothDevice::PairingDelegate* pairing_delegate)); 71 void(BluetoothDevice::PairingDelegate* pairing_delegate));
72 MOCK_METHOD0(DefaultPairingDelegate, BluetoothDevice::PairingDelegate*()); 72 MOCK_METHOD0(DefaultPairingDelegate, BluetoothDevice::PairingDelegate*());
73 MOCK_METHOD5(CreateRfcommService,
74 void(const BluetoothUUID& uuid,
75 int channel,
76 bool insecure,
77 const CreateServiceCallback& callback,
78 const CreateServiceErrorCallback& error_callback));
79 MOCK_METHOD4(CreateL2capService,
80 void(const BluetoothUUID& uuid,
81 int psm,
82 const CreateServiceCallback& callback,
83 const CreateServiceErrorCallback& error_callback));
73 84
74 protected: 85 protected:
75 virtual void AddDiscoverySession(const base::Closure& callback, 86 virtual void AddDiscoverySession(const base::Closure& callback,
76 const ErrorCallback& error_callback); 87 const ErrorCallback& error_callback);
77 virtual void RemoveDiscoverySession(const base::Closure& callback, 88 virtual void RemoveDiscoverySession(const base::Closure& callback,
78 const ErrorCallback& error_callback); 89 const ErrorCallback& error_callback);
79 virtual ~MockBluetoothAdapter(); 90 virtual ~MockBluetoothAdapter();
80 91
81 MOCK_METHOD1(RemovePairingDelegateInternal, 92 MOCK_METHOD1(RemovePairingDelegateInternal,
82 void(BluetoothDevice::PairingDelegate* pairing_delegate)); 93 void(BluetoothDevice::PairingDelegate* pairing_delegate));
83 }; 94 };
84 95
85 } // namespace device 96 } // namespace device
86 97
87 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ 98 #endif // DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698