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

Issue 1254963010: [Views] Move modality tests from widget_unittest.cc to desktop_native_widget_aura_unittest.cc. (Closed)

Created:
5 years, 4 months ago by jackhou1
Modified:
5 years, 4 months ago
Reviewers:
tapted, sky
CC:
chromium-reviews, tfarina, tdanderson+views_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Views] Move modality tests from widget_unittest.cc to desktop_native_widget_aura_unittest.cc. These tests were both under USE_AURA when they were originally added (r226609 and r227041): WindowMouseModalityTest WindowModalityActivationTest Later, Aura became implied with Views (r255976). With MacViews, we could if-def these out again, but since they're also if-def'd out on OS_CHROMEOS, move them to desktop_native_widget_aura_unittest.cc. This also moves TestDesktopWidgetDelegate to widget_test.h and EventCountView to test_views.h. BUG=378134 Committed: https://crrev.com/480a2ab448e9a1972a6f1bee9746946a375fb797 Cr-Commit-Position: refs/heads/master@{#341638}

Patch Set 1 #

Patch Set 2 : Fix compile. Move EventCountView to test_views. #

Patch Set 3 : Fix Win. #

Total comments: 6

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -248 lines) Patch
M ui/views/test/test_views.h View 1 1 chunk +38 lines, -0 lines 0 comments Download
M ui/views/test/test_views.cc View 1 1 chunk +42 lines, -0 lines 0 comments Download
M ui/views/test/widget_test.h View 1 2 2 chunks +40 lines, -0 lines 0 comments Download
M ui/views/test/widget_test.cc View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc View 1 2 2 chunks +128 lines, -0 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 3 4 chunks +0 lines, -248 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
jackhou1
tapted, PTAL
5 years, 4 months ago (2015-08-03 00:06:34 UTC) #2
tapted
lgtm TestDesktopWidgetDelegate should maybe be in its own file, but maybe there's a plus in ...
5 years, 4 months ago (2015-08-03 01:10:46 UTC) #3
jackhou1
https://codereview.chromium.org/1254963010/diff/40001/ui/views/test/widget_test.cc File ui/views/test/widget_test.cc (right): https://codereview.chromium.org/1254963010/diff/40001/ui/views/test/widget_test.cc#newcode123 ui/views/test/widget_test.cc:123: // Initialize the Widget, adding some meaningful default InitParams. ...
5 years, 4 months ago (2015-08-03 05:09:50 UTC) #4
jackhou1
sky, please review for OWNERS
5 years, 4 months ago (2015-08-03 07:06:53 UTC) #6
sky
LGTM
5 years, 4 months ago (2015-08-03 14:50:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1254963010/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1254963010/60001
5 years, 4 months ago (2015-08-03 23:11:27 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 4 months ago (2015-08-03 23:18:03 UTC) #11
commit-bot: I haz the power
5 years, 4 months ago (2015-08-03 23:18:53 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/480a2ab448e9a1972a6f1bee9746946a375fb797
Cr-Commit-Position: refs/heads/master@{#341638}

Powered by Google App Engine
This is Rietveld 408576698