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

Unified Diff: ui/views/touchui/touch_selection_menu_runner_views_unittest.cc

Issue 2489513003: Fixes and test updates for aura-mus (Closed)
Patch Set: feedback 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/mus/desktop_window_tree_host_mus.cc ('k') | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/touchui/touch_selection_menu_runner_views_unittest.cc
diff --git a/ui/views/touchui/touch_selection_menu_runner_views_unittest.cc b/ui/views/touchui/touch_selection_menu_runner_views_unittest.cc
index 9a557b22e7ed5b2134944c1a51117dbf31bcac56..7833cae3b66ed1c55b8679df8d3749572d9d4057 100644
--- a/ui/views/touchui/touch_selection_menu_runner_views_unittest.cc
+++ b/ui/views/touchui/touch_selection_menu_runner_views_unittest.cc
@@ -30,6 +30,17 @@ class TouchSelectionMenuRunnerViewsTest : public ViewsTestBase,
~TouchSelectionMenuRunnerViewsTest() override {}
protected:
+ void SetUp() override {
+ ViewsTestBase::SetUp();
+ // These tests expect NativeWidgetAura, force its creation.
+ // TODO(sky): the reason these end up using NativeWidgetAura is because they
+ // create a widget parented to GetContext(). GetContext() currently always
+ // returns an aura::Window in a fake WindowTreeHost. For aura-mus we should
+ // not create a fake WindowTreeHost. http://crbug.com/663561.
+ ViewsDelegate::GetInstance()->set_native_widget_factory(
+ ViewsDelegate::NativeWidgetFactory());
+ }
+
void set_no_commmand_available(bool no_command) {
no_command_available_ = no_command;
}
« no previous file with comments | « ui/views/mus/desktop_window_tree_host_mus.cc ('k') | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698