OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "components/mus/public/cpp/tests/window_server_shelltest_base.h" | 10 #include "components/mus/public/cpp/tests/window_server_shelltest_base.h" |
11 #include "components/mus/public/cpp/window_manager_delegate.h" | 11 #include "components/mus/public/cpp/window_manager_delegate.h" |
12 #include "components/mus/public/cpp/window_tree_delegate.h" | 12 #include "components/mus/public/cpp/window_tree_delegate.h" |
13 #include "components/mus/public/interfaces/window_tree.mojom.h" | 13 #include "components/mus/public/interfaces/window_tree.mojom.h" |
14 #include "components/mus/public/interfaces/window_tree_host.mojom.h" | 14 #include "components/mus/public/interfaces/window_tree_host.mojom.h" |
15 #include "mojo/shell/public/cpp/interface_factory.h" | 15 #include "services/shell/public/cpp/interface_factory.h" |
16 | 16 |
17 namespace mus { | 17 namespace mus { |
18 | 18 |
19 // WindowServerTestBase is a base class for use with shell tests that use | 19 // WindowServerTestBase is a base class for use with shell tests that use |
20 // WindowServer. SetUp() connects to the WindowServer and blocks until OnEmbed() | 20 // WindowServer. SetUp() connects to the WindowServer and blocks until OnEmbed() |
21 // has been invoked. window_manager() can be used to access the WindowServer | 21 // has been invoked. window_manager() can be used to access the WindowServer |
22 // established as part of SetUp(). | 22 // established as part of SetUp(). |
23 class WindowServerTestBase | 23 class WindowServerTestBase |
24 : public WindowServerShellTestBase, | 24 : public WindowServerShellTestBase, |
25 public WindowTreeDelegate, | 25 public WindowTreeDelegate, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 WindowManagerClient* window_manager_client_; | 100 WindowManagerClient* window_manager_client_; |
101 | 101 |
102 bool window_tree_connection_destroyed_; | 102 bool window_tree_connection_destroyed_; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(WindowServerTestBase); | 104 DISALLOW_COPY_AND_ASSIGN(WindowServerTestBase); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace mus | 107 } // namespace mus |
108 | 108 |
109 #endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ | 109 #endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ |
OLD | NEW |