|
|
Fix ODR violation that can break WTF::String pretty printing in tests.
WTF::String's operator<< was declared in a separate header, presumably
to prevent non-test code from depending on it. Unfortunately, this
resulted in ODR violations, since tests that forgot to include this
header would have a different template instantiation of gtest's
DefaultPrintNonContainerTo() vs tests that did remember to include it.
Rather than forcing tests to remember a non-obvious dependency that can
implicitly introduced with no warning, operator<< has been moved to the
same header where WTF::String is declared. In order to prevent it from
being used outside tests, operator<< is still only defined in the test
support library.
BUG= 514330
TBR=yhirano@chromium.org
Committed: https://crrev.com/37e7fd401a4ef48a6ce0e0342675e3629a177309
git-svn-id: svn://svn.chromium.org/blink/trunk@199609 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Total comments: 1
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+7 lines, -216 lines) |
Patch |
 |
M |
Source/core/dom/DocumentMarkerControllerTest.cpp
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/dom/shadow/ComposedTreeTraversalTest.cpp
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/editing/FrameSelectionTest.cpp
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/editing/GranularityStrategyTest.cpp
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/testing/CoreTestHelpers.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/modules/websockets/DOMWebSocketTest.cpp
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/platform/network/HTTPParsersTest.cpp
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/platform/weborigin/DatabaseIdentifierTest.cpp
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/platform/weborigin/KURLTest.cpp
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
D |
Source/wtf/testing/WTFTestHelpers.h
|
View
|
|
1 chunk |
+0 lines, -45 lines |
0 comments
|
Download
|
 |
D |
Source/wtf/testing/WTFTestHelpers.cpp
|
View
|
|
1 chunk |
+0 lines, -83 lines |
0 comments
|
Download
|
 |
D |
Source/wtf/testing/WTFTestHelpersTest.cpp
|
View
|
|
1 chunk |
+0 lines, -71 lines |
0 comments
|
Download
|
 |
A + |
Source/wtf/testing/WTFTestPrinters.cpp
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
A + |
Source/wtf/testing/WTFTestPrintersTest.cpp
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/wtf/text/StringBuilderTest.cpp
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/wtf/text/WTFString.h
|
View
|
1
2
|
2 chunks |
+5 lines, -0 lines |
1 comment
|
Download
|
 |
M |
Source/wtf/wtf.gypi
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
Total messages: 18 (4 generated)
|