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

Unified Diff: net/http/http_response_info_unittest.cc

Issue 2016143002: Expose when PKP is bypassed in SSLInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add pkp_bypassed to SSLInfo Created 4 years, 6 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: net/http/http_response_info_unittest.cc
diff --git a/net/http/http_response_info_unittest.cc b/net/http/http_response_info_unittest.cc
index d27fb1c8ff7cd7bc84cc5d4c6ada44a181e1771f..12d4976d4afa71b2ce7a54881c5ace6362147917 100644
--- a/net/http/http_response_info_unittest.cc
+++ b/net/http/http_response_info_unittest.cc
@@ -52,6 +52,13 @@ TEST_F(HttpResponseInfoTest, UnusedSincePrefetchPersistTrue) {
EXPECT_TRUE(restored_response_info.unused_since_prefetch);
}
+TEST_F(HttpResponseInfoTest, PKPBypassPersisted) {
estark 2016/06/07 04:10:43 Can you add a similar test for when |pkp_bypassed|
dadrian 2016/06/07 17:48:22 Done.
+ response_info_.ssl_info.pkp_bypassed = true;
+ HttpResponseInfo restored_response_info;
+ PickleAndRestore(response_info_, &restored_response_info);
+ EXPECT_TRUE(restored_response_info.ssl_info.pkp_bypassed);
+}
+
TEST_F(HttpResponseInfoTest, AsyncRevalidationRequiredDefault) {
EXPECT_FALSE(response_info_.async_revalidation_required);
}

Powered by Google App Engine
This is Rietveld 408576698