function testSetDiscoveryFilter() {
  // Pre-set discovery filter
  chrome.bluetoothPrivate.setDiscoveryFilter(
    {
      uuids: ["cafe", "0000bebe-0000-1000-8000-00805f9b34fb"],
      transport: "le",
      pathloss: 50
    },
    function() {
      chrome.test.assertNoLastError();
      // Start discovery with pre-set filter.
      chrome.bluetooth.startDiscovery(function(){
        chrome.test.assertNoLastError();

        // Change filter (clear) during scan.
        chrome.bluetoothPrivate.setDiscoveryFilter({}, function() {
          chrome.test.assertNoLastError();
          // Success.
          chrome.test.succeed();
        });
      });
  });
}
// found in the LICENSE file.
found in the LICENSE file.
found in the LICENSE file .
function testSetDiscoveryFilter() {
  chrome.bluetoothPrivate.setDiscoveryFilter(
    {
      uuids: ["cafe", "0000bebe-0000-1000-8000-00805f9b34fb"],
      transport: "le",
      pathloss: 50
    },
    function() {
      chrome.test.assertNoLastError();
      chrome.bluetooth.startDiscovery(function(){
        chrome.test.assertNoLastError();
        chrome.bluetoothPrivate.setDiscoveryFilter({}, function() {
          chrome.test.assertNoLastError();
          chrome.test.succeed();
        });
      });
  });
}
function testSetDiscoveryFilter ( ) { chrome . bluetoothPrivate . setDiscoveryFilter ( { uuids : [ "cafe" , "0000bebe-0000-1000-8000-00805f9b34fb" ] , transport : "le" , pathloss : 50 } , function ( ) { chrome . test . assertNoLastError ( ) ; chrome . bluetooth . startDiscovery ( function ( ) { chrome . test . assertNoLastError ( ) ; chrome . bluetoothPrivate . setDiscoveryFilter ( { } , function ( ) { chrome . test . assertNoLastError ( ) ; chrome . test . succeed ( ) ; } ) ; } ) ; } ) ; }
found in the LICENSE file.
found in the LICENSE file .
// Pre-set discovery filter // Start discovery with pre-set filter. // Change filter (clear) during scan. // Success.