| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ | 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ |
| 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ | 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/test/test_simple_task_runner.h" | 10 #include "base/test/test_simple_task_runner.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 void InitWithFakeAdapter() override; | 41 void InitWithFakeAdapter() override; |
| 42 BluetoothDevice* SimulateLowEnergyDevice(int device_ordinal) override; | 42 BluetoothDevice* SimulateLowEnergyDevice(int device_ordinal) override; |
| 43 void SimulateGattConnection(BluetoothDevice* device) override; | 43 void SimulateGattConnection(BluetoothDevice* device) override; |
| 44 void SimulateGattConnectionError( | 44 void SimulateGattConnectionError( |
| 45 BluetoothDevice* device, | 45 BluetoothDevice* device, |
| 46 BluetoothDevice::ConnectErrorCode errorCode) override; | 46 BluetoothDevice::ConnectErrorCode errorCode) override; |
| 47 void SimulateGattDisconnection(BluetoothDevice* device) override; | 47 void SimulateGattDisconnection(BluetoothDevice* device) override; |
| 48 void SimulateGattServicesDiscovered( | 48 void SimulateGattServicesDiscovered( |
| 49 BluetoothDevice* device, | 49 BluetoothDevice* device, |
| 50 const std::vector<std::string>& uuids) override; | 50 const std::vector<std::string>& uuids) override; |
| 51 void SimulateGattServicesChanged(BluetoothDevice* device) override; |
| 51 void SimulateGattServiceRemoved(BluetoothRemoteGattService* service) override; | 52 void SimulateGattServiceRemoved(BluetoothRemoteGattService* service) override; |
| 52 void SimulateGattCharacteristic(BluetoothRemoteGattService* service, | 53 void SimulateGattCharacteristic(BluetoothRemoteGattService* service, |
| 53 const std::string& uuid, | 54 const std::string& uuid, |
| 54 int properties) override; | 55 int properties) override; |
| 55 void SimulateGattCharacteristicRead( | 56 void SimulateGattCharacteristicRead( |
| 56 BluetoothRemoteGattCharacteristic* characteristic, | 57 BluetoothRemoteGattCharacteristic* characteristic, |
| 57 const std::vector<uint8_t>& value) override; | 58 const std::vector<uint8_t>& value) override; |
| 58 void SimulateGattCharacteristicReadError( | 59 void SimulateGattCharacteristicReadError( |
| 59 BluetoothRemoteGattCharacteristic* characteristic, | 60 BluetoothRemoteGattCharacteristic* characteristic, |
| 60 BluetoothRemoteGattService::GattErrorCode) override; | 61 BluetoothRemoteGattService::GattErrorCode) override; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 BluetoothAdapterMac* adapter_mac_ = nullptr; | 102 BluetoothAdapterMac* adapter_mac_ = nullptr; |
| 102 std::unique_ptr<ScopedMockCentralManager> mock_central_manager_; | 103 std::unique_ptr<ScopedMockCentralManager> mock_central_manager_; |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). | 106 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |
| 106 typedef BluetoothTestMac BluetoothTest; | 107 typedef BluetoothTestMac BluetoothTest; |
| 107 | 108 |
| 108 } // namespace device | 109 } // namespace device |
| 109 | 110 |
| 110 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ | 111 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ |
| OLD | NEW |