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

Unified Diff: chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h

Issue 10899037: Refactoring bluetooth API code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing styles and tess. Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h
diff --git a/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h b/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h
index 55194cf9043483b545f3108186243024183503e1..2dd88c1349cea17779e88b213f5cb34160901c68 100644
--- a/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h
+++ b/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_adapter.h
@@ -24,30 +24,42 @@ class MockBluetoothAdapter : public BluetoothAdapter {
MOCK_METHOD2(AdapterPresentChanged, void(BluetoothAdapter*, bool));
MOCK_METHOD2(AdapterPoweredChanged, void(BluetoothAdapter*, bool));
- MOCK_METHOD2(AdapterDiscoveringChanged, void(BluetoothAdapter *, bool));
- MOCK_METHOD2(DeviceAdded, void(BluetoothAdapter *, BluetoothDevice *));
- MOCK_METHOD2(DeviceChanged, void(BluetoothAdapter *, BluetoothDevice *));
- MOCK_METHOD2(DeviceRemoved, void(BluetoothAdapter *, BluetoothDevice *));
+ MOCK_METHOD2(AdapterDiscoveringChanged,
bryeung 2012/09/13 19:52:57 why did this get line-broken?
youngki 2012/09/17 21:53:02 Done.
+ void(BluetoothAdapter*, bool));
+ MOCK_METHOD2(DeviceAdded,
+ void(BluetoothAdapter*, BluetoothDevice*));
+ MOCK_METHOD2(DeviceChanged,
+ void(BluetoothAdapter*, BluetoothDevice*));
+ MOCK_METHOD2(DeviceRemoved,
+ void(BluetoothAdapter*, BluetoothDevice*));
};
MockBluetoothAdapter(const std::string& address, const std::string& name);
+ MOCK_METHOD1(AddObserver, void(BluetoothAdapter::Observer*));
+ MOCK_METHOD1(RemoveObserver, void(BluetoothAdapter::Observer*));
+ MOCK_CONST_METHOD0(address, const std::string&());
+ MOCK_CONST_METHOD0(name, const std::string&());
MOCK_CONST_METHOD0(IsPresent, bool());
MOCK_CONST_METHOD0(IsPowered, bool());
+ MOCK_METHOD3(SetPowered,
+ void(bool discovering,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback));
MOCK_CONST_METHOD0(IsDiscovering, bool());
MOCK_METHOD3(SetDiscovering,
void(bool discovering,
const base::Closure& callback,
- const BluetoothAdapter::ErrorCallback& error_callback));
- MOCK_CONST_METHOD0(GetDevices, ConstDeviceList());
+ const ErrorCallback& error_callback));
+ MOCK_METHOD0(GetDevices, BluetoothAdapter::DeviceList());
+ MOCK_CONST_METHOD0(GetDevices, BluetoothAdapter::ConstDeviceList());
MOCK_METHOD1(GetDevice, BluetoothDevice*(const std::string& address));
MOCK_CONST_METHOD1(GetDevice,
const BluetoothDevice*(const std::string& address));
MOCK_METHOD2(
ReadLocalOutOfBandPairingData,
- void(const BluetoothAdapter::BluetoothOutOfBandPairingDataCallback&
- callback,
- const BluetoothAdapter::ErrorCallback& error_callback));
+ void(const BluetoothOutOfBandPairingDataCallback& callback,
+ const ErrorCallback& error_callback));
protected:
virtual ~MockBluetoothAdapter();
};

Powered by Google App Engine
This is Rietveld 408576698