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"
13 class BluetoothAdapterAndroid
;
15 // Android implementation of BluetoothTestBase.
16 class BluetoothTestAndroid
: public BluetoothTestBase
{
18 BluetoothTestAndroid();
19 ~BluetoothTestAndroid() override
;
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
;
39 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_