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

Unified Diff: chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc

Issue 246603008: Expose device RSSI and Tx power via the chrome.bluetooth API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implemented as a property of the Device object Created 6 years, 8 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/extensions/api/bluetooth/bluetooth_apitest.cc
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc
index 4c1e85ff45dfdd4dda961faf8525db58a10622c9..a567584afae503db67825db0abcc71862e0634df 100644
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_apitest.cc
@@ -655,6 +655,11 @@ IN_PROC_BROWSER_TEST_F(BluetoothApiTest, DeviceInfo) {
.WillRepeatedly(testing::Return(0x240A));
EXPECT_CALL(*device1_.get(), GetDeviceID())
.WillRepeatedly(testing::Return(0x0400));
+ EXPECT_CALL(*device1_, GetRSSI()).WillRepeatedly(testing::Return(-42));
+ EXPECT_CALL(*device1_, GetCurrentHostTransmitPower())
+ .WillRepeatedly(testing::Return(-16));
+ EXPECT_CALL(*device1_, GetMaximumHostTransmitPower())
+ .WillRepeatedly(testing::Return(10));
BluetoothDevice::UUIDList uuids;
uuids.push_back(BluetoothUUID("1105"));

Powered by Google App Engine
This is Rietveld 408576698