| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 ui::ContextFactoryPrivate* context_factory_private); | 69 ui::ContextFactoryPrivate* context_factory_private); |
| 70 | 70 |
| 71 // Clean up objects that are created for tests. This also deletes the Env | 71 // Clean up objects that are created for tests. This also deletes the Env |
| 72 // object. | 72 // object. |
| 73 void TearDown(); | 73 void TearDown(); |
| 74 | 74 |
| 75 // Flushes message loop. | 75 // Flushes message loop. |
| 76 void RunAllPendingInMessageLoop(); | 76 void RunAllPendingInMessageLoop(); |
| 77 | 77 |
| 78 Window* root_window() { return host_->window(); } | 78 Window* root_window() { return host_->window(); } |
| 79 ui::EventProcessor* event_processor() { return host_->event_processor(); } | 79 ui::EventSink* event_sink() { return host_->event_sink(); } |
| 80 WindowTreeHost* host() { return host_.get(); } | 80 WindowTreeHost* host() { return host_.get(); } |
| 81 | 81 |
| 82 TestScreen* test_screen() { return test_screen_.get(); } | 82 TestScreen* test_screen() { return test_screen_.get(); } |
| 83 | 83 |
| 84 // This function only returns a valid value if EnableMusWithTestWindowTree() | 84 // This function only returns a valid value if EnableMusWithTestWindowTree() |
| 85 // was called. | 85 // was called. |
| 86 TestWindowTree* window_tree(); | 86 TestWindowTree* window_tree(); |
| 87 | 87 |
| 88 // Returns a WindowTreeClient only if one of the EnableMus functions is | 88 // Returns a WindowTreeClient only if one of the EnableMus functions is |
| 89 // called. | 89 // called. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 WindowTreeClient* window_tree_client_ = nullptr; | 128 WindowTreeClient* window_tree_client_ = nullptr; |
| 129 | 129 |
| 130 DISALLOW_COPY_AND_ASSIGN(AuraTestHelper); | 130 DISALLOW_COPY_AND_ASSIGN(AuraTestHelper); |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 } // namespace test | 133 } // namespace test |
| 134 } // namespace aura | 134 } // namespace aura |
| 135 | 135 |
| 136 #endif // UI_AURA_TEST_AURA_TEST_HELPER_H_ | 136 #endif // UI_AURA_TEST_AURA_TEST_HELPER_H_ |
| OLD | NEW |