QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / device / bluetooth / test / bluetooth_test_android.h
blob63e8f9fa82533d96b387221b235fbab5d6985e40
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
3 // found in the LICENSE file.
5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_
6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_
8 #include "base/android/scoped_java_ref.h"
9 #include "device/bluetooth/test/bluetooth_test.h"
11 namespace device {
13 class BluetoothAdapterAndroid;
15 // Android implementation of BluetoothTestBase.
16 class BluetoothTestAndroid : public BluetoothTestBase {
17 public:
18 BluetoothTestAndroid();
19 ~BluetoothTestAndroid() override;
21 // Test overrides:
22 void SetUp() override;
24 // BluetoothTestBase overrides:
25 bool PlatformSupportsLowEnergy() override;
26 void InitWithDefaultAdapter() override;
27 void InitWithoutDefaultAdapter() override;
28 void InitWithFakeAdapter() override;
29 void DiscoverLowEnergyDevice(int device_ordinal) override;
31 base::android::ScopedJavaGlobalRef<jobject> j_fake_bluetooth_adapter_;
34 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
35 typedef BluetoothTestAndroid BluetoothTest;
37 } // namespace device
39 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_