summaryrefslogtreecommitdiffstats
path: root/ui/views/test/views_test_base.h
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-05 09:00:44 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-05 09:00:44 +0000
commit5209d23549608b1cd758cfc2f26961908bcd83e5 (patch)
tree4814b92b8c4be6e14c51006654fca74c9628f561 /ui/views/test/views_test_base.h
parent678c036ef6be9f5e845f2e75a8b1bbd76985768d (diff)
downloadchromium_src-5209d23549608b1cd758cfc2f26961908bcd83e5.zip
chromium_src-5209d23549608b1cd758cfc2f26961908bcd83e5.tar.gz
chromium_src-5209d23549608b1cd758cfc2f26961908bcd83e5.tar.bz2
Desktop aura: Continue threading context through views.
These threads a .context parameter through most tests in views_unittests to widget creation (the handful that remain are Hard and will be addressed in a separate patch; I'm trying to keep these more manageable.) BUG=161882 Review URL: https://chromiumcodereview.appspot.com/11416251 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171196 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/test/views_test_base.h')
-rw-r--r--ui/views/test/views_test_base.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/views/test/views_test_base.h b/ui/views/test/views_test_base.h
index 267cc31..6866f06 100644
--- a/ui/views/test/views_test_base.h
+++ b/ui/views/test/views_test_base.h
@@ -44,6 +44,11 @@ class ViewsTestBase : public testing::Test {
MessageLoop* message_loop() { return &message_loop_; }
+ // Creates a widget of |type| with any platform specific data for use in
+ // cross-platform tests. Will also set WIDGET_OWNS_NATIVE_WIDGET, which most
+ // unit tests want.
+ Widget::InitParams CreateParams(Widget::InitParams::Type type);
+
private:
MessageLoopForUI message_loop_;
scoped_ptr<TestViewsDelegate> views_delegate_;