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

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

Issue 2850042: Deprecate more old filepath functions. (Closed)
Patch Set: rebase Created 10 years, 5 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: 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 5cfe387c45c3505e1126e31a5aecce02b0096367..501a7b354bdfbe4fcafaa4537b9ee1d3d84618af 100644
--- a/chrome/browser/printing/printing_layout_uitest.cc
+++ b/chrome/browser/printing/printing_layout_uitest.cc
@@ -80,15 +80,15 @@ class PrintingLayoutTest : public PrintingTest<UITest> {
if (GenerateFiles()) {
// Copy the .emf and generate an .png.
file_util::CopyFile(test_result, emf);
- Image emf_content(emf.value());
+ Image emf_content(emf);
emf_content.SaveToPng(png);
// Saving is always fine.
return 0;
} else {
// File compare between test and result.
- Image emf_content(emf.value());
- Image test_content(test_result.value());
- Image png_content(png.value());
+ Image emf_content(emf);
+ Image test_content(test_result);
+ Image png_content(png);
double diff_emf = emf_content.PercentageDifferent(test_content);
EXPECT_EQ(0., diff_emf) << verification_name <<

Powered by Google App Engine
This is Rietveld 408576698