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

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

Issue 1632123003: Add cross platform Bluetooth testing fixture for Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_
6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_
7
8 #include "device/bluetooth/test/bluetooth_test.h"
9
10 #include "base/memory/ref_counted.h"
11 #include "base/test/test_pending_task.h"
12 #include "base/test/test_simple_task_runner.h"
13
14 namespace device {
15 class BluetoothAdapterWin;
16
17 // Windows implementation of BluetoothTestBase.
18 class BluetoothTestWin : public BluetoothTestBase {
19 public:
20 BluetoothTestWin();
21 ~BluetoothTestWin() override;
22
23 // BluetoothTestBase overrides
24 bool PlatformSupportsLowEnergy() override;
25 void InitWithDefaultAdapter() override;
26 void InitWithoutDefaultAdapter() override;
27 void InitWithFakeAdapter() override;
28 bool DenyPermission() override;
29
30 private:
31 scoped_refptr<base::TestSimpleTaskRunner> ui_task_runner_;
32 scoped_refptr<base::TestSimpleTaskRunner> bluetooth_task_runner_;
33 BluetoothAdapterWin* adapter_win_;
34
35 void AdapterInitCallback();
36 };
37
38 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
39 typedef BluetoothTestWin BluetoothTest;
40
41 } // namespace device
42
43 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_win.h ('k') | device/bluetooth/test/bluetooth_test_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698