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

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

Issue 1941923002: bluetooth: Return int8_t and use -128 for unknown tx power. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Fix extensions tests Created 4 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/test/mock_bluetooth_device.cc
diff --git a/device/bluetooth/test/mock_bluetooth_device.cc b/device/bluetooth/test/mock_bluetooth_device.cc
index 8bbf442ea56f89cbf84db71f2a5a398e6ad1c573..32f672eae9e471ea7bdbb990484be5275a605399 100644
--- a/device/bluetooth/test/mock_bluetooth_device.cc
+++ b/device/bluetooth/test/mock_bluetooth_device.cc
@@ -51,6 +51,10 @@ MockBluetoothDevice::MockBluetoothDevice(MockBluetoothAdapter* adapter,
.WillByDefault(testing::Return(false));
ON_CALL(*this, GetName())
.WillByDefault(testing::Return(base::UTF8ToUTF16(name_)));
+ ON_CALL(*this, GetInquiryRSSI())
+ .WillByDefault(testing::Return(base::Optional<int8_t>(0)));
+ ON_CALL(*this, GetInquiryTxPower())
+ .WillByDefault(testing::Return(base::Optional<int8_t>(0)));
ON_CALL(*this, ExpectingPinCode())
.WillByDefault(testing::Return(false));
ON_CALL(*this, ExpectingPasskey())

Powered by Google App Engine
This is Rietveld 408576698