| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_SERVER_SHELLTEST_BASE_H_ | |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_SERVER_SHELLTEST_BASE_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "services/shell/public/cpp/connection.h" | |
| 10 #include "services/shell/public/cpp/shell_test.h" | |
| 11 | |
| 12 namespace mus { | |
| 13 | |
| 14 // Base class for all window manager shelltests to perform some common setup. | |
| 15 class WindowServerShellTestBase : public shell::test::ShellTest { | |
| 16 public: | |
| 17 WindowServerShellTestBase(); | |
| 18 ~WindowServerShellTestBase() override; | |
| 19 | |
| 20 virtual bool AcceptConnection(shell::Connection* connection) = 0; | |
| 21 | |
| 22 private: | |
| 23 // shell::test::ShellTest: | |
| 24 std::unique_ptr<shell::ShellClient> CreateShellClient() override; | |
| 25 | |
| 26 DISALLOW_COPY_AND_ASSIGN(WindowServerShellTestBase); | |
| 27 }; | |
| 28 | |
| 29 } // namespace mus | |
| 30 | |
| 31 #endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_SERVER_SHELLTEST_BASE_H_ | |
| OLD | NEW |