Index: ui/aura/test/aura_mus_test_base.h |
diff --git a/ui/aura/test/aura_mus_test_base.h b/ui/aura/test/aura_mus_test_base.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..47aa5c9649e520ce65787ff32f3cd88cbf895ac1 |
--- /dev/null |
+++ b/ui/aura/test/aura_mus_test_base.h |
@@ -0,0 +1,52 @@ |
+// Copyright 2016 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 UI_AURA_TEST_AURA_MUS_TEST_BASE_H_ |
+#define UI_AURA_TEST_AURA_MUS_TEST_BASE_H_ |
+ |
+#include "base/macros.h" |
+#include "ui/aura/test/aura_test_base.h" |
+ |
+namespace aura { |
+namespace test { |
+ |
+// A base class for aura unit tests that use mus. You can also use AuraTestBase |
+// directly and call EnableMus() before SetUp(). Prefer this if you don't need |
+// to subclass and want to target mus. |
+// |
+// This test class sets up the connection to mus as the window manager. |
+class AuraMusWmTestBase : public AuraTestBase { |
+ public: |
+ AuraMusWmTestBase(); |
+ ~AuraMusWmTestBase() override; |
+ |
+ // AuraTestBase: |
+ void SetUp() override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(AuraMusWmTestBase); |
+}; |
+ |
+// A base class for aura unit tests that use mus. You can also use AuraTestBase |
+// directly and call EnableMus() before SetUp(). Prefer this if you don't need |
+// to subclass and want to target mus. |
+// |
+// This test class sets up the connection to mus as a normal client (not the |
+// window manager). |
+class AuraMusClientTestBase : public AuraTestBase { |
+ public: |
+ AuraMusClientTestBase(); |
+ ~AuraMusClientTestBase() override; |
+ |
+ // AuraTestBase: |
+ void SetUp() override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(AuraMusClientTestBase); |
+}; |
+ |
+} // namespace test |
+} // namespace aura |
+ |
+#endif // UI_AURA_TEST_AURA_MUS_TEST_BASE_H_ |