OLD | NEW |
(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]); |
OLD | NEW |