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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual void setGamepadData(const WebKit::WebGamepads& gamepads); | 50 virtual void setGamepadData(const WebKit::WebGamepads& gamepads); |
51 virtual void printMessage(const std::string& message); | 51 virtual void printMessage(const std::string& message); |
52 virtual void postTask(WebTestRunner::WebTask* task); | 52 virtual void postTask(WebTestRunner::WebTask* task); |
53 virtual void postDelayedTask(WebTestRunner::WebTask* task, | 53 virtual void postDelayedTask(WebTestRunner::WebTask* task, |
54 long long ms); | 54 long long ms); |
55 virtual WebKit::WebString registerIsolatedFileSystem( | 55 virtual WebKit::WebString registerIsolatedFileSystem( |
56 const WebKit::WebVector<WebKit::WebString>& absolute_filenames); | 56 const WebKit::WebVector<WebKit::WebString>& absolute_filenames); |
57 virtual long long getCurrentTimeInMillisecond(); | 57 virtual long long getCurrentTimeInMillisecond(); |
58 virtual WebKit::WebString getAbsoluteWebStringFromUTF8Path( | 58 virtual WebKit::WebString getAbsoluteWebStringFromUTF8Path( |
59 const std::string& utf8_path); | 59 const std::string& utf8_path); |
| 60 virtual WebKit::WebURL localFileToDataURL(const WebKit::WebURL& file_url); |
| 61 virtual WebKit::WebURL rewriteLayoutTestsURL(const std::string& utf8_url); |
60 virtual WebTestRunner::WebPreferences* preferences(); | 62 virtual WebTestRunner::WebPreferences* preferences(); |
61 virtual void applyPreferences(); | 63 virtual void applyPreferences(); |
62 | 64 |
63 void Reset(); | 65 void Reset(); |
64 void Display(); | 66 void Display(); |
65 void SetXSSAuditorEnabled(bool enabled); | 67 void SetXSSAuditorEnabled(bool enabled); |
66 void NotifyDone(); | 68 void NotifyDone(); |
67 void DumpAsText(); | 69 void DumpAsText(); |
68 void DumpChildFramesAsText(); | 70 void DumpChildFramesAsText(); |
69 void SetPrinting(); | 71 void SetPrinting(); |
(...skipping 27 matching lines...) Expand all Loading... |
97 WebTestRunner::WebTestProxyBase* proxy_; | 99 WebTestRunner::WebTestProxyBase* proxy_; |
98 | 100 |
99 ShellWebPreferences prefs_; | 101 ShellWebPreferences prefs_; |
100 | 102 |
101 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); | 103 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); |
102 }; | 104 }; |
103 | 105 |
104 } // namespace content | 106 } // namespace content |
105 | 107 |
106 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ | 108 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ |
OLD | NEW |