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

Issue 2488393003: Changes views_aura_mus_unittests to create DesktopNativeWidgetAura (Closed)

Created:
4 years, 1 month ago by sky
Modified:
4 years, 1 month ago
Reviewers:
msw
CC:
chromium-reviews, tfarina, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Changes views_aura_mus_unittests to create DesktopNativeWidgetAura And disables a bunch of tests that are either broke or don't make sense. Tests that don't call CreatePlatformNativeWidgetImpl() already create a DesktopNativeWidgetAura, but those calling CreatePlatformNativeWidgetImpl() ended up with a NativeWidgetAura. This patch makes it so when aura-mus-client is used CreatePlatformNativeWidgetImpl() creates a DesktopNativeWidgetAura (assuming that is appropriate). Additionally I'm making ViewsTestBase::GetContext() return null for aura-mus-client. That way we sure see failures early on. BUG=663903 663809 663561 663868 664261 664280 615033 TEST=covered by tests R=msw@chromium.org Committed: https://crrev.com/a178499ab5e3a157c30198dc94deed31104360d9 Cr-Commit-Position: refs/heads/master@{#431505}

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : tweaks #

Patch Set 4 : git add #

Total comments: 25

Patch Set 5 : fix mac #

Total comments: 2

Patch Set 6 : feedback #

Total comments: 2

Patch Set 7 : remove this and fix mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+487 lines, -239 lines) Patch
M ui/views/BUILD.gn View 1 2 3 4 5 6 3 chunks +2 lines, -1 line 0 comments Download
M ui/views/accessible_pane_view_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/button/menu_button_unittest.cc View 3 chunks +16 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_controller_unittest.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_runner_unittest.cc View 4 chunks +16 lines, -1 line 0 comments Download
M ui/views/controls/native/native_view_host_aura_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/views/event_monitor_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/focus/focus_manager_unittest.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/mus/mus_client.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/mus/mus_client.cc View 1 2 3 4 5 1 chunk +11 lines, -4 lines 0 comments Download
M ui/views/mus/views_aura_mus_test_suite.cc View 1 3 chunks +9 lines, -1 line 0 comments Download
M ui/views/mus/views_mus_test_suite.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M ui/views/test/native_widget_factory.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/test/native_widget_factory.cc View 1 1 chunk +0 lines, -99 lines 0 comments Download
M ui/views/test/native_widget_factory_aura_mus.cc View 1 2 1 chunk +41 lines, -1 line 0 comments Download
M ui/views/test/native_widget_factory_desktop.cc View 1 2 3 4 5 2 chunks +25 lines, -40 lines 0 comments Download
M ui/views/test/native_widget_factory_mus.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
M ui/views/test/platform_test_helper.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/test/platform_test_helper.cc View 1 2 3 4 5 3 chunks +12 lines, -11 lines 0 comments Download
A ui/views/test/platform_test_helper_cocoa.mm View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
M ui/views/test/scoped_views_test_helper.h View 1 chunk +4 lines, -0 lines 0 comments Download
A ui/views/test/test_platform_native_widget.h View 1 2 3 4 5 6 1 chunk +73 lines, -0 lines 0 comments Download
M ui/views/test/test_views.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/test/views_test_base.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/test/views_test_base.cc View 1 1 chunk +8 lines, -4 lines 0 comments Download
M ui/views/test/views_test_helper_aura.cc View 1 2 3 4 5 4 chunks +29 lines, -12 lines 0 comments Download
M ui/views/test/widget_test.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/views/test/widget_test_aura.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M ui/views/test/widget_test_mac.mm View 1 chunk +0 lines, -9 lines 0 comments Download
M ui/views/touchui/touch_selection_controller_impl_unittest.cc View 1 2 3 4 5 13 chunks +52 lines, -0 lines 0 comments Download
M ui/views/touchui/touch_selection_menu_runner_views_unittest.cc View 5 chunks +18 lines, -7 lines 0 comments Download
M ui/views/view_unittest_aura.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura_interactive_uitest.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_mac_unittest.mm View 1 2 chunks +3 lines, -4 lines 0 comments Download
M ui/views/widget/native_widget_unittest.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/widget_interactive_uitest.cc View 1 2 chunks +9 lines, -0 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 3 4 5 16 chunks +66 lines, -28 lines 0 comments Download

Messages

Total messages: 27 (19 generated)
sky
4 years, 1 month ago (2016-11-10 23:00:05 UTC) #1
msw
The pervasive test early returns scare me a bit, but I don't have a great ...
4 years, 1 month ago (2016-11-11 00:29:25 UTC) #12
sky
Thanks for the great feedback! As to the number of tests being disabled I'm not ...
4 years, 1 month ago (2016-11-11 01:09:14 UTC) #17
msw
lgtm with nits. https://codereview.chromium.org/2488393003/diff/60001/ui/views/widget/widget_unittest.cc File ui/views/widget/widget_unittest.cc (right): https://codereview.chromium.org/2488393003/diff/60001/ui/views/widget/widget_unittest.cc#newcode313 ui/views/widget/widget_unittest.cc:313: if (!IsAuraMusClient()) On 2016/11/11 01:09:14, sky ...
4 years, 1 month ago (2016-11-11 01:25:40 UTC) #20
sky
I didn't feel strongly about the z-order test, so I left as is. https://codereview.chromium.org/2488393003/diff/100001/ui/views/test/test_platform_native_widget.h File ...
4 years, 1 month ago (2016-11-11 04:28:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2488393003/120001
4 years, 1 month ago (2016-11-11 04:29:33 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-11 05:35:49 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 05:44:46 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a178499ab5e3a157c30198dc94deed31104360d9
Cr-Commit-Position: refs/heads/master@{#431505}

Powered by Google App Engine
This is Rietveld 408576698