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

Issue 2966343002: Port NotificationViewMD unit tests from NotificationViewTest. (Closed)

Created:
3 years, 5 months ago by tetsui
Modified:
3 years, 5 months ago
Reviewers:
yoshiki, fukino
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Port NotificationViewMD unit tests from NotificationViewTest. Ported unit tests from NotificationViewTest and created NotificationViewMDTest. Also fixed bugs and check failures found during porting the tests. * Fix RemoveChildView null checking. (CHECK fails on debug builds.) * Fix action button hover state inheritance. Following tests are not ported from NotificationViewTest, mostly because the feature is unimplemented or the test is not applicable. * CreateOrUpdateTestSettingsButton * TestLineLimits * TestImageSizing * SettingsButtonTest * ViewOrderingTest * FormatContextMessageTest BUG=733948 TEST=out/Debug/message_center_unittests Review-Url: https://codereview.chromium.org/2966343002 Cr-Commit-Position: refs/heads/master@{#484851} Committed: https://chromium.googlesource.com/chromium/src/+/9a4a1121fae26a1727728888a41975bc15e3e62f

Patch Set 1 #

Patch Set 2 : Added Slide tests. #

Total comments: 10

Patch Set 3 : Fix nits. #

Total comments: 12

Patch Set 4 : Resolve nits. #

Patch Set 5 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+547 lines, -11 lines) Patch
M ui/message_center/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ui/message_center/views/notification_view_md.h View 1 chunk +7 lines, -0 lines 0 comments Download
M ui/message_center/views/notification_view_md.cc View 1 2 3 4 12 chunks +38 lines, -11 lines 0 comments Download
A ui/message_center/views/notification_view_md_unittest.cc View 1 2 3 1 chunk +501 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (21 generated)
tetsui
Please take a look. Thanks!
3 years, 5 months ago (2017-07-06 03:49:24 UTC) #12
fukino
lgtm with nits https://codereview.chromium.org/2966343002/diff/20001/ui/message_center/views/notification_view_md.cc File ui/message_center/views/notification_view_md.cc (right): https://codereview.chromium.org/2966343002/diff/20001/ui/message_center/views/notification_view_md.cc#newcode497 ui/message_center/views/notification_view_md.cc:497: if (title_view_ != nullptr) nit: "if ...
3 years, 5 months ago (2017-07-06 12:44:11 UTC) #15
tetsui
fukino@: Thanks! yoshiki@: PTAL for OWNERS review. https://codereview.chromium.org/2966343002/diff/20001/ui/message_center/views/notification_view_md.cc File ui/message_center/views/notification_view_md.cc (right): https://codereview.chromium.org/2966343002/diff/20001/ui/message_center/views/notification_view_md.cc#newcode497 ui/message_center/views/notification_view_md.cc:497: if (title_view_ ...
3 years, 5 months ago (2017-07-07 01:52:41 UTC) #17
yoshiki
lgtm nits. I'm ooo today, so please feel free to submit it after addressing these ...
3 years, 5 months ago (2017-07-07 02:48:30 UTC) #19
tetsui
yoshiki@: Thanks! https://codereview.chromium.org/2966343002/diff/40001/ui/message_center/views/notification_view_md_unittest.cc File ui/message_center/views/notification_view_md_unittest.cc (right): https://codereview.chromium.org/2966343002/diff/40001/ui/message_center/views/notification_view_md_unittest.cc#newcode55 ui/message_center/views/notification_view_md_unittest.cc:55: Notification* notification() { return notification_.get(); } On ...
3 years, 5 months ago (2017-07-07 04:29:05 UTC) #22
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/2966343002/80001
3 years, 5 months ago (2017-07-07 06:10:14 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/9a4a1121fae26a1727728888a41975bc15e3e62f
3 years, 5 months ago (2017-07-07 07:27:31 UTC) #28
mastiz
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2965353002/ by mastiz@chromium.org. ...
3 years, 5 months ago (2017-07-07 12:45:16 UTC) #29
findit-for-me
3 years, 5 months ago (2017-07-08 18:34:22 UTC) #30
Message was sent while issue was closed.
Findit (https://goo.gl/kROfz5) identified this CL at revision 484851 as the
culprit for
failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

Powered by Google App Engine
This is Rietveld 408576698