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

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: Make CertVerifyResult Great Again. 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..75ae43532c4d71aeead410bbd4d3589a886d8afb 100644
--- a/net/http/http_response_info_unittest.cc
+++ b/net/http/http_response_info_unittest.cc
@@ -52,6 +52,20 @@ TEST_F(HttpResponseInfoTest, UnusedSincePrefetchPersistTrue) {
EXPECT_TRUE(restored_response_info.unused_since_prefetch);
}
+TEST_F(HttpResponseInfoTest, PKPBypassPersistTrue) {
+ 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, PKPBypassPersistFalse) {
+ response_info_.ssl_info.pkp_bypassed = false;
+ HttpResponseInfo restored_response_info;
+ PickleAndRestore(response_info_, &restored_response_info);
+ EXPECT_FALSE(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