Chromium Code Reviews| Index: components/mus/public/cpp/tests/window_manager_shelltest_base.h |
| diff --git a/components/mus/public/cpp/tests/window_manager_shelltest_base.h b/components/mus/public/cpp/tests/window_manager_shelltest_base.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0f8cb9526a6640d9cd17f02b0f6aa5e31b12603e |
| --- /dev/null |
| +++ b/components/mus/public/cpp/tests/window_manager_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_MANAGER_SHELLTEST_BASE_H_ |
| +#define COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_MANAGER_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 WindowManagerShellTestBase : public mojo::test::ShellTest { |
|
sky
2016/03/09 00:50:42
WindowManager->WindowServer
|
| + public: |
| + WindowManagerShellTestBase(); |
| + ~WindowManagerShellTestBase() override; |
| + |
| + virtual bool AcceptConnection(mojo::Connection* connection) = 0; |
| + |
| + private: |
| + // mojo::test::ShellTest: |
| + scoped_ptr<mojo::ShellClient> CreateShellClient() override; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(WindowManagerShellTestBase); |
| +}; |
| + |
| +} // namespace mus |
| + |
| +#endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_MANAGER_SHELLTEST_BASE_H_ |