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

Unified Diff: third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc

Issue 2163183002: Fix PerformanceResourceTiming transferSize field for sync XHR (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_worker_tests
Patch Set: Rebase Created 4 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
Index: third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc
diff --git a/third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc b/third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc
index 3244d38e10c9e73f7de3ac70c7c4dc2876b6421c..588fd5d1b9ebc617f40c7c95d724698bc12fdc97 100644
--- a/third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc
+++ b/third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc
@@ -103,16 +103,19 @@ WebURLRequest WebURLLoaderMock::ServeRedirect(
void WebURLLoaderMock::loadSynchronously(const WebURLRequest& request,
WebURLResponse& response,
WebURLError& error,
- WebData& data) {
+ WebData& data,
+ int64_t& encoded_data_length) {
if (factory_->IsMockedURL(request.url())) {
- factory_->LoadSynchronously(request, &response, &error, &data);
+ factory_->LoadSynchronously(request, &response, &error, &data,
+ &encoded_data_length);
return;
}
DCHECK(KURL(request.url()).protocolIsData())
<< "loadSynchronously shouldn't be falling back: "
<< request.url().string().utf8();
using_default_loader_ = true;
- default_loader_->loadSynchronously(request, response, error, data);
+ default_loader_->loadSynchronously(request, response, error, data,
+ encoded_data_length);
}
void WebURLLoaderMock::loadAsynchronously(const WebURLRequest& request,

Powered by Google App Engine
This is Rietveld 408576698