OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ | 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ |
6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ | 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ |
7 | 7 |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 namespace WebKit { | 42 namespace WebKit { |
43 class WebDeviceOrientationClientMock; | 43 class WebDeviceOrientationClientMock; |
44 class WebGeolocationClientMock; | 44 class WebGeolocationClientMock; |
45 } | 45 } |
46 | 46 |
47 class TestShell : public base::SupportsWeakPtr<TestShell> { | 47 class TestShell : public base::SupportsWeakPtr<TestShell> { |
48 public: | 48 public: |
49 struct TestParams { | 49 struct TestParams { |
50 // Load the test defaults. | 50 // Load the test defaults. |
51 TestParams() : dump_tree(true), dump_pixels(false) { | 51 TestParams(); |
52 } | |
53 | 52 |
54 // The kind of output we want from this test. | 53 // The kind of output we want from this test. |
55 bool dump_tree; | 54 bool dump_tree; |
56 bool dump_pixels; | 55 bool dump_pixels; |
57 | 56 |
58 // Filename we dump pixels to (when pixel testing is enabled). | 57 // Filename we dump pixels to (when pixel testing is enabled). |
59 FilePath pixel_file_name; | 58 FilePath pixel_file_name; |
60 // The md5 hash of the bitmap dump (when pixel testing is enabled). | 59 // The md5 hash of the bitmap dump (when pixel testing is enabled). |
61 std::string pixel_hash; | 60 std::string pixel_hash; |
62 // URL of the test. | 61 // URL of the test. |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 #if defined(OS_WIN) | 397 #if defined(OS_WIN) |
399 // Used by the watchdog to know when it's finished. | 398 // Used by the watchdog to know when it's finished. |
400 HANDLE finished_event_; | 399 HANDLE finished_event_; |
401 #endif | 400 #endif |
402 | 401 |
403 // Dump the stats table counters on exit. | 402 // Dump the stats table counters on exit. |
404 bool dump_stats_table_on_exit_; | 403 bool dump_stats_table_on_exit_; |
405 }; | 404 }; |
406 | 405 |
407 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ | 406 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ |
OLD | NEW |