Index: webkit/support/test_webkit_platform_support.h |
diff --git a/webkit/support/test_webkit_platform_support.h b/webkit/support/test_webkit_platform_support.h |
index ec43ce51b5e85288e67ebe153b0ddbce4069784b..753a196a708446d20046230bf5e2fdd1012476bf 100644 |
--- a/webkit/support/test_webkit_platform_support.h |
+++ b/webkit/support/test_webkit_platform_support.h |
@@ -137,6 +137,26 @@ class TestWebKitPlatformSupport : |
const WebKit::WebFloatPoint& velocity, |
const WebKit::WebSize& cumulative_scroll); |
+ virtual void registerMockedURL(const WebKit::WebURL& url, |
+ const WebKit::WebURLResponse& response, |
+ const WebKit::WebString& filePath); |
+ |
+ // Registers the error to be returned when |url| is requested. |
+ virtual void registerMockedErrorURL(const WebKit::WebURL& url, |
+ const WebKit::WebURLResponse& response, |
+ const WebKit::WebURLError& error); |
+ |
+ // Unregisters URLs so they are no longer mocked. |
+ virtual void unregisterMockedURL(const WebKit::WebURL& url); |
+ virtual void unregisterAllMockedURLs(); |
+ |
+ // Causes all pending asynchronous requests to be served. When this method |
+ // returns all the pending requests have been processed. |
+ virtual void serveAsynchronousMockedRequests(); |
+ |
+ // Returns the root directory of the WebKit code. |
+ virtual WebKit::WebString getWebKitRootDir(); |
darin (slow to review)
2013/02/10 05:07:03
nit: in the WebKit API, methods like this often la
|
+ |
private: |
TestShellWebMimeRegistryImpl mime_registry_; |
MockWebClipboardImpl mock_clipboard_; |