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

Unified Diff: net/quic/crypto/properties_based_quic_server_info_test.cc

Issue 1818393003: QUIC - Persist "Hash of the CHLO message" and "Signed timestamp of the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Default chlo_hash to empty string for old disk cache data Created 4 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 | « net/http/disk_cache_based_quic_server_info_unittest.cc ('k') | net/quic/crypto/quic_crypto_client_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/properties_based_quic_server_info_test.cc
diff --git a/net/quic/crypto/properties_based_quic_server_info_test.cc b/net/quic/crypto/properties_based_quic_server_info_test.cc
index 2e9c2d371a2a8b29ae5b0eff294db6ed9578e0d1..f9cb681310ece919fcdab1ce276c80dab6c06cf0 100644
--- a/net/quic/crypto/properties_based_quic_server_info_test.cc
+++ b/net/quic/crypto/properties_based_quic_server_info_test.cc
@@ -18,6 +18,8 @@ namespace test {
namespace {
const std::string kServerConfigA("server_config_a");
const std::string kSourceAddressTokenA("source_address_token_a");
+const std::string kCertSCTA("cert_sct_a");
+const std::string kChloHashA("chlo_hash_a");
const std::string kServerConfigSigA("server_config_sig_a");
const std::string kCertA("cert_a");
const std::string kCertB("cert_b");
@@ -39,6 +41,8 @@ class PropertiesBasedQuicServerInfoTest : public ::testing::Test {
state->server_config = kServerConfigA;
state->source_address_token = kSourceAddressTokenA;
state->server_config_sig = kServerConfigSigA;
+ state->cert_sct = kCertSCTA;
+ state->chlo_hash = kChloHashA;
state->certs.push_back(kCertA);
EXPECT_TRUE(server_info_.IsReadyToPersist());
server_info_.Persist();
@@ -51,6 +55,8 @@ class PropertiesBasedQuicServerInfoTest : public ::testing::Test {
void VerifyInitialData(const QuicServerInfo::State& state) {
EXPECT_EQ(kServerConfigA, state.server_config);
EXPECT_EQ(kSourceAddressTokenA, state.source_address_token);
+ EXPECT_EQ(kCertSCTA, state.cert_sct);
+ EXPECT_EQ(kChloHashA, state.chlo_hash);
EXPECT_EQ(kServerConfigSigA, state.server_config_sig);
EXPECT_EQ(kCertA, state.certs[0]);
}
« no previous file with comments | « net/http/disk_cache_based_quic_server_info_unittest.cc ('k') | net/quic/crypto/quic_crypto_client_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698