Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: ui/aura/test/aura_test_base.h

Issue 2471033005: Adds DesktopWindowTreeHostMus (Closed)
Patch Set: fix Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void set_window_manager_delegate( 50 void set_window_manager_delegate(
51 WindowManagerDelegate* window_manager_delegate) { 51 WindowManagerDelegate* window_manager_delegate) {
52 window_manager_delegate_ = window_manager_delegate; 52 window_manager_delegate_ = window_manager_delegate;
53 } 53 }
54 54
55 void set_window_tree_client_delegate( 55 void set_window_tree_client_delegate(
56 WindowTreeClientDelegate* window_tree_client_delegate) { 56 WindowTreeClientDelegate* window_tree_client_delegate) {
57 window_tree_client_delegate_ = window_tree_client_delegate; 57 window_tree_client_delegate_ = window_tree_client_delegate;
58 } 58 }
59 59
60 // Turns on mus. Must be called before SetUp(). 60 // Turns on mus with a test WindowTree. Must be called before SetUp().
61 void EnableMus(); 61 void EnableMusWithTestWindowTree();
62 62
63 // Used to configure the backend. This is exposed to make parameterized tests 63 // Used to configure the backend. This is exposed to make parameterized tests
64 // easy to write. This *must* be called from SetUp(). 64 // easy to write. This *must* be called from SetUp().
65 void ConfigureBackend(BackendType type); 65 void ConfigureBackend(BackendType type);
66 66
67 void RunAllPendingInMessageLoop(); 67 void RunAllPendingInMessageLoop();
68 68
69 void ParentWindow(Window* window); 69 void ParentWindow(Window* window);
70 70
71 // A convenience function for dispatching an event to |dispatcher()|. 71 // A convenience function for dispatching an event to |dispatcher()|.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 private: 148 private:
149 bool setup_called_ = false; 149 bool setup_called_ = false;
150 150
151 DISALLOW_COPY_AND_ASSIGN(AuraTestBaseWithType); 151 DISALLOW_COPY_AND_ASSIGN(AuraTestBaseWithType);
152 }; 152 };
153 153
154 } // namespace test 154 } // namespace test
155 } // namespace aura 155 } // namespace aura
156 156
157 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_ 157 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698