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

Issue 1517463003: Added comprehensive tests for views::Border. (Closed)

Created:
5 years ago by Matt Giuca
Modified:
4 years, 6 months ago
Reviewers:
danakj, sadrul
CC:
chromium-reviews, tfarina, danakj, Ben Goodger (Google), chrome-apps-syd-reviews_chromium.org, calamity
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added comprehensive tests for views::Border. BUG=568389 Committed: https://crrev.com/92614dc154ad143a1ef9849ae0fe90c02df09f30 Committed: https://crrev.com/23a6dcc694a5d93d678c203dc834fb1b9dbd9fbf Cr-Original-Commit-Position: refs/heads/master@{#399650} Cr-Commit-Position: refs/heads/master@{#399852}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove use of evil GMock and instead hand-roll custom mock classes. #

Total comments: 4

Patch Set 3 : Respond to danakj review. #

Patch Set 4 : DISALLOW_COPY_AND_ASSIGN. #

Patch Set 5 : Re-enable test: I am landing the fix before this CL so it doesn't need to be disabled. #

Patch Set 6 : Rebase. #

Patch Set 7 : Rebase. #

Patch Set 8 : Rebase. #

Total comments: 10

Patch Set 9 : Rebase. #

Patch Set 10 : Fix compile errors due to upstream changes. #

Patch Set 11 : Respond to sadrul review. #

Patch Set 12 : Rebase. #

Total comments: 6

Patch Set 13 : Added note. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -0 lines) Patch
A ui/views/border_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +255 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 51 (15 generated)
Matt Giuca
+tfarina, danakj and ben FYI about allowing GMock in ui/views. As I said on the ...
5 years ago (2015-12-10 02:25:07 UTC) #3
Matt Giuca
5 years ago (2015-12-10 02:25:29 UTC) #4
tapted
drive-by: FWIW I don't like gmock. The tests are hard to read (i.e. both the ...
5 years ago (2015-12-10 02:42:15 UTC) #5
sadrul
On 2015/12/10 02:42:15, tapted wrote: > drive-by: FWIW I don't like gmock. The tests are ...
5 years ago (2015-12-10 02:50:13 UTC) #6
Matt Giuca
On 2015/12/10 02:50:13, sadrul wrote: > On 2015/12/10 02:42:15, tapted wrote: > > drive-by: FWIW ...
5 years ago (2015-12-10 03:32:57 UTC) #7
Matt Giuca
On 2015/12/10 03:32:57, Matt Giuca wrote: > On 2015/12/10 02:50:13, sadrul wrote: > > On ...
5 years ago (2015-12-10 04:23:34 UTC) #8
Matt Giuca
PTAL. For the record, I am strongly opposed to the changes of Patch Set 2. ...
5 years ago (2015-12-10 06:10:17 UTC) #10
danakj
PS1 looks good. It tests that the border code calls the right things on Canvas. ...
5 years ago (2015-12-10 20:01:27 UTC) #12
Matt Giuca
On 2015/12/10 20:01:27, danakj (behind on reviews) wrote: > PS2 is near unreadable. I'm not ...
5 years ago (2015-12-11 00:03:21 UTC) #13
danakj
On Thu, Dec 10, 2015 at 4:03 PM, <mgiuca@chromium.org> wrote: > On 2015/12/10 20:01:27, danakj ...
5 years ago (2015-12-11 00:14:18 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1517463003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1517463003/100001
5 years ago (2015-12-13 23:32:28 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-14 03:23:45 UTC) #18
Matt Giuca
Hi Sadrul, Can you comment on this? I wrote a version with gmock, and you ...
4 years, 11 months ago (2016-01-07 03:19:24 UTC) #20
sadrul
> Hi Sadrul, > > Can you comment on this? I wrote a version with ...
4 years, 11 months ago (2016-01-08 21:27:54 UTC) #21
danakj
On Fri, Jan 8, 2016 at 1:27 PM, <sadrul@chromium.org> wrote: > Hi Sadrul, >> > ...
4 years, 11 months ago (2016-01-08 21:33:42 UTC) #22
Matt Giuca
On 2016/01/08 21:27:54, sadrul wrote: > > Hi Sadrul, > > > > Can you ...
4 years, 11 months ago (2016-01-11 00:00:00 UTC) #23
Matt Giuca
Hi Sadrul, This has been sitting around for months. Are you able to comment on ...
4 years, 7 months ago (2016-05-23 07:23:39 UTC) #24
sadrul
On 2016/01/11 00:00:00, Matt Giuca wrote: > On 2016/01/08 21:27:54, sadrul wrote: > > > ...
4 years, 7 months ago (2016-05-24 20:29:09 UTC) #25
Matt Giuca
On 2016/05/24 20:29:09, sadrul wrote: > > Any regression to those methods. I don't write ...
4 years, 7 months ago (2016-05-26 07:01:31 UTC) #26
sadrul
On 2016/05/26 07:01:31, Matt Giuca wrote: > On 2016/05/24 20:29:09, sadrul wrote: > > > ...
4 years, 6 months ago (2016-05-31 17:31:31 UTC) #27
Matt Giuca
Thanks. https://codereview.chromium.org/1517463003/diff/160001/ui/views/border_unittest.cc File ui/views/border_unittest.cc (right): https://codereview.chromium.org/1517463003/diff/160001/ui/views/border_unittest.cc#newcode1 ui/views/border_unittest.cc:1: // Copyright 2015 The Chromium Authors. All rights ...
4 years, 6 months ago (2016-06-03 03:38:42 UTC) #28
sadrul
https://codereview.chromium.org/1517463003/diff/240001/ui/views/border_unittest.cc File ui/views/border_unittest.cc (right): https://codereview.chromium.org/1517463003/diff/240001/ui/views/border_unittest.cc#newcode71 ui/views/border_unittest.cc:71: return std::vector<DrawRRectCall>(draw_rrect_calls_.begin(), Does this automatically sort the vector? https://codereview.chromium.org/1517463003/diff/240001/ui/views/border_unittest.cc#newcode166 ...
4 years, 6 months ago (2016-06-08 16:02:55 UTC) #29
sadrul
(also, make sure to update the CL description, and the BUG list)
4 years, 6 months ago (2016-06-08 16:07:27 UTC) #30
Matt Giuca
> (also, make sure to update the CL description, and the BUG list) Done. https://codereview.chromium.org/1517463003/diff/240001/ui/views/border_unittest.cc ...
4 years, 6 months ago (2016-06-09 01:49:38 UTC) #32
sadrul
lgtm https://codereview.chromium.org/1517463003/diff/240001/ui/views/border_unittest.cc File ui/views/border_unittest.cc (right): https://codereview.chromium.org/1517463003/diff/240001/ui/views/border_unittest.cc#newcode166 ui/views/border_unittest.cc:166: EXPECT_EQ(SkRect::MakeLTRB(0, 0, 100, 3), draw_rect_calls[0].rect); On 2016/06/09 01:49:38, ...
4 years, 6 months ago (2016-06-13 00:47:38 UTC) #33
Matt Giuca
https://codereview.chromium.org/1517463003/diff/240001/ui/views/border_unittest.cc File ui/views/border_unittest.cc (right): https://codereview.chromium.org/1517463003/diff/240001/ui/views/border_unittest.cc#newcode166 ui/views/border_unittest.cc:166: EXPECT_EQ(SkRect::MakeLTRB(0, 0, 100, 3), draw_rect_calls[0].rect); On 2016/06/13 00:47:38, sadrul ...
4 years, 6 months ago (2016-06-14 04:39:02 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1517463003/260001
4 years, 6 months ago (2016-06-14 04:39:26 UTC) #36
commit-bot: I haz the power
Committed patchset #13 (id:260001)
4 years, 6 months ago (2016-06-14 06:28:50 UTC) #38
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-14 06:28:53 UTC) #39
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/92614dc154ad143a1ef9849ae0fe90c02df09f30 Cr-Commit-Position: refs/heads/master@{#399650}
4 years, 6 months ago (2016-06-14 06:31:17 UTC) #41
Zhen Wang
A revert of this CL (patchset #13 id:260001) has been created in https://codereview.chromium.org/2060983004/ by zhenw@chromium.org. ...
4 years, 6 months ago (2016-06-14 15:18:07 UTC) #42
Matt Giuca
See bug comment #6. My CL clearly didn't break this builder. Re-landing.
4 years, 6 months ago (2016-06-15 06:06:22 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1517463003/260001
4 years, 6 months ago (2016-06-15 06:06:42 UTC) #46
commit-bot: I haz the power
Committed patchset #13 (id:260001)
4 years, 6 months ago (2016-06-15 06:43:20 UTC) #48
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-15 06:43:33 UTC) #49
commit-bot: I haz the power
4 years, 6 months ago (2016-06-15 06:46:28 UTC) #51
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/23a6dcc694a5d93d678c203dc834fb1b9dbd9fbf
Cr-Commit-Position: refs/heads/master@{#399852}

Powered by Google App Engine
This is Rietveld 408576698