Chromium Code Reviews| Index: device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc |
| diff --git a/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc b/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc |
| index 0102f138f3e3735eeb2bf8577e1fb9602fc7eb1f..6a40a779b35bd62175859ca0007f8cc48b4f107b 100644 |
| --- a/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc |
| +++ b/device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc |
| @@ -559,6 +559,8 @@ TEST_F(BluetoothRemoteGattCharacteristicTest, WriteRemoteCharacteristic) { |
| ASSERT_NO_FATAL_FAILURE(FakeCharacteristicBoilerplate( |
| BluetoothRemoteGattCharacteristic::PROPERTY_WRITE)); |
| + TestBluetoothAdapterObserver observer(adapter_); |
| + |
| uint8_t values[] = {0, 1, 2, 3, 4, 0xf, 0xf0, 0xff}; |
| std::vector<uint8_t> test_vector(values, values + arraysize(values)); |
| characteristic1_->WriteRemoteCharacteristic( |
| @@ -568,6 +570,7 @@ TEST_F(BluetoothRemoteGattCharacteristicTest, WriteRemoteCharacteristic) { |
| SimulateGattCharacteristicWrite(characteristic1_); |
| EXPECT_EQ(1, gatt_write_characteristic_attempts_); |
| + EXPECT_EQ(0, observer.gatt_characteristic_value_changed_count()); |
|
ortuno
2016/10/05 22:13:50
You can add a #if !defined(OS_WIN) and point to th
jlebel
2016/10/05 22:35:36
Done.
|
| EXPECT_EQ(test_vector, last_write_value_); |
| } |
| #endif // defined(OS_ANDROID) || defined(OS_MACOSX) || defined(OS_WIN) |