Index: net/quic/quic_connection_test.cc |
diff --git a/net/quic/quic_connection_test.cc b/net/quic/quic_connection_test.cc |
index 937dc286a66676cedb4c7c9f6ede559a59b9f196..055da9fdfb134a4936080efec0aecd39aea978a8 100644 |
--- a/net/quic/quic_connection_test.cc |
+++ b/net/quic/quic_connection_test.cc |
@@ -1944,7 +1944,7 @@ TEST_P(QuicConnectionTest, SendingZeroBytes) { |
// Send a zero byte write with a fin using writev. |
EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)); |
QuicIOVector empty_iov(nullptr, 0, 0); |
- connection_.SendStreamData(1, empty_iov, 0, kFin, nullptr); |
+ connection_.SendStreamData(kHeadersStreamId, empty_iov, 0, kFin, nullptr); |
EXPECT_EQ(0u, connection_.NumQueuedPackets()); |
EXPECT_FALSE(connection_.HasQueuedData()); |
@@ -1952,7 +1952,7 @@ TEST_P(QuicConnectionTest, SendingZeroBytes) { |
// Parse the last packet and ensure it's one stream frame from one stream. |
EXPECT_EQ(1u, writer_->frame_count()); |
EXPECT_EQ(1u, writer_->stream_frames().size()); |
- EXPECT_EQ(1u, writer_->stream_frames()[0]->stream_id); |
+ EXPECT_EQ(kHeadersStreamId, writer_->stream_frames()[0]->stream_id); |
EXPECT_TRUE(writer_->stream_frames()[0]->fin); |
} |
@@ -2897,7 +2897,7 @@ TEST_P(QuicConnectionTest, HandshakeTimeout) { |
EXPECT_TRUE(connection_.connected()); |
// Send and ack new data 3 seconds later to lengthen the idle timeout. |
- SendStreamDataToPeer(1, "GET /", 0, kFin, nullptr); |
+ SendStreamDataToPeer(kHeadersStreamId, "GET /", 0, kFin, nullptr); |
clock_.AdvanceTime(QuicTime::Delta::FromSeconds(3)); |
QuicAckFrame frame = InitAckFrame(1); |
EXPECT_CALL(visitor_, OnSuccessfulVersionNegotiation(_)); |
@@ -2935,7 +2935,7 @@ TEST_P(QuicConnectionTest, PingAfterSend) { |
// the ping alarm. |
clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(5)); |
EXPECT_FALSE(connection_.GetRetransmissionAlarm()->IsSet()); |
- SendStreamDataToPeer(1, "GET /", 0, kFin, nullptr); |
+ SendStreamDataToPeer(kHeadersStreamId, "GET /", 0, kFin, nullptr); |
EXPECT_TRUE(connection_.GetPingAlarm()->IsSet()); |
EXPECT_EQ(clock_.ApproximateNow().Add(QuicTime::Delta::FromSeconds(15)), |
connection_.GetPingAlarm()->deadline()); |