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

Unified Diff: content/test/weburl_loader_mock_factory.h

Issue 1310153003: Change WebURLLoaderMockFactory for future FOUC tests in blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments + default Created 5 years, 4 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 | « no previous file | content/test/weburl_loader_mock_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/weburl_loader_mock_factory.h
diff --git a/content/test/weburl_loader_mock_factory.h b/content/test/weburl_loader_mock_factory.h
index f9fb9dae4bfc82a8444622463223a5a5463ebf86..cc0a9ff6c5db8dcaa733195ec08b8d5a212f8ef3 100644
--- a/content/test/weburl_loader_mock_factory.h
+++ b/content/test/weburl_loader_mock_factory.h
@@ -38,11 +38,11 @@ class WebURLLoaderMockFactory {
virtual blink::WebURLLoader* CreateURLLoader(
blink::WebURLLoader* default_loader);
- // Registers a response and the contents to be served when the specified URL
- // is loaded.
+ // Registers a response and the file to be served when the specified URL
+ // is loaded. If no file is specified then the response content will be empty.
void RegisterURL(const blink::WebURL& url,
const blink::WebURLResponse& response,
- const blink::WebString& filePath);
+ const blink::WebString& filePath = blink::WebString());
// Registers an error to be served when the specified URL is requested.
void RegisterErrorURL(const blink::WebURL& url,
« no previous file with comments | « no previous file | content/test/weburl_loader_mock_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698