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_; |
}; |