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

Unified Diff: components/mus/public/cpp/tests/window_server_shelltest_base.h

Issue 1771393002: Convert mus apptests to shelltests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: components/mus/public/cpp/tests/window_server_shelltest_base.h
diff --git a/components/mus/public/cpp/tests/window_server_shelltest_base.h b/components/mus/public/cpp/tests/window_server_shelltest_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..8fdb19eee33a27680ca71d1dadc586f1405a06c9
--- /dev/null
+++ b/components/mus/public/cpp/tests/window_server_shelltest_base.h
@@ -0,0 +1,31 @@
+// 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 COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_SERVER_SHELLTEST_BASE_H_
+#define COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_SERVER_SHELLTEST_BASE_H_
+
+#include "base/macros.h"
+#include "mojo/shell/public/cpp/connection.h"
+#include "mojo/shell/public/cpp/shell_test.h"
+
+namespace mus {
+
+// Base class for all window manager shelltests to perform some common setup.
+class WindowServerShellTestBase : public mojo::test::ShellTest {
+ public:
+ WindowServerShellTestBase();
+ ~WindowServerShellTestBase() override;
+
+ virtual bool AcceptConnection(mojo::Connection* connection) = 0;
+
+ private:
+ // mojo::test::ShellTest:
+ scoped_ptr<mojo::ShellClient> CreateShellClient() override;
+
+ DISALLOW_COPY_AND_ASSIGN(WindowServerShellTestBase);
+};
+
+} // namespace mus
+
+#endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_SERVER_SHELLTEST_BASE_H_
« no previous file with comments | « components/mus/public/cpp/tests/BUILD.gn ('k') | components/mus/public/cpp/tests/window_server_shelltest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698