OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_AURA_TEST_AURA_TEST_HELPER_H_ | 5 #ifndef UI_AURA_TEST_AURA_TEST_HELPER_H_ |
6 #define UI_AURA_TEST_AURA_TEST_HELPER_H_ | 6 #define UI_AURA_TEST_AURA_TEST_HELPER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // called before SetUp(). | 55 // called before SetUp(). |
56 void EnableMusWithTestWindowTree( | 56 void EnableMusWithTestWindowTree( |
57 WindowTreeClientDelegate* window_tree_delegate, | 57 WindowTreeClientDelegate* window_tree_delegate, |
58 WindowManagerDelegate* window_manager_delegate); | 58 WindowManagerDelegate* window_manager_delegate); |
59 | 59 |
60 // Makes aura target mus with the specified WindowTreeClient. Must be called | 60 // Makes aura target mus with the specified WindowTreeClient. Must be called |
61 // before SetUp(). | 61 // before SetUp(). |
62 void EnableMusWithWindowTreeClient(WindowTreeClient* window_tree_client); | 62 void EnableMusWithWindowTreeClient(WindowTreeClient* window_tree_client); |
63 | 63 |
64 // Creates and initializes (shows and sizes) the RootWindow for use in tests. | 64 // Creates and initializes (shows and sizes) the RootWindow for use in tests. |
65 void SetUp(ui::ContextFactory* context_factory); | 65 void SetUp(ui::ContextFactory* context_factory, |
| 66 ui::ContextFactoryPrivate* context_factory_private); |
66 | 67 |
67 // Clean up objects that are created for tests. This also deletes the Env | 68 // Clean up objects that are created for tests. This also deletes the Env |
68 // object. | 69 // object. |
69 void TearDown(); | 70 void TearDown(); |
70 | 71 |
71 // Flushes message loop. | 72 // Flushes message loop. |
72 void RunAllPendingInMessageLoop(); | 73 void RunAllPendingInMessageLoop(); |
73 | 74 |
74 Window* root_window() { return host_->window(); } | 75 Window* root_window() { return host_->window(); } |
75 ui::EventProcessor* event_processor() { return host_->event_processor(); } | 76 ui::EventProcessor* event_processor() { return host_->event_processor(); } |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 124 |
124 WindowTreeClient* window_tree_client_ = nullptr; | 125 WindowTreeClient* window_tree_client_ = nullptr; |
125 | 126 |
126 DISALLOW_COPY_AND_ASSIGN(AuraTestHelper); | 127 DISALLOW_COPY_AND_ASSIGN(AuraTestHelper); |
127 }; | 128 }; |
128 | 129 |
129 } // namespace test | 130 } // namespace test |
130 } // namespace aura | 131 } // namespace aura |
131 | 132 |
132 #endif // UI_AURA_TEST_AURA_TEST_HELPER_H_ | 133 #endif // UI_AURA_TEST_AURA_TEST_HELPER_H_ |
OLD | NEW |