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

Side by Side Diff: tools/imagediff/image_diff.cc

Issue 560883003: Cleanup: Use base/files/file_util.h instead of base/file_util.h in [r-t]*/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « tools/gn/trace.cc ('k') | tools/perf/clear_system_cache/clear_system_cache_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file input format is based loosely on 5 // This file input format is based loosely on
6 // Tools/DumpRenderTree/ImageDiff.m 6 // Tools/DumpRenderTree/ImageDiff.m
7 7
8 // The exact format of this tool's output to stdout is important, to match 8 // The exact format of this tool's output to stdout is important, to match
9 // what the run-webkit-tests script expects. 9 // what the run-webkit-tests script expects.
10 10
11 #include <algorithm> 11 #include <algorithm>
12 #include <iostream> 12 #include <iostream>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/basictypes.h" 16 #include "base/basictypes.h"
17 #include "base/command_line.h" 17 #include "base/command_line.h"
18 #include "base/containers/hash_tables.h" 18 #include "base/containers/hash_tables.h"
19 #include "base/file_util.h"
20 #include "base/files/file_path.h" 19 #include "base/files/file_path.h"
20 #include "base/files/file_util.h"
21 #include "base/logging.h" 21 #include "base/logging.h"
22 #include "base/memory/scoped_ptr.h" 22 #include "base/memory/scoped_ptr.h"
23 #include "base/numerics/safe_conversions.h" 23 #include "base/numerics/safe_conversions.h"
24 #include "base/process/memory.h" 24 #include "base/process/memory.h"
25 #include "base/strings/string_util.h" 25 #include "base/strings/string_util.h"
26 #include "base/strings/utf_string_conversions.h" 26 #include "base/strings/utf_string_conversions.h"
27 #include "tools/imagediff/image_diff_png.h" 27 #include "tools/imagediff/image_diff_png.h"
28 28
29 #if defined(OS_WIN) 29 #if defined(OS_WIN)
30 #include "windows.h" 30 #include "windows.h"
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 base::FilePath(args[2])); 440 base::FilePath(args[2]));
441 } 441 }
442 } else if (args.size() == 2) { 442 } else if (args.size() == 2) {
443 return CompareImages( 443 return CompareImages(
444 base::FilePath(args[0]), base::FilePath(args[1]), histograms); 444 base::FilePath(args[0]), base::FilePath(args[1]), histograms);
445 } 445 }
446 446
447 PrintHelp(); 447 PrintHelp();
448 return kStatusError; 448 return kStatusError;
449 } 449 }
OLDNEW
« no previous file with comments | « tools/gn/trace.cc ('k') | tools/perf/clear_system_cache/clear_system_cache_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698