Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Unified Diff: webkit/support/test_webkit_platform_support.h

Issue 12220091: Add implementations of WebKit::Platform testing APIs to TestWebKitPlatformSupport (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;
« no previous file with comments | « no previous file | webkit/support/test_webkit_platform_support.cc » ('j') | webkit/support/test_webkit_platform_support.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698