Index: device/bluetooth/test/bluetooth_test_win.h |
diff --git a/device/bluetooth/test/bluetooth_test_win.h b/device/bluetooth/test/bluetooth_test_win.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6e1acb5359afcf647441e1ad29b5445caea723d6 |
--- /dev/null |
+++ b/device/bluetooth/test/bluetooth_test_win.h |
@@ -0,0 +1,50 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
scheib
2016/01/26 05:29:27
2016
gogerald1
2016/01/26 19:33:26
Done.
|
+// 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_WIN_H_ |
+#define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ |
+ |
+#include "device/bluetooth/test/bluetooth_test.h" |
+ |
+#include "base/memory/ref_counted.h" |
+#include "base/test/test_pending_task.h" |
+#include "base/test/test_simple_task_runner.h" |
+ |
+namespace device { |
+class BluetoothAdapterWin; |
+ |
+// Windows implementation of BluetoothTestBase. |
+class BluetoothTestWin : public BluetoothTestBase { |
+ public: |
+ BluetoothTestWin(); |
+ ~BluetoothTestWin() override; |
+ |
+ // Test overrides |
+ void SetUp() override; |
+ void TearDown() override; |
+ |
+ // BluetoothTestBase overrides |
+ bool PlatformSupportsLowEnergy() override; |
+ void InitWithDefaultAdapter() override; |
+ void InitWithoutDefaultAdapter() override; |
+ void InitWithFakeAdapter() override; |
+ bool DenyPermission() override; |
+ |
+ protected: |
+ 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.
|
+ |
+ private: |
+ scoped_refptr<base::TestSimpleTaskRunner> ui_task_runner_; |
+ scoped_refptr<base::TestSimpleTaskRunner> bluetooth_task_runner_; |
+ BluetoothAdapterWin* adapter_Win_; |
scheib
2016/01/26 05:29:27
adapter_Win_ -> adapter_win_
gogerald1
2016/01/26 19:33:26
Done.
|
+ |
+ void AdapterInitCallback(); |
+}; |
+ |
+// Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). |
+typedef BluetoothTestWin BluetoothTest; |
+ |
+} // namespace device |
+ |
+#endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ |