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

Unified Diff: webkit/support/webkit_support.cc

Issue 10821019: Add support for mocking failed loads to WebURLLoaderMock. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « webkit/support/webkit_support.h ('k') | webkit/support/weburl_loader_mock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/webkit_support.cc
===================================================================
--- webkit/support/webkit_support.cc (revision 148351)
+++ webkit/support/webkit_support.cc (working copy)
@@ -487,6 +487,13 @@
RegisterURL(url, response, file_path);
}
+void RegisterMockedErrorURL(const WebKit::WebURL& url,
+ const WebKit::WebURLResponse& response,
+ const WebKit::WebURLError& error) {
+ test_environment->webkit_platform_support()->url_loader_factory()->
+ RegisterErrorURL(url, response, error);
+}
+
void UnregisterMockedURL(const WebKit::WebURL& url) {
test_environment->webkit_platform_support()->url_loader_factory()->
UnregisterURL(url);
« no previous file with comments | « webkit/support/webkit_support.h ('k') | webkit/support/weburl_loader_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698