Chromium Code Reviews| Index: device/bluetooth/test/bluetooth_test_mac.h |
| diff --git a/device/bluetooth/test/bluetooth_test_mac.h b/device/bluetooth/test/bluetooth_test_mac.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bcf7568d227c54f32c382fe0f56c877fff084e27 |
| --- /dev/null |
| +++ b/device/bluetooth/test/bluetooth_test_mac.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ |
| +#define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ |
| + |
| +#include "base/test/test_simple_task_runner.h" |
| +#include "device/bluetooth/test/bluetooth_test.h" |
| + |
| +namespace device { |
| + |
| +class BluetoothAdapterMac; |
| + |
| +// Mac implementation of BluetoothTestBase. |
| +class BluetoothTestMac : public BluetoothTestBase { |
| + public: |
| + BluetoothTestMac(); |
| + ~BluetoothTestMac() override; |
| + |
| + // Test overrides: |
| + void SetUp() override; |
| + |
| + // BluetoothTestBase overrides: |
| + void InitWithDefaultAdapter() override; |
| + void InitWithoutDefaultAdapter() override; |
| + void InitWithFakeAdapter() override; |
| + |
| + protected: |
| + BluetoothAdapterMac* adapter_mac_ = NULL; |
| + 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.
|
| +}; |
| + |
| +// Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |
| +typedef BluetoothTestMac BluetoothTest; |
| + |
| +} // namespace device |
| + |
| +#endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ |