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

Unified Diff: device/bluetooth/bluetooth_adapter_mac_unittest.mm

Issue 2606823002: Remove base::ScopedPtrHashMap from device/. (Closed)
Patch Set: one last fix 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..b330b3faf95e64f7aad86cc42dac1feeefd3f4f2 100644
--- a/device/bluetooth/bluetooth_adapter_mac_unittest.mm
+++ b/device/bluetooth/bluetooth_adapter_mac_unittest.mm
@@ -7,6 +7,7 @@
#include <memory>
#include "base/bind.h"
+#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted.h"
#include "base/test/test_simple_task_runner.h"
#include "build/build_config.h"
@@ -83,11 +84,6 @@ class BluetoothAdapterMacTest : public testing::Test {
return BluetoothLowEnergyDeviceMac::GetPeripheralHashAddress(peripheral);
}
- void AddLowEnergyDevice(BluetoothLowEnergyDeviceMac* device) {
- adapter_mac_->devices_.set(device->GetAddress(),
- std::unique_ptr<BluetoothDevice>(device));
- }
-
int NumDevices() { return adapter_mac_->devices_.size(); }
bool DevicePresent(CBPeripheral* peripheral) {

Powered by Google App Engine
This is Rietveld 408576698