| 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/window_tree_delegate.h" | 10 #include "components/mus/public/cpp/window_tree_delegate.h" |
| 11 #include "components/mus/public/interfaces/window_tree.mojom.h" | 11 #include "components/mus/public/interfaces/window_tree.mojom.h" |
| 12 #include "components/mus/public/interfaces/window_tree_host.mojom.h" | 12 #include "components/mus/public/interfaces/window_tree_host.mojom.h" |
| 13 #include "mojo/application/public/cpp/application_delegate.h" | 13 #include "mojo/shell/public/cpp/application_delegate.h" |
| 14 #include "mojo/application/public/cpp/application_test_base.h" | 14 #include "mojo/shell/public/cpp/application_test_base.h" |
| 15 #include "mojo/application/public/cpp/interface_factory.h" | 15 #include "mojo/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 app tests that use | 19 // WindowServerTestBase is a base class for use with app 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 mojo::test::ApplicationTestBase, | 24 : public mojo::test::ApplicationTestBase, |
| 25 public mojo::ApplicationDelegate, | 25 public mojo::ApplicationDelegate, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 WindowTreeConnection* window_manager_; | 82 WindowTreeConnection* window_manager_; |
| 83 | 83 |
| 84 bool window_tree_connection_destroyed_; | 84 bool window_tree_connection_destroyed_; |
| 85 | 85 |
| 86 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowServerTestBase); | 86 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowServerTestBase); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace mus | 89 } // namespace mus |
| 90 | 90 |
| 91 #endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ | 91 #endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ |
| OLD | NEW |