DescriptionRe-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 #
Messages
Total messages: 8 (3 generated)
|