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

Unified Diff: ui/aura/test/aura_mus_test_base.h

Issue 2445163002: Make aura work with mus (Closed)
Patch Set: NON_EXPORTED_BASE_CLASS Created 4 years, 2 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 | « ui/aura/mus/window_tree_host_mus.cc ('k') | ui/aura/test/aura_mus_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ui/aura/mus/window_tree_host_mus.cc ('k') | ui/aura/test/aura_mus_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698