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

Unified Diff: ui/views/event_monitor_unittest.cc

Issue 2010083002: views/mus: Run some more tests from views_unittests in mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 months 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/controls/textfield/textfield_unittest.cc ('k') | ui/views/mus/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/event_monitor_unittest.cc
diff --git a/ui/views/event_monitor_unittest.cc b/ui/views/event_monitor_unittest.cc
index a73b1f4d148e04276080463203ce5d9b2c6231c9..bfca626c455bab9e62c47a6454a00087b7b454c3 100644
--- a/ui/views/event_monitor_unittest.cc
+++ b/ui/views/event_monitor_unittest.cc
@@ -21,8 +21,13 @@ class EventMonitorTest : public WidgetTest {
widget_ = CreateTopLevelNativeWidget();
widget_->SetSize(gfx::Size(100, 100));
widget_->Show();
- generator_.reset(
- new ui::test::EventGenerator(GetContext(), widget_->GetNativeWindow()));
+ if (IsMus()) {
+ generator_.reset(
+ new ui::test::EventGenerator(widget_->GetNativeWindow()));
+ } else {
+ generator_.reset(new ui::test::EventGenerator(
+ GetContext(), widget_->GetNativeWindow()));
+ }
generator_->set_targeting_application(true);
}
void TearDown() override {
« no previous file with comments | « ui/views/controls/textfield/textfield_unittest.cc ('k') | ui/views/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698