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

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

Issue 2738563002: Bluetooth: macOS: cleanup code. (Closed)
Patch Set: . Created 3 years, 9 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 | « no previous file | device/bluetooth/test/bluetooth_test_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/bluetooth_test_mac.h
diff --git a/device/bluetooth/test/bluetooth_test_mac.h b/device/bluetooth/test/bluetooth_test_mac.h
index d4db9809a04bc87f3c7e0fd472fe40de6eee53f0..46e168a4d7c103432301130a05f5c1e113bd6085 100644
--- a/device/bluetooth/test/bluetooth_test_mac.h
+++ b/device/bluetooth/test/bluetooth_test_mac.h
@@ -113,6 +113,8 @@ class BluetoothTestMac : public BluetoothTestBase {
protected:
class ScopedMockCentralManager;
+ // Returns MockCBPeripheral from BluetoothDevice.
+ MockCBPeripheral* GetMockCBPeripheral(BluetoothDevice* device) const;
// Returns MockCBPeripheral from BluetoothRemoteGattService.
MockCBPeripheral* GetMockCBPeripheral(
BluetoothRemoteGattService* service) const;
@@ -122,6 +124,9 @@ class BluetoothTestMac : public BluetoothTestBase {
// Returns MockCBCharacteristic from BluetoothRemoteGattCharacteristic.
MockCBCharacteristic* GetCBMockCharacteristic(
BluetoothRemoteGattCharacteristic* characteristic) const;
+ // Adds services in MockCBPeripheral.
+ void AddServicesToDevice(BluetoothDevice* device,
+ const std::vector<std::string>& uuids);
// Utility function for finding CBUUIDs with relatively nice SHA256 hashes.
std::string FindCBUUIDForHashTarget();
« no previous file with comments | « no previous file | device/bluetooth/test/bluetooth_test_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698