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_VIEW_MANAGER_PUBLIC_CPP_TESTS_VIEW_MANAGER_TEST_BASE_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_TESTS_VIEW_MANAGER_TEST_BASE_H_ |
6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_TESTS_VIEW_MANAGER_TEST_BASE_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_TESTS_VIEW_MANAGER_TEST_BASE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "components/view_manager/public/cpp/view_tree_delegate.h" | 9 #include "components/mus/public/cpp/view_tree_delegate.h" |
10 #include "components/view_manager/public/interfaces/view_tree.mojom.h" | 10 #include "components/mus/public/interfaces/view_tree.mojom.h" |
11 #include "components/view_manager/public/interfaces/view_tree_host.mojom.h" | 11 #include "components/mus/public/interfaces/view_tree_host.mojom.h" |
12 #include "mojo/application/public/cpp/application_delegate.h" | 12 #include "mojo/application/public/cpp/application_delegate.h" |
13 #include "mojo/application/public/cpp/application_test_base.h" | 13 #include "mojo/application/public/cpp/application_test_base.h" |
14 #include "mojo/application/public/cpp/interface_factory.h" | 14 #include "mojo/application/public/cpp/interface_factory.h" |
15 | 15 |
16 namespace mojo { | 16 namespace mojo { |
17 | 17 |
18 // ViewManagerTestBase is a base class for use with app tests that use | 18 // ViewManagerTestBase is a base class for use with app tests that use |
19 // ViewManager. SetUp() connects to the ViewManager and blocks until OnEmbed() | 19 // ViewManager. SetUp() connects to the ViewManager and blocks until OnEmbed() |
20 // has been invoked. window_manager() can be used to access the ViewManager | 20 // has been invoked. window_manager() can be used to access the ViewManager |
21 // established as part of SetUp(). | 21 // established as part of SetUp(). |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // root view). | 77 // root view). |
78 ViewTreeConnection* window_manager_; | 78 ViewTreeConnection* window_manager_; |
79 | 79 |
80 bool view_tree_connection_destroyed_; | 80 bool view_tree_connection_destroyed_; |
81 | 81 |
82 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewManagerTestBase); | 82 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewManagerTestBase); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace mojo | 85 } // namespace mojo |
86 | 86 |
87 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_TESTS_VIEW_MANAGER_TEST_BASE_H_ | 87 #endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_VIEW_MANAGER_TEST_BASE_H_ |
OLD | NEW |