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

Side by Side Diff: chrome/tools/test/image_diff/image_diff.cc

Issue 10895: Add Terminate() to the Process object, have RenderProcessHost use this to avo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/tools/profiles/generate_profile.cc ('k') | net/tools/tld_cleanup/tld_cleanup.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) 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/tools/profiles/generate_profile.cc ('k') | net/tools/tld_cleanup/tld_cleanup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698