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

Unified Diff: third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp

Issue 2316573002: PlzNavigate: Support ResourceTiming API (Closed)
Patch Set: Move redirect response inside the final response. Created 4 years, 3 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/core/fetch/ResourceFetcherTest.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp b/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp
index 9f748b065c1532afcb9df30f011593bba130eb7c..42e21a1be932424c0c9952e3ce95615cb5ad40b7 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp
@@ -424,6 +424,7 @@ public:
redirectResponse.setURL(redirectURL);
redirectResponse.setHTTPStatusCode(301);
redirectResponse.setHTTPHeaderField(HTTPNames::Location, toURL);
+ redirectResponse.addToEncodedDataLength(kRedirectResponseOverheadBytes);
Platform::current()->getURLLoaderMockFactory()->registerURL(redirectURL, redirectResponse, "");
}

Powered by Google App Engine
This is Rietveld 408576698