| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |