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

Unified Diff: webkit/support/weburl_loader_mock_factory.h

Issue 10735037: Add WebURLLoaderMockFactory::GetLastHandledAsynchronousRequest. (Closed) Base URL: svn://svn.chromium.org/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.cc ('k') | webkit/support/weburl_loader_mock_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/weburl_loader_mock_factory.h
diff --git a/webkit/support/weburl_loader_mock_factory.h b/webkit/support/weburl_loader_mock_factory.h
index 6c9d80a0ff852c1c983497ea09b08be7d6462636..1333a8c2e9696525c15886f7402c2238530f457b 100644
--- a/webkit/support/weburl_loader_mock_factory.h
+++ b/webkit/support/weburl_loader_mock_factory.h
@@ -52,6 +52,9 @@ class WebURLLoaderMockFactory {
// Serves all the pending asynchronous requests.
void ServeAsynchronousRequests();
+ // Returns the last request handled by |ServeAsynchronousRequests()|.
+ WebKit::WebURLRequest GetLastHandledAsynchronousRequest();
+
// Returns true if |url| was registered for being mocked.
bool IsMockedURL(const WebKit::WebURL& url);
@@ -91,6 +94,8 @@ class WebURLLoaderMockFactory {
typedef std::map<WebKit::WebURL, ResponseInfo> URLToResponseMap;
URLToResponseMap url_to_reponse_info_;
+ WebKit::WebURLRequest last_handled_asynchronous_request_;
+
DISALLOW_COPY_AND_ASSIGN(WebURLLoaderMockFactory);
};
« no previous file with comments | « webkit/support/webkit_support.cc ('k') | webkit/support/weburl_loader_mock_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698