Index: net/quic/core/crypto/quic_crypto_client_config_test.cc |
diff --git a/net/quic/core/crypto/quic_crypto_client_config_test.cc b/net/quic/core/crypto/quic_crypto_client_config_test.cc |
index 694767f177afab7d4baf3e6d362f3e6d77fc6253..c38d80583967896a32d7c6328fcf3d616a4acde9 100644 |
--- a/net/quic/core/crypto/quic_crypto_client_config_test.cc |
+++ b/net/quic/core/crypto/quic_crypto_client_config_test.cc |
@@ -6,6 +6,8 @@ |
#include "net/quic/core/crypto/proof_verifier.h" |
#include "net/quic/core/quic_server_id.h" |
+#include "net/quic/core/quic_utils.h" |
+#include "net/quic/platform/api/quic_endian.h" |
#include "net/quic/test_tools/crypto_test_utils.h" |
#include "net/quic/test_tools/mock_random.h" |
#include "net/quic/test_tools/quic_test_utils.h" |
@@ -525,7 +527,10 @@ TEST(QuicCryptoClientConfigTest, ProcessStatelessReject) { |
AllSupportedVersions().front(), "", &cached, |
out_params, &error)); |
EXPECT_TRUE(cached.has_server_designated_connection_id()); |
- EXPECT_EQ(kConnectionId, cached.GetNextServerDesignatedConnectionId()); |
+ EXPECT_EQ(QuicUtils::IsConnectionIdWireFormatBigEndian(Perspective::IS_CLIENT) |
+ ? QuicEndian::NetToHost64(kConnectionId) |
+ : kConnectionId, |
+ cached.GetNextServerDesignatedConnectionId()); |
EXPECT_EQ(server_nonce, cached.GetNextServerNonce()); |
} |