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

Side by Side Diff: webkit/tools/test_shell/test_shell.h

Issue 180033: Implement layoutTestController.display() method.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Prettify. Created 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 // Writes the back-forward list data for this test shell into result. 206 // Writes the back-forward list data for this test shell into result.
207 void DumpBackForwardList(std::wstring* result); 207 void DumpBackForwardList(std::wstring* result);
208 208
209 // Dumps the output from given test as text and/or image depending on 209 // Dumps the output from given test as text and/or image depending on
210 // the flags set. 210 // the flags set.
211 static void Dump(TestShell* shell); 211 static void Dump(TestShell* shell);
212 212
213 // Writes the image captured from the given web frame to the given file. 213 // Writes the image captured from the given web frame to the given file.
214 // The returned string is the ASCII-ized MD5 sum of the image. 214 // The returned string is the ASCII-ized MD5 sum of the image.
215 static std::string DumpImage(WebView* view, 215 static std::string DumpImage(skia::PlatformCanvas* canvas,
216 const std::wstring& file_name, 216 const std::wstring& file_name,
217 const std::string& pixel_hash); 217 const std::string& pixel_hash);
218 218
219 static void ResetWebPreferences(); 219 static void ResetWebPreferences();
220 220
221 static void SetAllowScriptsToCloseWindows(); 221 static void SetAllowScriptsToCloseWindows();
222 222
223 WebPreferences* GetWebPreferences() { return web_prefs_; } 223 WebPreferences* GetWebPreferences() { return web_prefs_; }
224 224
225 // Some layout tests hardcode a file:///tmp/LayoutTests URL. We get around 225 // Some layout tests hardcode a file:///tmp/LayoutTests URL. We get around
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 #if defined(OS_WIN) 344 #if defined(OS_WIN)
345 // Used by the watchdog to know when it's finished. 345 // Used by the watchdog to know when it's finished.
346 HANDLE finished_event_; 346 HANDLE finished_event_;
347 #endif 347 #endif
348 348
349 // Dump the stats table counters on exit. 349 // Dump the stats table counters on exit.
350 bool dump_stats_table_on_exit_; 350 bool dump_stats_table_on_exit_;
351 }; 351 };
352 352
353 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 353 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/layout_test_controller.cc ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698