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

Unified Diff: device/bluetooth/test/mock_bluetooth_gatt_service.cc

Issue 1149883011: bluetooth: Browser-side implementation of readValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-get-characteristic-initial
Patch Set: Fix merge conflicts Created 5 years, 6 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
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_gatt_service.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/mock_bluetooth_gatt_service.cc
diff --git a/device/bluetooth/test/mock_bluetooth_gatt_service.cc b/device/bluetooth/test/mock_bluetooth_gatt_service.cc
index faba596a2d1e4f5f5df8df760955a69167c03511..93cbfc573e8391dc1adb836080036311454e8f9c 100644
--- a/device/bluetooth/test/mock_bluetooth_gatt_service.cc
+++ b/device/bluetooth/test/mock_bluetooth_gatt_service.cc
@@ -47,4 +47,14 @@ MockBluetoothGattService::GetMockCharacteristics() const {
return characteristics;
}
+BluetoothGattCharacteristic* MockBluetoothGattService::GetMockCharacteristic(
+ const std::string& identifier) const {
+ for (BluetoothGattCharacteristic* characteristic : mock_characteristics_) {
+ if (characteristic->GetIdentifier() == identifier) {
+ return characteristic;
+ }
+ }
+ return nullptr;
+}
+
} // namespace device
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_gatt_service.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698