OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // WebKitTools/DumpRenderTree/ImageDiff.m | 6 // WebKitTools/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 |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 actual_image.Clear(); | 226 actual_image.Clear(); |
227 baseline_image.Clear(); | 227 baseline_image.Clear(); |
228 } | 228 } |
229 | 229 |
230 fflush(stdout); | 230 fflush(stdout); |
231 } | 231 } |
232 */ | 232 */ |
233 } | 233 } |
234 | 234 |
235 int main(int argc, const char* argv[]) { | 235 int main(int argc, const char* argv[]) { |
236 process_util::EnableTerminationOnHeapCorruption(); | 236 base::EnableTerminationOnHeapCorruption(); |
237 #if defined(OS_WIN) | 237 #if defined(OS_WIN) |
238 CommandLine parsed_command_line; | 238 CommandLine parsed_command_line; |
239 #elif defined(OS_POSIX) | 239 #elif defined(OS_POSIX) |
240 CommandLine parsed_command_line(argc, argv); | 240 CommandLine parsed_command_line(argc, argv); |
241 #endif | 241 #endif |
242 if (parsed_command_line.HasSwitch(kOptionPollStdin)) { | 242 if (parsed_command_line.HasSwitch(kOptionPollStdin)) { |
243 // Watch stdin for filenames. | 243 // Watch stdin for filenames. |
244 std::string stdin_buffer; | 244 std::string stdin_buffer; |
245 std::string filename1_buffer; | 245 std::string filename1_buffer; |
246 bool have_filename1 = false; | 246 bool have_filename1 = false; |
(...skipping 18 matching lines...) Expand all Loading... |
265 return 0; | 265 return 0; |
266 } | 266 } |
267 | 267 |
268 if (argc == 3) { | 268 if (argc == 3) { |
269 return CompareImages(argv[1], argv[2]); | 269 return CompareImages(argv[1], argv[2]); |
270 } | 270 } |
271 | 271 |
272 PrintHelp(); | 272 PrintHelp(); |
273 return kStatusError; | 273 return kStatusError; |
274 } | 274 } |
OLD | NEW |