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

Unified Diff: device/bluetooth/test/mock_bluetooth_device.h

Issue 13416005: Bluetooth: clean up BluetoothDevice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More win visible fixes Created 7 years, 9 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
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_adapter.h ('k') | device/bluetooth/test/mock_bluetooth_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/mock_bluetooth_device.h
diff --git a/device/bluetooth/test/mock_bluetooth_device.h b/device/bluetooth/test/mock_bluetooth_device.h
index 56ca4c2e11b7c4eb5fe6bbdf5859eac6fe2094ed..663bfd850aa919a7ce9f84a7f665fa657f41841c 100644
--- a/device/bluetooth/test/mock_bluetooth_device.h
+++ b/device/bluetooth/test/mock_bluetooth_device.h
@@ -19,20 +19,23 @@ class MockBluetoothAdapter;
class MockBluetoothDevice : public BluetoothDevice {
public:
MockBluetoothDevice(MockBluetoothAdapter* adapter,
+ uint32 bluetooth_class,
const std::string& name,
const std::string& address,
bool paired,
- bool bonded,
bool connected);
virtual ~MockBluetoothDevice();
- MOCK_CONST_METHOD0(address, const std::string&());
+ MOCK_CONST_METHOD0(GetBluetoothClass, uint32());
+ MOCK_CONST_METHOD0(GetDeviceName, std::string());
+ MOCK_CONST_METHOD0(GetAddress, std::string());
MOCK_CONST_METHOD0(GetName, string16());
MOCK_CONST_METHOD0(GetDeviceType, BluetoothDevice::DeviceType());
MOCK_CONST_METHOD0(IsPaired, bool());
- MOCK_CONST_METHOD0(IsBonded, bool());
MOCK_CONST_METHOD0(IsConnected, bool());
- MOCK_CONST_METHOD0(GetServices, const ServiceList&());
+ MOCK_CONST_METHOD0(IsConnectable, bool());
+ MOCK_CONST_METHOD0(IsConnecting, bool());
+ MOCK_CONST_METHOD0(GetServices, ServiceList());
MOCK_METHOD2(GetServiceRecords,
void(const BluetoothDevice::ServiceRecordsCallback&,
const BluetoothDevice::ErrorCallback&));
@@ -70,7 +73,8 @@ class MockBluetoothDevice : public BluetoothDevice {
const BluetoothDevice::ErrorCallback& error_callback));
private:
- string16 name_;
+ uint32 bluetooth_class_;
+ std::string name_;
std::string address_;
BluetoothDevice::ServiceList service_list_;
};
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_adapter.h ('k') | device/bluetooth/test/mock_bluetooth_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698