| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // 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 <vector> | 12 #include <vector> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <iostream> | 14 #include <iostream> |
| 15 | 15 |
| 16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 FilePath(args[1]), | 371 FilePath(args[1]), |
| 372 FilePath(args[2])); | 372 FilePath(args[2])); |
| 373 } | 373 } |
| 374 } else if (args.size() == 2) { | 374 } else if (args.size() == 2) { |
| 375 return CompareImages(FilePath(args[0]), FilePath(args[1])); | 375 return CompareImages(FilePath(args[0]), FilePath(args[1])); |
| 376 } | 376 } |
| 377 | 377 |
| 378 PrintHelp(); | 378 PrintHelp(); |
| 379 return kStatusError; | 379 return kStatusError; |
| 380 } | 380 } |
| OLD | NEW |