Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: device/bluetooth/test/bluetooth_test_android.h

Issue 1215303006: bluetooth: android: Initial BluetoothDeviceAndroid implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bta-discovery-
Patch Set: Merge TOT Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "device/bluetooth/test/bluetooth_test.h" 9 #include "device/bluetooth/test/bluetooth_test.h"
10 10
11 namespace device { 11 namespace device {
12 12
13 class BluetoothAdapterAndroid; 13 class BluetoothAdapterAndroid;
14 14
15 // Android implementation of BluetoothTestBase. 15 // Android implementation of BluetoothTestBase.
16 class BluetoothTestAndroid : public BluetoothTestBase { 16 class BluetoothTestAndroid : public BluetoothTestBase {
17 public: 17 public:
18 BluetoothTestAndroid(); 18 BluetoothTestAndroid();
19 ~BluetoothTestAndroid() override; 19 ~BluetoothTestAndroid() override;
20 20
21 // Test overrides: 21 // Test overrides:
22 void SetUp() override; 22 void SetUp() override;
23 23
24 // BluetoothTestBase overrides: 24 // BluetoothTestBase overrides:
25 void InitWithDefaultAdapter() override; 25 void InitWithDefaultAdapter() override;
26 void InitWithoutDefaultAdapter() override; 26 void InitWithoutDefaultAdapter() override;
27 void InitWithFakeAdapter() override; 27 void InitWithFakeAdapter() override;
28 void DiscoverLowEnergyDevice(int device_ordinal) override;
29
30 base::android::ScopedJavaGlobalRef<jobject> j_fake_bluetooth_adapter_;
28 }; 31 };
29 32
30 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). 33 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
31 typedef BluetoothTestAndroid BluetoothTest; 34 typedef BluetoothTestAndroid BluetoothTest;
32 35
33 } // namespace device 36 } // namespace device
34 37
35 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ 38 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_
OLDNEW
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698