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

Issue 774763004: Use EXPECT_EQ when possible. (Closed)

Created:
6 years ago by hush (inactive)
Modified:
6 years ago
Reviewers:
danakj, jamesr
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Use EXPECT_EQ when possible. EXPECT_RECT_EQ, EXPECT_SIZE_EQ, EXPECT_POINT_EQ, EXPECT_POINT3F_EQ could be replaced by EXPECT_EQ. Follow up of https://codereview.chromium.org/751453005/ Committed: https://crrev.com/6b61421f5b702f90617ffeff3ed83ab044c55ad9 Cr-Commit-Position: refs/heads/master@{#306913}

Patch Set 1 #

Total comments: 5

Patch Set 2 : put EXPECT_POINT3F_EQ back. #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -303 lines) Patch
M cc/animation/scrollbar_animation_controller_linear_fade_unittest.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M cc/animation/scrollbar_animation_controller_thinning_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M cc/base/tiling_data_unittest.cc View 6 chunks +46 lines, -52 lines 0 comments Download
M cc/blink/web_layer_impl_fixed_bounds_unittest.cc View 2 1 chunk +2 lines, -3 lines 0 comments Download
M cc/layers/nine_patch_layer_impl_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/layers/render_surface_unittest.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 7 chunks +13 lines, -13 lines 0 comments Download
M cc/layers/tiled_layer_unittest.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/quads/draw_polygon_unittest.cc View 1 chunk +1 line, -6 lines 0 comments Download
M cc/quads/draw_quad_unittest.cc View 14 chunks +24 lines, -24 lines 0 comments Download
M cc/quads/render_pass_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M cc/test/geometry_test_utils.h View 2 1 chunk +0 lines, -27 lines 0 comments Download
M cc/test/layer_tree_json_parser_unittest.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 25 chunks +112 lines, -127 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 6 chunks +11 lines, -12 lines 0 comments Download
M cc/trees/layer_tree_impl_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
hush (inactive)
PTAL If I understand correctly, EXPECT_EQ is templated and will call the operator== of the ...
6 years ago (2014-12-04 19:30:04 UTC) #2
danakj
LGTM ! ! if there's no bug, remove the BUG= line please https://codereview.chromium.org/774763004/diff/1/cc/test/geometry_test_utils.h File cc/test/geometry_test_utils.h ...
6 years ago (2014-12-04 19:34:29 UTC) #3
hush (inactive)
https://codereview.chromium.org/774763004/diff/1/cc/test/geometry_test_utils.h File cc/test/geometry_test_utils.h (left): https://codereview.chromium.org/774763004/diff/1/cc/test/geometry_test_utils.h#oldcode52 cc/test/geometry_test_utils.h:52: #define EXPECT_POINT3F_EQ(expected, actual) \ On second thought, I need ...
6 years ago (2014-12-04 20:10:18 UTC) #4
danakj
https://codereview.chromium.org/774763004/diff/1/cc/test/geometry_test_utils.h File cc/test/geometry_test_utils.h (left): https://codereview.chromium.org/774763004/diff/1/cc/test/geometry_test_utils.h#oldcode52 cc/test/geometry_test_utils.h:52: #define EXPECT_POINT3F_EQ(expected, actual) \ On 2014/12/04 20:10:18, hush wrote: ...
6 years ago (2014-12-04 20:13:19 UTC) #5
jamesr
What does the failure output look like?
6 years ago (2014-12-04 20:21:50 UTC) #7
hush (inactive)
On 2014/12/04 20:21:50, jamesr wrote: > What does the failure output look like? You mean ...
6 years ago (2014-12-04 20:24:51 UTC) #8
jamesr
No, I mean if the rect doesn't actually match what does the failure output of ...
6 years ago (2014-12-04 20:44:38 UTC) #9
jamesr
Ah, Dana says this'll work thanks to the ToString() functions in gfx (which I added ...
6 years ago (2014-12-04 21:12:37 UTC) #10
hush (inactive)
On 2014/12/04 21:12:37, jamesr wrote: > Ah, Dana says this'll work thanks to the ToString() ...
6 years ago (2014-12-04 21:43:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/774763004/40001
6 years ago (2014-12-04 21:44:30 UTC) #13
jamesr
On 2014/12/04 21:43:09, hush wrote: > On 2014/12/04 21:12:37, jamesr wrote: > > Ah, Dana ...
6 years ago (2014-12-04 21:49:46 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years ago (2014-12-04 22:37:44 UTC) #15
commit-bot: I haz the power
6 years ago (2014-12-04 22:38:34 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6b61421f5b702f90617ffeff3ed83ab044c55ad9
Cr-Commit-Position: refs/heads/master@{#306913}

Powered by Google App Engine
This is Rietveld 408576698