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

Unified Diff: chrome/browser/extensions/api/bluetooth/bluetooth_private_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: 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_private_apitest.cc
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_private_apitest.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_private_apitest.cc
index 4de56686d534e58b14746f6aae1dc1e40b31ff95..4ce8b3061568822cb96da32eb91f9f908f1d62b8 100644
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_private_apitest.cc
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_private_apitest.cc
@@ -176,3 +176,9 @@ IN_PROC_BROWSER_TEST_F(BluetoothPrivateApiTest, PasskeyPairing) {
ASSERT_TRUE(RunComponentExtensionTest("bluetooth_private/passkey_pairing"))
<< message_;
}
+
+IN_PROC_BROWSER_TEST_F(BluetoothPrivateApiTest, GetRSSIForDevice) {
+ EXPECT_CALL(*mock_device_, GetRSSI()).WillOnce(Return(-42));
+ ASSERT_TRUE(RunComponentExtensionTest("bluetooth_private/get_rssi"))
+ << message_;
+}

Powered by Google App Engine
This is Rietveld 408576698