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

Unified Diff: third_party/WebKit/Source/platform/testing/PictureMatchers.cpp

Issue 2267183003: Switch from PrintTo to operator<< for platform printers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/testing/PictureMatchers.cpp
diff --git a/third_party/WebKit/Source/platform/testing/PictureMatchers.cpp b/third_party/WebKit/Source/platform/testing/PictureMatchers.cpp
index 5b84442d9babee1bb297df6a1b075b02b5206022..93b1aca25078c79735d2107f74abb39fc32e7060 100644
--- a/third_party/WebKit/Source/platform/testing/PictureMatchers.cpp
+++ b/third_party/WebKit/Source/platform/testing/PictureMatchers.cpp
@@ -50,8 +50,7 @@ public:
const FloatQuad& quad = quads[0].first;
if (!quad.isRectilinear()) {
if (listener->IsInterested()) {
- *listener << "which draws ";
- PrintTo(quad, listener->stream());
+ *listener << "which draws " << quad;
*listener << " with color " << quads[0].second.serialized().ascii().data();
}
return false;
@@ -60,8 +59,7 @@ public:
const FloatRect& rect = quad.boundingBox();
if (rect != m_rect || quads[0].second != m_color) {
if (listener->IsInterested()) {
- *listener << "which draws ";
- PrintTo(rect, listener->stream());
+ *listener << "which draws " << rect;
*listener << " with color " << quads[0].second.serialized().ascii().data();
}
return false;
@@ -72,9 +70,7 @@ public:
void DescribeTo(::std::ostream* os) const override
{
- *os << "draws ";
- PrintTo(m_rect, os);
- *os << " with color " << m_color.serialized().ascii().data();
+ *os << "draws " << m_rect << " with color " << m_color.serialized().ascii().data();
}
private:

Powered by Google App Engine
This is Rietveld 408576698