Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ | |
| 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ | |
| 7 | |
| 8 #include "base/test/test_simple_task_runner.h" | |
| 9 #include "device/bluetooth/test/bluetooth_test.h" | |
| 10 | |
| 11 namespace device { | |
| 12 | |
| 13 class BluetoothAdapterMac; | |
| 14 | |
| 15 // Mac implementation of BluetoothTestBase. | |
| 16 class BluetoothTestMac : public BluetoothTestBase { | |
| 17 public: | |
| 18 BluetoothTestMac(); | |
| 19 ~BluetoothTestMac() override; | |
| 20 | |
| 21 // Test overrides: | |
| 22 void SetUp() override; | |
| 23 | |
| 24 // BluetoothTestBase overrides: | |
| 25 void InitWithDefaultAdapter() override; | |
| 26 void InitWithoutDefaultAdapter() override; | |
| 27 void InitWithFakeAdapter() override; | |
| 28 | |
| 29 protected: | |
| 30 BluetoothAdapterMac* adapter_mac_ = NULL; | |
| 31 scoped_refptr<base::TestSimpleTaskRunner> ui_task_runner_; | |
|
scheib
2015/07/17 21:26:05
Instead, can BluetoothTestBase::message_loop_.task
krstnmnlsn
2015/07/17 23:14:50
Done.
| |
| 32 }; | |
| 33 | |
| 34 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). | |
| 35 typedef BluetoothTestMac BluetoothTest; | |
| 36 | |
| 37 } // namespace device | |
| 38 | |
| 39 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ | |
| OLD | NEW |