Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(839)

Unified Diff: device/bluetooth/bluetooth_low_energy_win_unittest.cc

Issue 380173002: Revert of Retrieve "connected" property from BLE devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth_unittests
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_win.cc ('k') | device/bluetooth/bluetooth_task_manager_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_low_energy_win_unittest.cc
diff --git a/device/bluetooth/bluetooth_low_energy_win_unittest.cc b/device/bluetooth/bluetooth_low_energy_win_unittest.cc
index 3e9116e3cbe91b279ad70ade3600b55827a684e5..94ff8cb88e74482489df3e505e61215eb072da1b 100644
--- a/device/bluetooth/bluetooth_low_energy_win_unittest.cc
+++ b/device/bluetooth/bluetooth_low_energy_win_unittest.cc
@@ -71,15 +71,4 @@
EXPECT_EQ(test_value, value->AsDWORD());
}
-TEST_F(BluetoothLowEnergyWinTest, DevicePropertyValueAsUint32) {
- uint32_t test_value = 5u;
- size_t buffer_size = sizeof(uint32_t);
- scoped_ptr<uint8_t[]> buffer(new uint8_t[buffer_size]);
- memcpy(buffer.get(), &test_value, buffer_size);
- scoped_ptr<device::win::DevicePropertyValue> value(
- new device::win::DevicePropertyValue(
- DEVPROP_TYPE_UINT32, buffer.Pass(), buffer_size));
- EXPECT_EQ(test_value, value->AsUint32());
-}
-
} // namespace device
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_win.cc ('k') | device/bluetooth/bluetooth_task_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698