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_BASE_H_ | 5 #ifndef UI_AURA_TEST_AURA_TEST_BASE_H_ |
6 #define UI_AURA_TEST_AURA_TEST_BASE_H_ | 6 #define UI_AURA_TEST_AURA_TEST_BASE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 } | 57 } |
58 | 58 |
59 void set_window_tree_client_delegate( | 59 void set_window_tree_client_delegate( |
60 WindowTreeClientDelegate* window_tree_client_delegate) { | 60 WindowTreeClientDelegate* window_tree_client_delegate) { |
61 window_tree_client_delegate_ = window_tree_client_delegate; | 61 window_tree_client_delegate_ = window_tree_client_delegate; |
62 } | 62 } |
63 | 63 |
64 // Turns on mus with a test WindowTree. Must be called before SetUp(). | 64 // Turns on mus with a test WindowTree. Must be called before SetUp(). |
65 void EnableMusWithTestWindowTree(); | 65 void EnableMusWithTestWindowTree(); |
66 | 66 |
| 67 // Deletes the WindowTreeClient now. Normally the WindowTreeClient is deleted |
| 68 // at the right time and there is no need to call this. This is provided for |
| 69 // testing shutdown ordering. |
| 70 void DeleteWindowTreeClient(); |
| 71 |
67 // Used to configure the backend. This is exposed to make parameterized tests | 72 // Used to configure the backend. This is exposed to make parameterized tests |
68 // easy to write. This *must* be called from SetUp(). | 73 // easy to write. This *must* be called from SetUp(). |
69 void ConfigureBackend(BackendType type); | 74 void ConfigureBackend(BackendType type); |
70 | 75 |
71 void RunAllPendingInMessageLoop(); | 76 void RunAllPendingInMessageLoop(); |
72 | 77 |
73 void ParentWindow(Window* window); | 78 void ParentWindow(Window* window); |
74 | 79 |
75 // A convenience function for dispatching an event to |dispatcher()|. | 80 // A convenience function for dispatching an event to |dispatcher()|. |
76 // Returns whether |event| was handled. | 81 // Returns whether |event| was handled. |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 void SetUp() override; | 186 void SetUp() override; |
182 | 187 |
183 private: | 188 private: |
184 DISALLOW_COPY_AND_ASSIGN(AuraTestBaseMus); | 189 DISALLOW_COPY_AND_ASSIGN(AuraTestBaseMus); |
185 }; | 190 }; |
186 | 191 |
187 } // namespace test | 192 } // namespace test |
188 } // namespace aura | 193 } // namespace aura |
189 | 194 |
190 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_ | 195 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_ |
OLD | NEW |