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

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

Issue 2071323002: bluetooth: mac: Initial BluetoothRemoteGattCharacteristicMac implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Skip reconnect-during-disconnected-event test Created 4 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
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 f725bba35df3a9f24414ae7c98f3af53d7acef39..a323131c18dcba10b1b17f33fc97059cc0731b38 100644
--- a/device/bluetooth/test/bluetooth_test_mac.h
+++ b/device/bluetooth/test/bluetooth_test_mac.h
@@ -10,6 +10,12 @@
#include "base/test/test_simple_task_runner.h"
#include "device/bluetooth/test/bluetooth_test.h"
+#if __OBJC__
+@class MockCBPeripheral;
+#else // __OBJC__
+class MockCBPeripheral;
+#endif // __OBJC__
+
namespace device {
class BluetoothAdapterMac;
@@ -41,6 +47,12 @@ class BluetoothTestMac : public BluetoothTestBase {
BluetoothDevice* device,
const std::vector<std::string>& uuids) override;
void SimulateGattServiceRemoved(BluetoothRemoteGattService* service) override;
+ void SimulateGattCharacteristic(BluetoothRemoteGattService* service,
+ const std::string& uuid,
+ int properties) override;
+ void SimulateGattCharacteristicRemoved(
+ BluetoothRemoteGattService* service,
+ BluetoothRemoteGattCharacteristic* characteristic) override;
// Callback for the bluetooth central manager mock.
void OnFakeBluetoothDeviceConnectGattCalled();
@@ -52,6 +64,10 @@ class BluetoothTestMac : public BluetoothTestBase {
protected:
class ScopedMockCentralManager;
+ // Returns MockCBPeripheral from BluetoothRemoteGattService.
+ MockCBPeripheral* GetMockCBPeripheral(
+ BluetoothRemoteGattService* service) const;
+
// Utility function for finding CBUUIDs with relatively nice SHA256 hashes.
std::string FindCBUUIDForHashTarget();
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_service_unittest.cc ('k') | device/bluetooth/test/bluetooth_test_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698