| 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_ANDROID_H_ | 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ |
| 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ | 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "device/bluetooth/test/bluetooth_test.h" | 11 #include "device/bluetooth/test/bluetooth_test.h" |
| 12 | 12 |
| 13 namespace device { | 13 namespace device { |
| 14 | 14 |
| 15 class BluetoothAdapterAndroid; | |
| 16 | |
| 17 // Android implementation of BluetoothTestBase. | 15 // Android implementation of BluetoothTestBase. |
| 18 class BluetoothTestAndroid : public BluetoothTestBase { | 16 class BluetoothTestAndroid : public BluetoothTestBase { |
| 19 public: | 17 public: |
| 20 BluetoothTestAndroid(); | 18 BluetoothTestAndroid(); |
| 21 ~BluetoothTestAndroid() override; | 19 ~BluetoothTestAndroid() override; |
| 22 | 20 |
| 23 // Test overrides: | 21 // Test overrides: |
| 24 void SetUp() override; | 22 void SetUp() override; |
| 25 void TearDown() override; | 23 void TearDown() override; |
| 26 | 24 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 int gatt_open_connections_ = 0; | 166 int gatt_open_connections_ = 0; |
| 169 BluetoothRemoteGattDescriptor* remembered_ccc_descriptor_ = nullptr; | 167 BluetoothRemoteGattDescriptor* remembered_ccc_descriptor_ = nullptr; |
| 170 }; | 168 }; |
| 171 | 169 |
| 172 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). | 170 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |
| 173 typedef BluetoothTestAndroid BluetoothTest; | 171 typedef BluetoothTestAndroid BluetoothTest; |
| 174 | 172 |
| 175 } // namespace device | 173 } // namespace device |
| 176 | 174 |
| 177 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ | 175 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ |
| OLD | NEW |