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

Side by Side Diff: chrome/test/data/extensions/api_test/bluetooth_private/get_rssi/test.js

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 function testGetDeviceRSSI() {
6 chrome.bluetoothPrivate.getDeviceRSSI('11:12:13:14:15:16', function(rssi) {
7 chrome.test.assertNoLastError();
8 chrome.test.assertEq(-42, rssi);
9 chrome.test.succeed();
10 });
11 }
12
13 function testGetUnknownDeviceRSSI() {
14 chrome.bluetoothPrivate.getDeviceRSSI(
15 '11:11:11:11:11:11',
16 chrome.test.callbackFail(
17 'Given address is not a valid Bluetooth device.'));
18 }
19
20 chrome.test.runTests([testGetDeviceRSSI, testGetUnknownDeviceRSSI]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698