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

Unified Diff: chrome/browser/printing/printing_layout_uitest.cc

Issue 8038024: ui/gfx: Add ToString() function to Size class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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
« no previous file with comments | « no previous file | printing/page_setup_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/printing_layout_uitest.cc
diff --git a/chrome/browser/printing/printing_layout_uitest.cc b/chrome/browser/printing/printing_layout_uitest.cc
index a3917c5d55844c9878d6a5ea06fcf63b2059d0ca..0786a729989a8f124c938c3d1a87519b86046c6f 100644
--- a/chrome/browser/printing/printing_layout_uitest.cc
+++ b/chrome/browser/printing/printing_layout_uitest.cc
@@ -86,9 +86,9 @@ class PrintingLayoutTest : public PrintingTest<UITest> {
Image png_content(png);
double diff_emf = emf_content.PercentageDifferent(test_content);
- EXPECT_EQ(0., diff_emf) << verification_name <<
- L" original size:" << emf_content.size() <<
- L" result size:" << test_content.size();
+ EXPECT_EQ(0., diff_emf) << WideToUTF8(verification_name) <<
+ " original size:" << emf_content.size().ToString() <<
+ " result size:" << test_content.size().ToString();
if (diff_emf) {
// Backup the result emf file.
file_util::CopyFile(test_result, FilePath(
@@ -98,9 +98,9 @@ class PrintingLayoutTest : public PrintingTest<UITest> {
// This verification is only to know that the EMF rendering stays
// immutable.
double diff_png = emf_content.PercentageDifferent(png_content);
- EXPECT_EQ(0., diff_png) << verification_name <<
- L" original size:" << emf_content.size() <<
- L" result size:" << test_content.size();
+ EXPECT_EQ(0., diff_png) << WideToUTF8(verification_name) <<
+ " original size:" << emf_content.size().ToString() <<
+ " result size:" << test_content.size().ToString();
if (diff_png) {
// Backup the rendered emf file to detect the rendering difference.
emf_content.SaveToPng(FilePath(verification_file + L"_rendering.png"));
« no previous file with comments | « no previous file | printing/page_setup_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698