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

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

Issue 1991063002: Implement the gattserverdisconnected event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename-web-bluetooth-device
Patch Set: Skip the new tests on Mac, where getCharacteristic isn't implemented yet. Created 4 years, 7 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 f6e79ec5309353508ce49753971546b59a9ab62e..c07a17f0b7b8f4747ff724d29d0d446ea591e996 100644
--- a/device/bluetooth/test/mock_bluetooth_device.h
+++ b/device/bluetooth/test/mock_bluetooth_device.h
@@ -111,11 +111,14 @@ class MockBluetoothDevice : public BluetoothDevice {
BluetoothRemoteGattService* GetMockService(
const std::string& identifier) const;
+ void SetConnected(bool connected) { connected_ = connected; }
+
private:
uint32_t bluetooth_class_;
std::string name_;
std::string address_;
BluetoothDevice::UUIDList uuids_;
+ bool connected_;
ScopedVector<MockBluetoothGattService> mock_services_;
};

Powered by Google App Engine
This is Rietveld 408576698