| Index: device/bluetooth/bluetooth_adapter_unittest.cc
|
| diff --git a/device/bluetooth/bluetooth_adapter_unittest.cc b/device/bluetooth/bluetooth_adapter_unittest.cc
|
| index 0d91483fbf44a0f275987c8bd92976be755f3917..ee5346bf60a9b231e7b3c5fe9c37c078ad0df2d7 100644
|
| --- a/device/bluetooth/bluetooth_adapter_unittest.cc
|
| +++ b/device/bluetooth/bluetooth_adapter_unittest.cc
|
| @@ -479,6 +479,22 @@ TEST_F(BluetoothTest, ConstructFakeAdapter) {
|
| }
|
| #endif // defined(OS_ANDROID) || defined(OS_MACOSX) || defined(OS_WIN)
|
|
|
| +// TODO(jracle): Enable this test on other platforms.
|
| +#if defined(OS_MACOSX)
|
| +TEST_F(BluetoothTest, ConstructFakeAdapterWithConnectedLowEnergyDevice) {
|
| + if (!PlatformSupportsLowEnergy()) {
|
| + LOG(WARNING) << "Low Energy Bluetooth unavailable, skipping unit test.";
|
| + return;
|
| + }
|
| +
|
| + InitWithFakeAdapterWithConnectedLowEnergyDevice();
|
| +
|
| + EXPECT_EQ(1u, adapter_->GetDevices().size());
|
| + EXPECT_EQ(adapter_->GetDevices()[0]->GetName(), kTestDeviceName);
|
| + EXPECT_FALSE(adapter_->GetDevices()[0]->IsGattConnected());
|
| +}
|
| +#endif // defined(OS_MACOSX)
|
| +
|
| // TODO(scheib): Enable BluetoothTest fixture tests on all platforms.
|
| #if defined(OS_ANDROID)
|
| // Starts and Stops a discovery session.
|
|
|