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

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

Issue 336273006: QUIC - cleanup changes to keep in sync with internal source tree. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments for Patch Set 1 Created 6 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
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/crypto/quic_crypto_client_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/crypto_server_test.cc
diff --git a/net/quic/crypto/crypto_server_test.cc b/net/quic/crypto/crypto_server_test.cc
index 7cb7e990fa240e6bc68cb76196e02f66a7df9410..af192cca413d733450cddd47274648d59a3fc44c 100644
--- a/net/quic/crypto/crypto_server_test.cc
+++ b/net/quic/crypto/crypto_server_test.cc
@@ -270,9 +270,10 @@ class CryptoServerTest : public ::testing::TestWithParam<TestParams> {
void CheckRejectReasons(
const HandshakeFailureReason* expected_handshake_failures,
size_t expected_count) {
- const QuicTag* reject_reason_tags;
+ const uint32* reject_reasons;
size_t num_reject_reasons;
- QuicErrorCode error_code = out_.GetTaglist(kRREJ, &reject_reason_tags,
+ COMPILE_ASSERT(sizeof(QuicTag) == sizeof(uint32), header_out_of_sync);
+ QuicErrorCode error_code = out_.GetTaglist(kRREJ, &reject_reasons,
&num_reject_reasons);
if (!FLAGS_send_quic_crypto_reject_reason) {
ASSERT_EQ(QUIC_CRYPTO_MESSAGE_PARAMETER_NOT_FOUND, error_code);
@@ -286,7 +287,7 @@ class CryptoServerTest : public ::testing::TestWithParam<TestParams> {
EXPECT_EQ(expected_count, num_reject_reasons);
}
for (size_t i = 0; i < num_reject_reasons; ++i) {
- EXPECT_EQ(expected_handshake_failures[i], reject_reason_tags[i]);
+ EXPECT_EQ(expected_handshake_failures[i], reject_reasons[i]);
}
}
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/crypto/quic_crypto_client_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698