Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
|
scheib
2016/01/26 05:29:27
2016
gogerald1
2016/01/26 19:33:26
Done.
| |
| 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 // Test overrides | |
| 24 void SetUp() override; | |
| 25 void TearDown() override; | |
| 26 | |
| 27 // BluetoothTestBase overrides | |
| 28 bool PlatformSupportsLowEnergy() override; | |
| 29 void InitWithDefaultAdapter() override; | |
| 30 void InitWithoutDefaultAdapter() override; | |
| 31 void InitWithFakeAdapter() override; | |
| 32 bool DenyPermission() override; | |
| 33 | |
| 34 protected: | |
| 35 scoped_refptr<BluetoothAdapter> adapter_; | |
|
scheib
2016/01/26 05:29:27
BluetoothTest::adapter_ exists with this type alre
gogerald1
2016/01/26 19:33:26
Done.
| |
| 36 | |
| 37 private: | |
| 38 scoped_refptr<base::TestSimpleTaskRunner> ui_task_runner_; | |
| 39 scoped_refptr<base::TestSimpleTaskRunner> bluetooth_task_runner_; | |
| 40 BluetoothAdapterWin* adapter_Win_; | |
|
scheib
2016/01/26 05:29:27
adapter_Win_ -> adapter_win_
gogerald1
2016/01/26 19:33:26
Done.
| |
| 41 | |
| 42 void AdapterInitCallback(); | |
| 43 }; | |
| 44 | |
| 45 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). | |
| 46 typedef BluetoothTestWin BluetoothTest; | |
| 47 | |
| 48 } // namespace device | |
| 49 | |
| 50 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ | |
| OLD | NEW |