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

Unified Diff: device/bluetooth/test/mock_bluetooth_device.h

Issue 2217573002: bluetooth: Only add new devices, connected devices and devices that changed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-add-or-update
Patch Set: Fix typo Created 4 years, 4 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/test/mock_bluetooth_device.h
diff --git a/device/bluetooth/test/mock_bluetooth_device.h b/device/bluetooth/test/mock_bluetooth_device.h
index a7ed03ab37cecceb288d769fda128b199e88c0e1..34b97a79c835d4ab77eb96d4d548dc14ab8557d6 100644
--- a/device/bluetooth/test/mock_bluetooth_device.h
+++ b/device/bluetooth/test/mock_bluetooth_device.h
@@ -114,6 +114,8 @@ class MockBluetoothDevice : public BluetoothDevice {
BluetoothRemoteGattService* GetMockService(
const std::string& identifier) const;
+ void AddUUID(const BluetoothUUID& uuid) { uuids_.push_back(uuid); }
+
void SetConnected(bool connected) { connected_ = connected; }
private:

Powered by Google App Engine
This is Rietveld 408576698