Index: net/quic/crypto/quic_crypto_client_config_test.cc |
diff --git a/net/quic/crypto/quic_crypto_client_config_test.cc b/net/quic/crypto/quic_crypto_client_config_test.cc |
index 18e0344ddefe5b508a640d3fcd3d5388a76862a2..d30971ad6be3a7106f8521f5f10fd61fbbc4ac7e 100644 |
--- a/net/quic/crypto/quic_crypto_client_config_test.cc |
+++ b/net/quic/crypto/quic_crypto_client_config_test.cc |
@@ -5,7 +5,7 @@ |
#include "net/quic/crypto/quic_crypto_client_config.h" |
#include "net/quic/crypto/proof_verifier.h" |
-#include "net/quic/quic_session_key.h" |
+#include "net/quic/quic_server_id.h" |
#include "net/quic/test_tools/mock_random.h" |
#include "net/quic/test_tools/quic_test_utils.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -57,8 +57,8 @@ TEST(QuicCryptoClientConfigTest, InchoateChlo) { |
QuicCryptoClientConfig config; |
QuicCryptoNegotiatedParameters params; |
CryptoHandshakeMessage msg; |
- QuicSessionKey server_key("www.google.com", 80, false, kPrivacyModeDisabled); |
- config.FillInchoateClientHello(server_key, QuicVersionMax(), &state, |
+ QuicServerId server_id("www.google.com", 80, false, kPrivacyModeDisabled); |
+ config.FillInchoateClientHello(server_id, QuicVersionMax(), &state, |
¶ms, &msg); |
QuicTag cver; |
@@ -75,8 +75,8 @@ TEST(QuicCryptoClientConfigTest, FillClientHello) { |
string error_details; |
MockRandom rand; |
CryptoHandshakeMessage chlo; |
- QuicSessionKey server_key("www.google.com", 80, false, kPrivacyModeDisabled); |
- config.FillClientHello(server_key, |
+ QuicServerId server_id("www.google.com", 80, false, kPrivacyModeDisabled); |
+ config.FillClientHello(server_id, |
kConnectionId, |
QuicVersionMax(), |
kInitialFlowControlWindow, |
@@ -124,17 +124,19 @@ TEST(QuicCryptoClientConfigTest, ProcessServerDowngradeAttack) { |
TEST(QuicCryptoClientConfigTest, InitializeFrom) { |
QuicCryptoClientConfig config; |
- QuicSessionKey canonical_key1("www.google.com", 80, false, |
- kPrivacyModeDisabled); |
+ QuicServerId canonical_server_id("www.google.com", 80, false, |
+ kPrivacyModeDisabled); |
QuicCryptoClientConfig::CachedState* state = |
- config.LookupOrCreate(canonical_key1); |
+ config.LookupOrCreate(canonical_server_id); |
// TODO(rch): Populate other fields of |state|. |
state->set_source_address_token("TOKEN"); |
state->SetProofValid(); |
- QuicSessionKey other_key("mail.google.com", 80, false, kPrivacyModeDisabled); |
- config.InitializeFrom(other_key, canonical_key1, &config); |
- QuicCryptoClientConfig::CachedState* other = config.LookupOrCreate(other_key); |
+ QuicServerId other_server_id("mail.google.com", 80, false, |
+ kPrivacyModeDisabled); |
+ config.InitializeFrom(other_server_id, canonical_server_id, &config); |
+ QuicCryptoClientConfig::CachedState* other = |
+ config.LookupOrCreate(other_server_id); |
EXPECT_EQ(state->server_config(), other->server_config()); |
EXPECT_EQ(state->source_address_token(), other->source_address_token()); |