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

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

Issue 2244693002: bluetooth: Refactor how we update based on Advertising Data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 eeae2cdd4771b9c47ac2f238168020f3d82ab836..332b2a039a98bbf158fa5511d5309f86d7115d88 100644
--- a/device/bluetooth/test/mock_bluetooth_device.h
+++ b/device/bluetooth/test/mock_bluetooth_device.h
@@ -51,7 +51,7 @@ class MockBluetoothDevice : public BluetoothDevice {
MOCK_CONST_METHOD0(IsGattConnected, bool());
MOCK_CONST_METHOD0(IsConnectable, bool());
MOCK_CONST_METHOD0(IsConnecting, bool());
- MOCK_CONST_METHOD0(GetUUIDs, UUIDList());
+ MOCK_CONST_METHOD0(GetUUIDs, UUIDSet());
MOCK_CONST_METHOD0(GetInquiryRSSI, base::Optional<int8_t>());
MOCK_CONST_METHOD0(GetInquiryTxPower, base::Optional<int8_t>());
MOCK_CONST_METHOD0(ExpectingPinCode, bool());
@@ -114,7 +114,7 @@ class MockBluetoothDevice : public BluetoothDevice {
BluetoothRemoteGattService* GetMockService(
const std::string& identifier) const;
- void AddUUID(const BluetoothUUID& uuid) { uuids_.push_back(uuid); }
+ void AddUUID(const BluetoothUUID& uuid) { uuids_.insert(uuid); }
void SetConnected(bool connected) { connected_ = connected; }
@@ -122,7 +122,7 @@ class MockBluetoothDevice : public BluetoothDevice {
uint32_t bluetooth_class_;
base::Optional<std::string> name_;
std::string address_;
- BluetoothDevice::UUIDList uuids_;
+ BluetoothDevice::UUIDSet uuids_;
bool connected_;
ScopedVector<MockBluetoothGattService> mock_services_;

Powered by Google App Engine
This is Rietveld 408576698