| 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 CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
| 6 #define CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
| 7 | 7 |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/public/renderer/render_view_observer.h" | 10 #include "content/public/renderer/render_view_observer.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 void OnSetTestConfiguration( | 80 void OnSetTestConfiguration( |
| 81 const base::FilePath& current_working_directory, | 81 const base::FilePath& current_working_directory, |
| 82 bool enable_pixel_dumping, | 82 bool enable_pixel_dumping, |
| 83 int layout_test_timeout, | 83 int layout_test_timeout, |
| 84 bool allow_external_pages, | 84 bool allow_external_pages, |
| 85 const std::string& expected_pixel_hash); | 85 const std::string& expected_pixel_hash); |
| 86 | 86 |
| 87 void CaptureDump(); | 87 void CaptureDump(); |
| 88 void CaptureTextDump(); | 88 void CaptureTextDump(); |
| 89 void CaptureImageDump(); | 89 void CaptureImageDump(); |
| 90 SkCanvas* GetCanvas(); | |
| 91 void PaintRect(const WebKit::WebRect& rect); | |
| 92 void PaintInvalidatedRegion(); | |
| 93 void DisplayRepaintMask(); | |
| 94 | 90 |
| 95 scoped_ptr<SkCanvas> canvas_; | |
| 96 scoped_ptr<WebKit::WebContextMenuData> last_context_menu_data_; | 91 scoped_ptr<WebKit::WebContextMenuData> last_context_menu_data_; |
| 97 base::FilePath current_working_directory_; | 92 base::FilePath current_working_directory_; |
| 98 | 93 |
| 99 ::WebTestRunner::WebTestProxyBase* proxy_; | 94 ::WebTestRunner::WebTestProxyBase* proxy_; |
| 100 | 95 |
| 101 ::WebTestRunner::WebPreferences prefs_; | 96 ::WebTestRunner::WebPreferences prefs_; |
| 102 | 97 |
| 103 bool test_is_running_; | 98 bool test_is_running_; |
| 104 bool wait_until_done_; | 99 bool wait_until_done_; |
| 105 bool load_finished_; | 100 bool load_finished_; |
| 106 bool dump_as_text_; | 101 bool dump_as_text_; |
| 107 bool dump_child_frames_as_text_; | 102 bool dump_child_frames_as_text_; |
| 108 bool printing_; | 103 bool printing_; |
| 109 | 104 |
| 110 bool enable_pixel_dumping_; | 105 bool enable_pixel_dumping_; |
| 111 int layout_test_timeout_; | 106 int layout_test_timeout_; |
| 112 bool allow_external_pages_; | 107 bool allow_external_pages_; |
| 113 std::string expected_pixel_hash_; | 108 std::string expected_pixel_hash_; |
| 114 | 109 |
| 115 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); | 110 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); |
| 116 }; | 111 }; |
| 117 | 112 |
| 118 } // namespace content | 113 } // namespace content |
| 119 | 114 |
| 120 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 115 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
| OLD | NEW |