Update types in `HpackEntryCollector::ValidateIndexedHeader` to `uint64_t`. To build quiche in chrome. PiperOrigin-RevId: 797299618
diff --git a/quiche/http2/test_tools/hpack_entry_collector.cc b/quiche/http2/test_tools/hpack_entry_collector.cc index 3a3d1b5..8507195 100644 --- a/quiche/http2/test_tools/hpack_entry_collector.cc +++ b/quiche/http2/test_tools/hpack_entry_collector.cc
@@ -152,11 +152,11 @@ } } AssertionResult HpackEntryCollector::ValidateIndexedHeader( - size_t expected_index) const { + uint64_t expected_index) const { HTTP2_VERIFY_TRUE(started_); HTTP2_VERIFY_TRUE(ended_); HTTP2_VERIFY_EQ(HpackEntryType::kIndexedHeader, header_type_); - HTTP2_VERIFY_EQ(expected_index, index_); + HTTP2_VERIFY_EQ(expected_index, static_cast<uint64_t>(index_)); return ::testing::AssertionSuccess(); } AssertionResult HpackEntryCollector::ValidateLiteralValueHeader(
diff --git a/quiche/http2/test_tools/hpack_entry_collector.h b/quiche/http2/test_tools/hpack_entry_collector.h index 93ad860..35db7ae 100644 --- a/quiche/http2/test_tools/hpack_entry_collector.h +++ b/quiche/http2/test_tools/hpack_entry_collector.h
@@ -73,7 +73,8 @@ // Returns success if collected an Indexed Header (i.e. OnIndexedHeader was // called). - ::testing::AssertionResult ValidateIndexedHeader(size_t expected_index) const; + ::testing::AssertionResult ValidateIndexedHeader( + uint64_t expected_index) const; // Returns success if collected a Header with an indexed name and literal // value (i.e. OnStartLiteralHeader was called with a non-zero index for