Chromium Code Reviews| 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 fd354dab315bd69eaa0a502e3f2209ba4bbd3101..95d06bb897a86f414d1a12ac1ad72c5c9aaa2aa0 100644 |
| --- a/device/bluetooth/test/bluetooth_test_mac.h |
| +++ b/device/bluetooth/test/bluetooth_test_mac.h |
| @@ -30,12 +30,22 @@ class BluetoothTestMac : public BluetoothTestBase { |
| void InitWithoutDefaultAdapter() override; |
| void InitWithFakeAdapter() override; |
| BluetoothDevice* DiscoverLowEnergyDevice(int device_ordinal) override; |
| + void SimulateGattConnection(BluetoothDevice* device) override; |
| + void SimulateGattDisconnection(BluetoothDevice* device) override; |
| + void SimulateGattConnectionError( |
| + BluetoothDevice* device, |
| + BluetoothDevice::ConnectErrorCode errorCode) override; |
| + |
| + // Callback for the bluetooth central manager mock. |
| + void OnFakeBluetoothDeviceConnectGattCalled(); |
| + void OnFakeBluetoothGattDisconnect(); |
| protected: |
| // Utility function for finding CBUUIDs with relatively nice SHA256 hashes. |
| std::string FindCBUUIDForHashTarget(); |
| BluetoothAdapterMac* adapter_mac_ = NULL; |
| + void* mock_central_manager_ = NULL; |
|
msarda
2016/02/11 10:55:39
Should this be scoped_nsobject<MockCentralManager>
jlebel
2016/02/19 11:02:35
This file is included in c++ file.
msarda
2016/02/22 14:01:06
Ok, I see. The thing other folks do in this case i
|
| }; |
| // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |