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

Issue 1313283002: Re-introduce printers for Node, Position, PositionAnchorType in GTest (Closed)

Created:
5 years, 4 months ago by yosin_UTC9
Modified:
5 years, 4 months ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Re-introduce printers for Node, Position, PositionAnchorType in GTest This patch is inspired by http://crrev.com/1257203002, which makes printer for |WTFString| in GTest. This patch re-introduces printers for Node, Position and PositionAnchorType in GTest rather than printing address of pointer by fixing ODR violation for improving test authoring experience. In http://crrev.com/1095913003, we introduced |Node| and |Position| printers for GTest in "CoreTestHelpers.h". However, due by ODR violation, these printers aren't used in GTest, since some test files uses |Node| as parameters for GTest macros without including "CoreTestHelpers.h". Note: ODR stands for One Definition Rule. See details explanation in http://crrev.com/1257203002. BUG=514330 TEST=webkit_unit_tests --gtest_fitler=EditingUtilitiesTest.*,VisibleUnitsTest.* Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201207

Patch Set 1 : 2015-08-26T13:32:00 #

Total comments: 4

Patch Set 2 : 2015-08-26T14:32:13 Add comments for printers which are only for testing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -124 lines) Patch
M Source/core/core.gypi View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/dom/Node.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/editing/EditingTestBase.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/editing/Position.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/input/EventHandlerTest.cpp View 1 chunk +0 lines, -1 line 0 comments Download
D Source/core/testing/CoreTestHelpers.h View 1 chunk +0 lines, -22 lines 0 comments Download
D Source/core/testing/CoreTestHelpers.cpp View 1 chunk +0 lines, -97 lines 0 comments Download
A + Source/core/testing/CoreTestPrinters.cpp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
yosin_UTC9
PTAL
5 years, 4 months ago (2015-08-26 05:02:42 UTC) #2
tkent
lgtm https://codereview.chromium.org/1313283002/diff/1/Source/core/dom/Node.h File Source/core/dom/Node.h (right): https://codereview.chromium.org/1313283002/diff/1/Source/core/dom/Node.h#newcode900 Source/core/dom/Node.h:900: std::ostream& operator<<(std::ostream&, const Node&); Please add a comment ...
5 years, 4 months ago (2015-08-26 05:08:37 UTC) #3
yosin_UTC9
Thanks for reviewing! https://codereview.chromium.org/1313283002/diff/1/Source/core/dom/Node.h File Source/core/dom/Node.h (right): https://codereview.chromium.org/1313283002/diff/1/Source/core/dom/Node.h#newcode900 Source/core/dom/Node.h:900: std::ostream& operator<<(std::ostream&, const Node&); On 2015/08/26 ...
5 years, 4 months ago (2015-08-26 05:36:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1313283002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1313283002/20001
5 years, 4 months ago (2015-08-26 05:37:04 UTC) #7
commit-bot: I haz the power
5 years, 4 months ago (2015-08-26 06:46:41 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201207

Powered by Google App Engine
This is Rietveld 408576698