summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.cc')
-rw-r--r--chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.cc b/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.cc
index 5bc0cf7..1387fd2 100644
--- a/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.cc
+++ b/chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.cc
@@ -14,8 +14,7 @@ MockBluetoothDevice::MockBluetoothDevice(MockBluetoothAdapter* adapter,
bool paired,
bool bonded,
bool connected)
- : BluetoothDevice(adapter),
- name_(UTF8ToUTF16(name)),
+ : name_(UTF8ToUTF16(name)),
address_(address) {
ON_CALL(*this, GetName())
.WillByDefault(testing::Return(name_));
@@ -27,6 +26,14 @@ MockBluetoothDevice::MockBluetoothDevice(MockBluetoothAdapter* adapter,
.WillByDefault(testing::Return(bonded));
ON_CALL(*this, IsConnected())
.WillByDefault(testing::Return(connected));
+ ON_CALL(*this, ExpectingPinCode())
+ .WillByDefault(testing::Return(false));
+ ON_CALL(*this, ExpectingPasskey())
+ .WillByDefault(testing::Return(false));
+ ON_CALL(*this, ExpectingConfirmation())
+ .WillByDefault(testing::Return(false));
+ ON_CALL(*this, GetServices())
+ .WillByDefault(testing::ReturnRef(service_list_));
}
MockBluetoothDevice::~MockBluetoothDevice() {}