Index: net/quic/quic_crypto_stream_test.cc |
diff --git a/net/quic/quic_crypto_stream_test.cc b/net/quic/quic_crypto_stream_test.cc |
index 6e465ab396acdf9243a700d7d94509c5377b6ba6..cc69304b7492a50a2620dde4898721f4438d53b4 100644 |
--- a/net/quic/quic_crypto_stream_test.cc |
+++ b/net/quic/quic_crypto_stream_test.cc |
@@ -98,7 +98,11 @@ TEST_F(QuicCryptoStreamTest, ProcessData) { |
TEST_F(QuicCryptoStreamTest, ProcessBadData) { |
string bad(message_data_->data(), message_data_->length()); |
- bad[8] = 0x7F; // out of order tag |
+ const int kFirstTagIndex = sizeof(uint32) + // message tag |
+ sizeof(uint16) + // number of tag-value pairs |
+ sizeof(uint16); // padding |
+ EXPECT_EQ(1, bad[kFirstTagIndex]); |
+ bad[kFirstTagIndex] = 0x7F; // out of order tag |
EXPECT_CALL(*connection_, |
SendConnectionClose(QUIC_CRYPTO_TAGS_OUT_OF_ORDER)); |