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

Unified Diff: device/bluetooth/test/bluetooth_test_mac.h

Issue 1232613004: The first 3 BluetoothTest.* unit tests now running on Mac as well. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@movCBCM
Patch Set: comment edit Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/test/bluetooth_test.cc ('k') | device/bluetooth/test/bluetooth_test_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b6d15385ad33b33aacab8999c882cf7467bc8529
--- /dev/null
+++ b/device/bluetooth/test/bluetooth_test_mac.h
@@ -0,0 +1,38 @@
+// 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;
+};
+
+// Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
+typedef BluetoothTestMac BluetoothTest;
+
+} // namespace device
+
+#endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_
« no previous file with comments | « device/bluetooth/test/bluetooth_test.cc ('k') | device/bluetooth/test/bluetooth_test_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698