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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 virtual void BindJSObjectsToWindow(WebKit::WebFrame* frame); | 252 virtual void BindJSObjectsToWindow(WebKit::WebFrame* frame); |
253 | 253 |
254 // Runs a layout test. Loads a single file (specified in params.test_url) | 254 // Runs a layout test. Loads a single file (specified in params.test_url) |
255 // into the first available window, then dumps the requested text | 255 // into the first available window, then dumps the requested text |
256 // representation to stdout. Returns false if the test cannot be run | 256 // representation to stdout. Returns false if the test cannot be run |
257 // because no windows are open. | 257 // because no windows are open. |
258 static bool RunFileTest(const TestParams& params); | 258 static bool RunFileTest(const TestParams& params); |
259 | 259 |
260 // Writes the back-forward list data for every open window into result. | 260 // Writes the back-forward list data for every open window into result. |
261 // Should call DumpBackForwardListOfWindow on each TestShell window. | 261 // Should call DumpBackForwardListOfWindow on each TestShell window. |
262 static void DumpAllBackForwardLists(std::wstring* result); | 262 static void DumpAllBackForwardLists(string16* result); |
263 | 263 |
264 // Writes the single back-forward entry into result. | 264 // Writes the single back-forward entry into result. |
265 void DumpBackForwardEntry(int index, std::wstring* result); | 265 void DumpBackForwardEntry(int index, string16* result); |
266 | 266 |
267 // Writes the back-forward list data for this test shell into result. | 267 // Writes the back-forward list data for this test shell into result. |
268 void DumpBackForwardList(std::wstring* result); | 268 void DumpBackForwardList(string16* result); |
269 | 269 |
270 // Dumps the output from given test as text and/or image depending on | 270 // Dumps the output from given test as text and/or image depending on |
271 // the flags set. | 271 // the flags set. |
272 static void Dump(TestShell* shell); | 272 static void Dump(TestShell* shell); |
273 | 273 |
274 // Writes the image captured from the given web frame to the given file. | 274 // Writes the image captured from the given web frame to the given file. |
275 // The returned string is the ASCII-ized MD5 sum of the image. | 275 // The returned string is the ASCII-ized MD5 sum of the image. |
276 static std::string DumpImage(skia::PlatformCanvas* canvas, | 276 static std::string DumpImage(skia::PlatformCanvas* canvas, |
277 const FilePath& path, | 277 const FilePath& path, |
278 const std::string& pixel_hash); | 278 const std::string& pixel_hash); |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 #if defined(OS_WIN) | 497 #if defined(OS_WIN) |
498 // Used by the watchdog to know when it's finished. | 498 // Used by the watchdog to know when it's finished. |
499 HANDLE finished_event_; | 499 HANDLE finished_event_; |
500 #endif | 500 #endif |
501 | 501 |
502 // Dump the stats table counters on exit. | 502 // Dump the stats table counters on exit. |
503 bool dump_stats_table_on_exit_; | 503 bool dump_stats_table_on_exit_; |
504 }; | 504 }; |
505 | 505 |
506 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ | 506 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ |
OLD | NEW |