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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 // Writes the back-forward list data for this test shell into result. | 227 // Writes the back-forward list data for this test shell into result. |
228 void DumpBackForwardList(string16* result); | 228 void DumpBackForwardList(string16* result); |
229 | 229 |
230 static void ResetWebPreferences(); | 230 static void ResetWebPreferences(); |
231 | 231 |
232 static void SetAllowScriptsToCloseWindows(); | 232 static void SetAllowScriptsToCloseWindows(); |
233 | 233 |
234 static void SetAccelerated2dCanvasEnabled(bool enabled); | 234 static void SetAccelerated2dCanvasEnabled(bool enabled); |
235 static void SetAcceleratedCompositingEnabled(bool enabled); | 235 static void SetAcceleratedCompositingEnabled(bool enabled); |
236 | 236 |
237 WebPreferences* GetWebPreferences() { return web_prefs_; } | 237 static WebPreferences* GetWebPreferences(); |
238 | 238 |
239 // Some layout tests hardcode a file:///tmp/LayoutTests URL. We get around | 239 // Some layout tests hardcode a file:///tmp/LayoutTests URL. We get around |
240 // this by substituting "tmp" with the path to the LayoutTests parent dir. | 240 // this by substituting "tmp" with the path to the LayoutTests parent dir. |
241 static std::string RewriteLocalUrl(const std::string& url); | 241 static std::string RewriteLocalUrl(const std::string& url); |
242 | 242 |
243 // Set the timeout for running a test. | 243 // Set the timeout for running a test. |
244 static void SetFileTestTimeout(int timeout_ms) { | 244 static void SetFileTestTimeout(int timeout_ms) { |
245 file_test_timeout_ms_ = timeout_ms; | 245 file_test_timeout_ms_ = timeout_ms; |
246 } | 246 } |
247 | 247 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 #if defined(OS_WIN) | 430 #if defined(OS_WIN) |
431 // Used by the watchdog to know when it's finished. | 431 // Used by the watchdog to know when it's finished. |
432 HANDLE finished_event_; | 432 HANDLE finished_event_; |
433 #endif | 433 #endif |
434 | 434 |
435 // Dump the stats table counters on exit. | 435 // Dump the stats table counters on exit. |
436 bool dump_stats_table_on_exit_; | 436 bool dump_stats_table_on_exit_; |
437 }; | 437 }; |
438 | 438 |
439 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ | 439 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ |
OLD | NEW |