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

Unified Diff: device/bluetooth/bluetooth_adapter_mac_unittest.mm

Issue 2567903004: Replace ScopedVector/ScopedPtrHashMap with std::vector and std::unordered_map (Closed)
Patch Set: Replace ScopedVector/ScopedPtrHashMap with std::vector and std::unordered_map Created 4 years 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_adapter_mac_unittest.mm
diff --git a/device/bluetooth/bluetooth_adapter_mac_unittest.mm b/device/bluetooth/bluetooth_adapter_mac_unittest.mm
index a17dabd717186f0729263fad8339dc79190c405e..26b9425f7de4e3022d95a9c94eff8cac4de29d3a 100644
--- a/device/bluetooth/bluetooth_adapter_mac_unittest.mm
+++ b/device/bluetooth/bluetooth_adapter_mac_unittest.mm
@@ -84,8 +84,8 @@ class BluetoothAdapterMacTest : public testing::Test {
}
void AddLowEnergyDevice(BluetoothLowEnergyDeviceMac* device) {
- adapter_mac_->devices_.set(device->GetAddress(),
- std::unique_ptr<BluetoothDevice>(device));
+ adapter_mac_->devices_.insert(
+ std::make_pair(device->GetAddress(), std::move(device)));
Reilly Grant (use Gerrit) 2016/12/21 22:25:13 When the intent is to replace the device (as set d
dougt 2016/12/22 01:18:02 This works in places where we don't have to immedi
}
int NumDevices() { return adapter_mac_->devices_.size(); }

Powered by Google App Engine
This is Rietveld 408576698