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

Unified Diff: net/test/url_request/url_request_mock_http_job.cc

Issue 2566943002: Dispatch transfer size update notification on mojo-loading (Closed)
Patch Set: fix Created 4 years 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: net/test/url_request/url_request_mock_http_job.cc
diff --git a/net/test/url_request/url_request_mock_http_job.cc b/net/test/url_request/url_request_mock_http_job.cc
index 5317b846ed0ce4f6d04f9e161e6d10e34e57f83c..7fdcfaaf9012a40a2b5dc61acd79fb4f55f0ada4 100644
--- a/net/test/url_request/url_request_mock_http_job.cc
+++ b/net/test/url_request/url_request_mock_http_job.cc
@@ -184,6 +184,7 @@ void URLRequestMockHTTPJob::SetHeadersAndStart(const std::string& raw_headers) {
// ParseRawHeaders expects \0 to end each header line.
base::ReplaceSubstringsAfterOffset(
&raw_headers_, 0, "\n", base::StringPiece("\0", 1));
+ total_received_bytes_ += raw_headers_.size();
URLRequestFileJob::Start();
}
« no previous file with comments | « content/test/data/gzip-content.svgz.mock-http-headers ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698