Use size_t instead of QuicByteCount when creating QuicTestMemSliceVectors in QuicStreamTest
gfe-relnote: n/a (test-only no-op change)
PiperOrigin-RevId: 309330752
Change-Id: Ic2a86702b7aed0322da262a083d459693fa13bb3
diff --git a/quic/core/quic_stream_test.cc b/quic/core/quic_stream_test.cc
index 3e47835..f30a3be 100644
--- a/quic/core/quic_stream_test.cc
+++ b/quic/core/quic_stream_test.cc
@@ -1183,7 +1183,7 @@
Initialize();
char data[1024];
- std::vector<std::pair<char*, QuicByteCount>> buffers;
+ std::vector<std::pair<char*, size_t>> buffers;
buffers.push_back(std::make_pair(data, QUICHE_ARRAYSIZE(data)));
buffers.push_back(std::make_pair(data, QUICHE_ARRAYSIZE(data)));
QuicTestMemSliceVector vector1(buffers);
@@ -1247,7 +1247,7 @@
Initialize();
QuicStreamPeer::SetStreamBytesWritten(kMaxStreamLength - 5u, stream_);
char data[5];
- std::vector<std::pair<char*, QuicByteCount>> buffers;
+ std::vector<std::pair<char*, size_t>> buffers;
buffers.push_back(std::make_pair(data, QUICHE_ARRAYSIZE(data)));
QuicTestMemSliceVector vector1(buffers);
QuicMemSliceSpan span1 = vector1.span();
@@ -1260,7 +1260,7 @@
QuicConsumedData consumed = stream_->WriteMemSlices(span1, false);
EXPECT_EQ(5u, consumed.bytes_consumed);
- std::vector<std::pair<char*, QuicByteCount>> buffers2;
+ std::vector<std::pair<char*, size_t>> buffers2;
buffers2.push_back(std::make_pair(data, 1u));
QuicTestMemSliceVector vector2(buffers);
QuicMemSliceSpan span2 = vector2.span();