Lines Matching refs:devices

374   // Run a discovery phase so we have devices that can be paired with.
377 // completes with all devices.
415 BluetoothAdapter::DeviceList devices = adapter_->GetDevices();
416 EXPECT_EQ(1U, devices.size());
418 devices[0]->GetAddress());
721 // First two devices to appear.
728 // Next we should get another two devices...
1445 BluetoothAdapter::DeviceList devices = adapter_->GetDevices();
1446 ASSERT_EQ(1U, devices.size());
1448 devices[0]->GetAddress());
1452 devices[0]->GetName());
1453 EXPECT_EQ(BluetoothDevice::DEVICE_COMPUTER, devices[0]->GetDeviceType());
1454 EXPECT_TRUE(devices[0]->IsPaired());
1455 EXPECT_FALSE(devices[0]->IsConnected());
1456 EXPECT_FALSE(devices[0]->IsConnecting());
1458 // Non HID devices are always connectable.
1459 EXPECT_TRUE(devices[0]->IsConnectable());
1461 BluetoothDevice::UUIDList uuids = devices[0]->GetUUIDs();
1466 EXPECT_EQ(BluetoothDevice::VENDOR_ID_USB, devices[0]->GetVendorIDSource());
1467 EXPECT_EQ(0x05ac, devices[0]->GetVendorID());
1468 EXPECT_EQ(0x030d, devices[0]->GetProductID());
1469 EXPECT_EQ(0x0306, devices[0]->GetDeviceID());
1477 BluetoothAdapter::DeviceList devices = adapter_->GetDevices();
1478 ASSERT_EQ(1U, devices.size());
1480 devices[0]->GetAddress());
1481 ASSERT_EQ(BluetoothDevice::DEVICE_COMPUTER, devices[0]->GetDeviceType());
1494 EXPECT_EQ(devices[0], observer.last_device_);
1496 EXPECT_EQ(BluetoothDevice::DEVICE_MOUSE, devices[0]->GetDeviceType());
1503 BluetoothAdapter::DeviceList devices = adapter_->GetDevices();
1504 ASSERT_EQ(1U, devices.size());
1506 devices[0]->GetAddress());
1508 devices[0]->GetName());
1522 EXPECT_EQ(devices[0], observer.last_device_);
1524 EXPECT_EQ(base::UTF8ToUTF16(new_name), devices[0]->GetName());
1531 BluetoothAdapter::DeviceList devices = adapter_->GetDevices();
1532 ASSERT_EQ(1U, devices.size());
1534 devices[0]->GetAddress());
1536 BluetoothDevice::UUIDList uuids = devices[0]->GetUUIDs();
1559 EXPECT_EQ(devices[0], observer.last_device_);
1562 uuids = devices[0]->GetUUIDs();
1574 BluetoothAdapter::DeviceList devices = adapter_->GetDevices();
1575 ASSERT_EQ(1U, devices.size());
1577 devices[0]->GetAddress());
1579 std::string address = devices[0]->GetAddress();
1585 devices[0]->Forget(
1594 devices = adapter_->GetDevices();
1595 ASSERT_EQ(0U, devices.size());
2099 // Non HID devices are always connectable.
2153 // Non HID devices are always connectable.
2207 // Non HID devices are always connectable.
2257 // Non HID devices are always connectable.