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

Unified Diff: Source/core/loader/FrameFetchContextTest.cpp

Issue 1011083003: Upgrade: Add 'Upgraded' header, update 'Prefer' value. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | « Source/core/loader/FrameFetchContext.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FrameFetchContextTest.cpp
diff --git a/Source/core/loader/FrameFetchContextTest.cpp b/Source/core/loader/FrameFetchContextTest.cpp
index 7a1e8d4f37e35066df9bc02a610b4c06385376f1..7b53ed7deb60bd0833a3efa8f9f7fc6d35df5cfa 100644
--- a/Source/core/loader/FrameFetchContextTest.cpp
+++ b/Source/core/loader/FrameFetchContextTest.cpp
@@ -85,6 +85,11 @@ protected:
EXPECT_EQ(expectedURL.port(), fetchRequest.resourceRequest().url().port());
EXPECT_EQ(expectedURL.hasPort(), fetchRequest.resourceRequest().url().hasPort());
EXPECT_EQ(expectedURL.path(), fetchRequest.resourceRequest().url().path());
+
+ bool expectUpgrade = inputURL != expectedURL;
+
+ EXPECT_STREQ(expectUpgrade ? "1" : "",
+ fetchRequest.resourceRequest().httpHeaderField("Upgraded").utf8().data());
}
void expectPreferHeader(const char* input, WebURLRequest::FrameType frameType, bool shouldPrefer)
@@ -97,7 +102,7 @@ protected:
fetchContext->upgradeInsecureRequest(fetchRequest);
- EXPECT_STREQ(shouldPrefer ? "return=secure-representation" : "",
+ EXPECT_STREQ(shouldPrefer ? "tls" : "",
fetchRequest.resourceRequest().httpHeaderField("Prefer").utf8().data());
}
« no previous file with comments | « Source/core/loader/FrameFetchContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698