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

Unified Diff: trunk/src/device/bluetooth/bluetooth_low_energy_win_unittest.cc

Issue 383693002: Revert 282212 "Retrieve "connected" property from BLE devices." (Closed) Base URL: svn://svn.chromium.org/chrome/
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
Index: trunk/src/device/bluetooth/bluetooth_low_energy_win_unittest.cc
===================================================================
--- trunk/src/device/bluetooth/bluetooth_low_energy_win_unittest.cc (revision 282294)
+++ trunk/src/device/bluetooth/bluetooth_low_energy_win_unittest.cc (working copy)
@@ -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 | « trunk/src/device/bluetooth/bluetooth_low_energy_win.cc ('k') | trunk/src/device/bluetooth/bluetooth_task_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698