| 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 23 matching lines...) Expand all Loading... |
| 34 // Test overrides: | 34 // Test overrides: |
| 35 void SetUp() override; | 35 void SetUp() override; |
| 36 | 36 |
| 37 // BluetoothTestBase overrides: | 37 // BluetoothTestBase overrides: |
| 38 bool PlatformSupportsLowEnergy() override; | 38 bool PlatformSupportsLowEnergy() override; |
| 39 void InitWithDefaultAdapter() override; | 39 void InitWithDefaultAdapter() override; |
| 40 void InitWithoutDefaultAdapter() override; | 40 void InitWithoutDefaultAdapter() override; |
| 41 void InitWithFakeAdapter() override; | 41 void InitWithFakeAdapter() override; |
| 42 BluetoothDevice* SimulateLowEnergyDevice(int device_ordinal) override; | 42 BluetoothDevice* SimulateLowEnergyDevice(int device_ordinal) override; |
| 43 void SimulateConnectedLowEnergyDevice( | 43 void SimulateConnectedLowEnergyDevice( |
| 44 ConnectedDeviceType device_ordinal) override; | 44 ConnectedDeviceType device_type) override; |
| 45 void SimulateGattConnection(BluetoothDevice* device) override; | 45 void SimulateGattConnection(BluetoothDevice* device) override; |
| 46 void SimulateGattConnectionError( | 46 void SimulateGattConnectionError( |
| 47 BluetoothDevice* device, | 47 BluetoothDevice* device, |
| 48 BluetoothDevice::ConnectErrorCode errorCode) override; | 48 BluetoothDevice::ConnectErrorCode errorCode) override; |
| 49 void SimulateGattDisconnection(BluetoothDevice* device) override; | 49 void SimulateGattDisconnection(BluetoothDevice* device) override; |
| 50 void SimulateGattServicesDiscovered( | 50 void SimulateGattServicesDiscovered( |
| 51 BluetoothDevice* device, | 51 BluetoothDevice* device, |
| 52 const std::vector<std::string>& uuids) override; | 52 const std::vector<std::string>& uuids) override; |
| 53 void SimulateGattServicesChanged(BluetoothDevice* device) override; | 53 void SimulateGattServicesChanged(BluetoothDevice* device) override; |
| 54 void SimulateGattServiceRemoved(BluetoothRemoteGattService* service) override; | 54 void SimulateGattServiceRemoved(BluetoothRemoteGattService* service) override; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 BluetoothAdapterMac* adapter_mac_ = nullptr; | 109 BluetoothAdapterMac* adapter_mac_ = nullptr; |
| 110 std::unique_ptr<ScopedMockCentralManager> mock_central_manager_; | 110 std::unique_ptr<ScopedMockCentralManager> mock_central_manager_; |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). | 113 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |
| 114 typedef BluetoothTestMac BluetoothTest; | 114 typedef BluetoothTestMac BluetoothTest; |
| 115 | 115 |
| 116 } // namespace device | 116 } // namespace device |
| 117 | 117 |
| 118 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ | 118 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ |
| OLD | NEW |