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

Unified Diff: device/bluetooth/bluetooth_device_unittest.cc

Issue 1395783005: bluetooth: android: BluetoothRemoteGattServiceAndroid::GetUUID (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: device/bluetooth/bluetooth_device_unittest.cc
diff --git a/device/bluetooth/bluetooth_device_unittest.cc b/device/bluetooth/bluetooth_device_unittest.cc
index a89fc887a946cfc678888759460ed283a3c662c4..c6066ca9f7f3556cb0bfbb9bf7f80e44f4b34794 100644
--- a/device/bluetooth/bluetooth_device_unittest.cc
+++ b/device/bluetooth/bluetooth_device_unittest.cc
@@ -436,10 +436,13 @@ TEST_F(BluetoothTest, SimulateGattServicesDiscovered) {
SimulateGattConnection(device);
EXPECT_EQ(1, gatt_discovery_attempts_);
- // TODO(scheib): Add more control over how many services are created and
- // their properties. http://crbug.com/541400
Jeffrey Yasskin 2015/10/15 23:48:30 If you're fixing this, put it in the patch's BUG=
scheib 2015/10/16 00:23:36 Done.
- SimulateGattServicesDiscovered(device);
- EXPECT_EQ(2u, device->GetGattServices().size());
+ std::vector<std::string> services;
+ services.push_back("00000000-0000-1000-8000-00805f9b34fb");
+ // 2 duplicate UUIDs creating 2 instances.
+ services.push_back("00000001-0000-1000-8000-00805f9b34fb");
+ services.push_back("00000001-0000-1000-8000-00805f9b34fb");
+ SimulateGattServicesDiscovered(device, services);
+ EXPECT_EQ(3u, device->GetGattServices().size());
}
#endif // defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698