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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void NotifyDone(); | 64 void NotifyDone(); |
65 void DumpAsText(); | 65 void DumpAsText(); |
66 void DumpChildFramesAsText(); | 66 void DumpChildFramesAsText(); |
67 void SetPrinting(); | 67 void SetPrinting(); |
68 void SetShouldStayOnPageAfterHandlingBeforeUnload(bool should_stay_on_page); | 68 void SetShouldStayOnPageAfterHandlingBeforeUnload(bool should_stay_on_page); |
69 void WaitUntilDone(); | 69 void WaitUntilDone(); |
70 void CanOpenWindows(); | 70 void CanOpenWindows(); |
71 void ShowWebInspector(); | 71 void ShowWebInspector(); |
72 void CloseWebInspector(); | 72 void CloseWebInspector(); |
73 void EvaluateInWebInspector(int32_t call_id, const std::string& script); | 73 void EvaluateInWebInspector(int32_t call_id, const std::string& script); |
| 74 void ExecCommand(const std::string& command, const std::string& value); |
74 | 75 |
75 void NotImplemented(const std::string& object, const std::string& method); | 76 void NotImplemented(const std::string& object, const std::string& method); |
76 | 77 |
77 void set_proxy(WebTestRunner::WebTestProxyBase* proxy) { proxy_ = proxy; } | 78 void set_proxy(WebTestRunner::WebTestProxyBase* proxy) { proxy_ = proxy; } |
78 | 79 |
79 private: | 80 private: |
80 // Message handlers. | 81 // Message handlers. |
81 void OnCaptureTextDump(bool as_text, bool printing, bool recursive); | 82 void OnCaptureTextDump(bool as_text, bool printing, bool recursive); |
82 void OnCaptureImageDump(const std::string& expected_pixel_hash); | 83 void OnCaptureImageDump(const std::string& expected_pixel_hash); |
83 void OnSetCurrentWorkingDirectory(const FilePath& current_working_directory); | 84 void OnSetCurrentWorkingDirectory(const FilePath& current_working_directory); |
(...skipping 10 matching lines...) Expand all Loading... |
94 WebTestRunner::WebTestProxyBase* proxy_; | 95 WebTestRunner::WebTestProxyBase* proxy_; |
95 | 96 |
96 ShellWebPreferences prefs_; | 97 ShellWebPreferences prefs_; |
97 | 98 |
98 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); | 99 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); |
99 }; | 100 }; |
100 | 101 |
101 } // namespace content | 102 } // namespace content |
102 | 103 |
103 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 104 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
OLD | NEW |