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

Unified Diff: services/window_manager/window_manager_test_util.h

Issue 781603002: Port even more FocusController tests. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Initialize my member variables. Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: services/window_manager/window_manager_test_util.h
diff --git a/services/window_manager/window_manager_test_util.h b/services/window_manager/window_manager_test_util.h
index 047223db97129cf944241bf6de1c6e9ada593226..8d40d76f3574543cb8aec32d463196590d1adb0e 100644
--- a/services/window_manager/window_manager_test_util.h
+++ b/services/window_manager/window_manager_test_util.h
@@ -25,6 +25,11 @@ class TestView : public View {
TestView(int id, const gfx::Rect& rect, View* parent);
~TestView();
+ // Builds a child view as a pointer. The caller is responsible for making
+ // sure that the root of any tree allocated this way is Destroy()ed.
+ static TestView* Build(int id, const gfx::Rect& rect);
+ static TestView* Build(int id, const gfx::Rect& rect, View* parent);
+
ViewTarget* target() { return target_; }
private:
« no previous file with comments | « services/window_manager/focus_controller_unittest.cc ('k') | services/window_manager/window_manager_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698