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

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

Issue 1690133002: Implement BluetoothRemoteGattServiceWin and related unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments and split out of included GATT services Created 4 years, 10 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/bluetooth_test.h
diff --git a/device/bluetooth/test/bluetooth_test.h b/device/bluetooth/test/bluetooth_test.h
index 5e34d909d8666a6f1408a95cc4cb8ca38fc2de69..5570ca11f1f7ffd0a6b23ea624d27fcfe28b3f39 100644
--- a/device/bluetooth/test/bluetooth_test.h
+++ b/device/bluetooth/test/bluetooth_test.h
@@ -113,6 +113,9 @@ class BluetoothTestBase : public testing::Test {
BluetoothDevice* device,
const std::vector<std::string>& uuids) {}
+ // Simulates remove of a |service|.
+ virtual void SimulateGattServiceRemoved(BluetoothGattService* service) {}
+
// Simulates failure to discover services.
virtual void SimulateGattServicesDiscoveryError(BluetoothDevice* device) {}
@@ -121,6 +124,11 @@ class BluetoothTestBase : public testing::Test {
const std::string& uuid,
int properties) {}
+ // Simulates remove of a |characteristic| from |service|.
+ virtual void SimulateGattCharacteristicRemoved(
+ BluetoothGattService* service,
+ BluetoothGattCharacteristic* characteristic) {}
+
// Remembers |characteristic|'s platform specific object to be used in a
// subsequent call to methods such as SimulateGattCharacteristicRead that
// accept a nullptr value to select this remembered characteristic. This

Powered by Google App Engine
This is Rietveld 408576698