clang-format //third_party/http2/
Tested:
TAP train for global presubmit queue
http://test/OCL:441532489:BASE:441638302:1649928741771:a9a0c33d
PiperOrigin-RevId: 441749715
diff --git a/quiche/http2/hpack/decoder/hpack_block_collector.cc b/quiche/http2/hpack/decoder/hpack_block_collector.cc
index 180dd24..e302338 100644
--- a/quiche/http2/hpack/decoder/hpack_block_collector.cc
+++ b/quiche/http2/hpack/decoder/hpack_block_collector.cc
@@ -39,9 +39,7 @@
void HpackBlockCollector::OnNameData(const char* data, size_t len) {
pending_entry_.OnNameData(data, len);
}
-void HpackBlockCollector::OnNameEnd() {
- pending_entry_.OnNameEnd();
-}
+void HpackBlockCollector::OnNameEnd() { pending_entry_.OnNameEnd(); }
void HpackBlockCollector::OnValueStart(bool huffman_encoded, size_t len) {
pending_entry_.OnValueStart(huffman_encoded, len);
}
@@ -74,9 +72,7 @@
HpackEntryCollector(HpackEntryType::kDynamicTableSizeUpdate, size));
}
void HpackBlockCollector::ExpectNameIndexAndLiteralValue(
- HpackEntryType type,
- size_t index,
- bool value_huffman,
+ HpackEntryType type, size_t index, bool value_huffman,
const std::string& value) {
entries_.push_back(HpackEntryCollector(type, index, value_huffman, value));
}
@@ -109,10 +105,8 @@
return AssertionSuccess();
}
AssertionResult HpackBlockCollector::ValidateSoleLiteralValueHeader(
- HpackEntryType expected_type,
- size_t expected_index,
- bool expected_value_huffman,
- absl::string_view expected_value) const {
+ HpackEntryType expected_type, size_t expected_index,
+ bool expected_value_huffman, absl::string_view expected_value) const {
VERIFY_TRUE(pending_entry_.IsClear());
VERIFY_EQ(1u, entries_.size());
VERIFY_TRUE(entries_.front().ValidateLiteralValueHeader(
@@ -120,10 +114,8 @@
return AssertionSuccess();
}
AssertionResult HpackBlockCollector::ValidateSoleLiteralNameValueHeader(
- HpackEntryType expected_type,
- bool expected_name_huffman,
- absl::string_view expected_name,
- bool expected_value_huffman,
+ HpackEntryType expected_type, bool expected_name_huffman,
+ absl::string_view expected_name, bool expected_value_huffman,
absl::string_view expected_value) const {
VERIFY_TRUE(pending_entry_.IsClear());
VERIFY_EQ(1u, entries_.size());
diff --git a/quiche/http2/hpack/decoder/hpack_block_collector.h b/quiche/http2/hpack/decoder/hpack_block_collector.h
index be24110..d59b912 100644
--- a/quiche/http2/hpack/decoder/hpack_block_collector.h
+++ b/quiche/http2/hpack/decoder/hpack_block_collector.h
@@ -63,16 +63,13 @@
// Add an HPACK entry for a header entry with an index for the name, and a
// literal value.
- void ExpectNameIndexAndLiteralValue(HpackEntryType type,
- size_t index,
+ void ExpectNameIndexAndLiteralValue(HpackEntryType type, size_t index,
bool value_huffman,
const std::string& value);
// Add an HPACK entry for a header entry with a literal name and value.
- void ExpectLiteralNameAndValue(HpackEntryType type,
- bool name_huffman,
- const std::string& name,
- bool value_huffman,
+ void ExpectLiteralNameAndValue(HpackEntryType type, bool name_huffman,
+ const std::string& name, bool value_huffman,
const std::string& value);
// Shuffle the entries, in support of generating an HPACK block of entries
@@ -94,18 +91,14 @@
// Return AssertionSuccess if there is just one entry, and it is a Header
// entry with an index for the name and a literal value.
::testing::AssertionResult ValidateSoleLiteralValueHeader(
- HpackEntryType expected_type,
- size_t expected_index,
- bool expected_value_huffman,
- absl::string_view expected_value) const;
+ HpackEntryType expected_type, size_t expected_index,
+ bool expected_value_huffman, absl::string_view expected_value) const;
// Return AssertionSuccess if there is just one entry, and it is a Header
// with a literal name and literal value.
::testing::AssertionResult ValidateSoleLiteralNameValueHeader(
- HpackEntryType expected_type,
- bool expected_name_huffman,
- absl::string_view expected_name,
- bool expected_value_huffman,
+ HpackEntryType expected_type, bool expected_name_huffman,
+ absl::string_view expected_name, bool expected_value_huffman,
absl::string_view expected_value) const;
bool IsNotPending() const { return pending_entry_.IsClear(); }
diff --git a/quiche/http2/hpack/decoder/hpack_block_decoder_test.cc b/quiche/http2/hpack/decoder/hpack_block_decoder_test.cc
index e8a1cb4..4e18c02 100644
--- a/quiche/http2/hpack/decoder/hpack_block_decoder_test.cc
+++ b/quiche/http2/hpack/decoder/hpack_block_decoder_test.cc
@@ -64,8 +64,7 @@
}
AssertionResult DecodeHpackExampleAndValidateSeveralWays(
- absl::string_view hpack_example,
- Validator validator) {
+ absl::string_view hpack_example, Validator validator) {
std::string input = HpackExampleToStringOrDie(hpack_example);
DecodeBuffer db(input);
return DecodeAndValidateSeveralWays(&db, validator);
diff --git a/quiche/http2/hpack/decoder/hpack_decoder_state.cc b/quiche/http2/hpack/decoder/hpack_decoder_state.cc
index c8672bb..074212e 100644
--- a/quiche/http2/hpack/decoder/hpack_decoder_state.cc
+++ b/quiche/http2/hpack/decoder/hpack_decoder_state.cc
@@ -97,8 +97,7 @@
}
void HpackDecoderState::OnNameIndexAndLiteralValue(
- HpackEntryType entry_type,
- size_t name_index,
+ HpackEntryType entry_type, size_t name_index,
HpackDecoderStringBuffer* value_buffer) {
HTTP2_DVLOG(2) << "HpackDecoderState::OnNameIndexAndLiteralValue "
<< entry_type << ", " << name_index << ", "
@@ -124,8 +123,7 @@
}
void HpackDecoderState::OnLiteralNameAndValue(
- HpackEntryType entry_type,
- HpackDecoderStringBuffer* name_buffer,
+ HpackEntryType entry_type, HpackDecoderStringBuffer* name_buffer,
HpackDecoderStringBuffer* value_buffer) {
HTTP2_DVLOG(2) << "HpackDecoderState::OnLiteralNameAndValue " << entry_type
<< ", " << name_buffer->str() << ", " << value_buffer->str();
diff --git a/quiche/http2/hpack/decoder/hpack_decoder_state.h b/quiche/http2/hpack/decoder/hpack_decoder_state.h
index 272805f..8b4c0fa 100644
--- a/quiche/http2/hpack/decoder/hpack_decoder_state.h
+++ b/quiche/http2/hpack/decoder/hpack_decoder_state.h
@@ -70,8 +70,7 @@
// object when an entire entry has been decoded.
void OnIndexedHeader(size_t index) override;
void OnNameIndexAndLiteralValue(
- HpackEntryType entry_type,
- size_t name_index,
+ HpackEntryType entry_type, size_t name_index,
HpackDecoderStringBuffer* value_buffer) override;
void OnLiteralNameAndValue(HpackEntryType entry_type,
HpackDecoderStringBuffer* name_buffer,
diff --git a/quiche/http2/hpack/decoder/hpack_decoder_state_test.cc b/quiche/http2/hpack/decoder/hpack_decoder_state_test.cc
index 03a4751..3b3acdc 100644
--- a/quiche/http2/hpack/decoder/hpack_decoder_state_test.cc
+++ b/quiche/http2/hpack/decoder/hpack_decoder_state_test.cc
@@ -36,14 +36,10 @@
class MockHpackDecoderListener : public HpackDecoderListener {
public:
MOCK_METHOD(void, OnHeaderListStart, (), (override));
- MOCK_METHOD(void,
- OnHeader,
- (const std::string& name, const std::string& value),
- (override));
+ MOCK_METHOD(void, OnHeader,
+ (const std::string& name, const std::string& value), (override));
MOCK_METHOD(void, OnHeaderListEnd, (), (override));
- MOCK_METHOD(void,
- OnHeaderErrorDetected,
- (absl::string_view error_message),
+ MOCK_METHOD(void, OnHeaderErrorDetected, (absl::string_view error_message),
(override));
};
@@ -73,8 +69,7 @@
GetDecoderTables()->DynamicTableSizeUpdate(size);
}
- void SetStringBuffer(const char* s,
- StringBacking backing,
+ void SetStringBuffer(const char* s, StringBacking backing,
HpackDecoderStringBuffer* string_buffer) {
switch (backing) {
case STATIC:
@@ -118,10 +113,8 @@
Mock::VerifyAndClearExpectations(&listener_);
}
- void SendValueAndVerifyCallback(size_t name_index,
- HpackEntryType entry_type,
- const char* name,
- const char* value,
+ void SendValueAndVerifyCallback(size_t name_index, HpackEntryType entry_type,
+ const char* name, const char* value,
StringBacking value_backing) {
SetValue(value, value_backing);
EXPECT_CALL(listener_, OnHeader(Eq(name), Eq(value)));
@@ -150,8 +143,7 @@
}
// dynamic_index is one-based, because that is the way RFC 7541 shows it.
- AssertionResult VerifyEntry(size_t dynamic_index,
- const char* name,
+ AssertionResult VerifyEntry(size_t dynamic_index, const char* name,
const char* value) {
const HpackStringPair* entry =
Lookup(dynamic_index + kFirstDynamicTableIndex - 1);
diff --git a/quiche/http2/hpack/decoder/hpack_decoder_string_buffer.h b/quiche/http2/hpack/decoder/hpack_decoder_string_buffer.h
index a1877c8..3136e8e 100644
--- a/quiche/http2/hpack/decoder/hpack_decoder_string_buffer.h
+++ b/quiche/http2/hpack/decoder/hpack_decoder_string_buffer.h
@@ -94,8 +94,7 @@
};
QUICHE_EXPORT_PRIVATE std::ostream& operator<<(
- std::ostream& out,
- const HpackDecoderStringBuffer& v);
+ std::ostream& out, const HpackDecoderStringBuffer& v);
} // namespace http2
diff --git a/quiche/http2/hpack/decoder/hpack_decoder_tables_test.cc b/quiche/http2/hpack/decoder/hpack_decoder_tables_test.cc
index cd4655b..2336dd1 100644
--- a/quiche/http2/hpack/decoder/hpack_decoder_tables_test.cc
+++ b/quiche/http2/hpack/decoder/hpack_decoder_tables_test.cc
@@ -111,9 +111,7 @@
const std::string& Value(const FakeHpackEntry& entry) {
return std::get<1>(entry);
}
-size_t Size(const FakeHpackEntry& entry) {
- return std::get<2>(entry);
-}
+size_t Size(const FakeHpackEntry& entry) { return std::get<2>(entry); }
class HpackDecoderTablesTest : public HpackDecoderStaticTableTest {
protected:
diff --git a/quiche/http2/hpack/decoder/hpack_decoder_test.cc b/quiche/http2/hpack/decoder/hpack_decoder_test.cc
index 18b7b64..ab2c52d 100644
--- a/quiche/http2/hpack/decoder/hpack_decoder_test.cc
+++ b/quiche/http2/hpack/decoder/hpack_decoder_test.cc
@@ -62,14 +62,10 @@
class MockHpackDecoderListener : public HpackDecoderListener {
public:
MOCK_METHOD(void, OnHeaderListStart, (), (override));
- MOCK_METHOD(void,
- OnHeader,
- (const std::string& name, const std::string& value),
- (override));
+ MOCK_METHOD(void, OnHeader,
+ (const std::string& name, const std::string& value), (override));
MOCK_METHOD(void, OnHeaderListEnd, (), (override));
- MOCK_METHOD(void,
- OnHeaderErrorDetected,
- (absl::string_view error_message),
+ MOCK_METHOD(void, OnHeaderErrorDetected, (absl::string_view error_message),
(override));
};
@@ -184,8 +180,7 @@
}
// dynamic_index is one-based, because that is the way RFC 7541 shows it.
- AssertionResult VerifyEntry(size_t dynamic_index,
- const char* name,
+ AssertionResult VerifyEntry(size_t dynamic_index, const char* name,
const char* value) {
const HpackStringPair* entry =
Lookup(dynamic_index + kFirstDynamicTableIndex - 1);
diff --git a/quiche/http2/hpack/decoder/hpack_entry_collector.cc b/quiche/http2/hpack/decoder/hpack_entry_collector.cc
index d2e7e2e..8ef3749 100644
--- a/quiche/http2/hpack/decoder/hpack_entry_collector.cc
+++ b/quiche/http2/hpack/decoder/hpack_entry_collector.cc
@@ -22,9 +22,7 @@
} // namespace
-HpackEntryCollector::HpackEntryCollector() {
- Clear();
-}
+HpackEntryCollector::HpackEntryCollector() { Clear(); }
HpackEntryCollector::HpackEntryCollector(const HpackEntryCollector& other) =
default;
@@ -32,8 +30,7 @@
HpackEntryCollector::HpackEntryCollector(HpackEntryType type,
size_t index_or_size)
: header_type_(type), index_(index_or_size), started_(true), ended_(true) {}
-HpackEntryCollector::HpackEntryCollector(HpackEntryType type,
- size_t index,
+HpackEntryCollector::HpackEntryCollector(HpackEntryType type, size_t index,
bool value_huffman,
const std::string& value)
: header_type_(type),
@@ -41,8 +38,7 @@
value_(value, value_huffman),
started_(true),
ended_(true) {}
-HpackEntryCollector::HpackEntryCollector(HpackEntryType type,
- bool name_huffman,
+HpackEntryCollector::HpackEntryCollector(HpackEntryType type, bool name_huffman,
const std::string& name,
bool value_huffman,
const std::string& value)
@@ -131,9 +127,7 @@
return header_type_ == kInvalidHeaderType && index_ == kInvalidIndex &&
name_.IsClear() && value_.IsClear() && !started_ && !ended_;
}
-bool HpackEntryCollector::IsComplete() const {
- return started_ && ended_;
-}
+bool HpackEntryCollector::IsComplete() const { return started_ && ended_; }
bool HpackEntryCollector::LiteralNameExpected() const {
switch (header_type_) {
case HpackEntryType::kIndexedLiteralHeader:
@@ -163,10 +157,8 @@
return ::testing::AssertionSuccess();
}
AssertionResult HpackEntryCollector::ValidateLiteralValueHeader(
- HpackEntryType expected_type,
- size_t expected_index,
- bool expected_value_huffman,
- absl::string_view expected_value) const {
+ HpackEntryType expected_type, size_t expected_index,
+ bool expected_value_huffman, absl::string_view expected_value) const {
VERIFY_TRUE(started_);
VERIFY_TRUE(ended_);
VERIFY_EQ(expected_type, header_type_);
@@ -177,10 +169,8 @@
return ::testing::AssertionSuccess();
}
AssertionResult HpackEntryCollector::ValidateLiteralNameValueHeader(
- HpackEntryType expected_type,
- bool expected_name_huffman,
- absl::string_view expected_name,
- bool expected_value_huffman,
+ HpackEntryType expected_type, bool expected_name_huffman,
+ absl::string_view expected_name, bool expected_value_huffman,
absl::string_view expected_value) const {
VERIFY_TRUE(started_);
VERIFY_TRUE(ended_);
diff --git a/quiche/http2/hpack/decoder/hpack_entry_collector.h b/quiche/http2/hpack/decoder/hpack_entry_collector.h
index aa3919c..24e70b2 100644
--- a/quiche/http2/hpack/decoder/hpack_entry_collector.h
+++ b/quiche/http2/hpack/decoder/hpack_entry_collector.h
@@ -35,14 +35,10 @@
// an HpackEntryCollector "manually", and then compare it against another
// that is populated via calls to the HpackEntryDecoderListener methods.
HpackEntryCollector(HpackEntryType type, size_t index_or_size);
- HpackEntryCollector(HpackEntryType type,
- size_t index,
- bool value_huffman,
+ HpackEntryCollector(HpackEntryType type, size_t index, bool value_huffman,
const std::string& value);
- HpackEntryCollector(HpackEntryType type,
- bool name_huffman,
- const std::string& name,
- bool value_huffman,
+ HpackEntryCollector(HpackEntryType type, bool name_huffman,
+ const std::string& name, bool value_huffman,
const std::string& value);
~HpackEntryCollector() override;
@@ -83,18 +79,14 @@
// value (i.e. OnStartLiteralHeader was called with a non-zero index for
// the name, which must match expected_index).
::testing::AssertionResult ValidateLiteralValueHeader(
- HpackEntryType expected_type,
- size_t expected_index,
- bool expected_value_huffman,
- absl::string_view expected_value) const;
+ HpackEntryType expected_type, size_t expected_index,
+ bool expected_value_huffman, absl::string_view expected_value) const;
// Returns success if collected a Header with an literal name and literal
// value.
::testing::AssertionResult ValidateLiteralNameValueHeader(
- HpackEntryType expected_type,
- bool expected_name_huffman,
- absl::string_view expected_name,
- bool expected_value_huffman,
+ HpackEntryType expected_type, bool expected_name_huffman,
+ absl::string_view expected_name, bool expected_value_huffman,
absl::string_view expected_value) const;
// Returns success if collected a Dynamic Table Size Update,
diff --git a/quiche/http2/hpack/decoder/hpack_entry_decoder.h b/quiche/http2/hpack/decoder/hpack_entry_decoder.h
index 50ddd98..d45f154 100644
--- a/quiche/http2/hpack/decoder/hpack_entry_decoder.h
+++ b/quiche/http2/hpack/decoder/hpack_entry_decoder.h
@@ -83,8 +83,7 @@
QUICHE_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& out,
const HpackEntryDecoder& v);
QUICHE_EXPORT_PRIVATE std::ostream& operator<<(
- std::ostream& out,
- HpackEntryDecoder::EntryDecoderState state);
+ std::ostream& out, HpackEntryDecoder::EntryDecoderState state);
} // namespace http2
diff --git a/quiche/http2/hpack/decoder/hpack_entry_decoder_listener.cc b/quiche/http2/hpack/decoder/hpack_entry_decoder_listener.cc
index c7fe4b4..bb55ec0 100644
--- a/quiche/http2/hpack/decoder/hpack_entry_decoder_listener.cc
+++ b/quiche/http2/hpack/decoder/hpack_entry_decoder_listener.cc
@@ -16,8 +16,7 @@
}
void HpackEntryDecoderVLoggingListener::OnStartLiteralHeader(
- HpackEntryType entry_type,
- size_t maybe_name_index) {
+ HpackEntryType entry_type, size_t maybe_name_index) {
HTTP2_VLOG(1) << "OnStartLiteralHeader: entry_type=" << entry_type
<< ", maybe_name_index=" << maybe_name_index;
if (wrapped_) {
diff --git a/quiche/http2/hpack/decoder/hpack_string_collector.cc b/quiche/http2/hpack/decoder/hpack_string_collector.cc
index 5709f2d..1966b7f 100644
--- a/quiche/http2/hpack/decoder/hpack_string_collector.cc
+++ b/quiche/http2/hpack/decoder/hpack_string_collector.cc
@@ -33,9 +33,7 @@
} // namespace
-HpackStringCollector::HpackStringCollector() {
- Clear();
-}
+HpackStringCollector::HpackStringCollector() { Clear(); }
HpackStringCollector::HpackStringCollector(const std::string& str, bool huffman)
: s(str), len(str.size()), huffman_encoded(huffman), state(kEnded) {}
@@ -51,13 +49,9 @@
return s.empty() && len == 0 && huffman_encoded == false && state == kGenesis;
}
-bool HpackStringCollector::IsInProgress() const {
- return state == kStarted;
-}
+bool HpackStringCollector::IsInProgress() const { return state == kStarted; }
-bool HpackStringCollector::HasEnded() const {
- return state == kEnded;
-}
+bool HpackStringCollector::HasEnded() const { return state == kEnded; }
void HpackStringCollector::OnStringStart(bool huffman, size_t length) {
EXPECT_TRUE(IsClear()) << ToString();
@@ -81,8 +75,7 @@
}
::testing::AssertionResult HpackStringCollector::Collected(
- absl::string_view str,
- bool is_huffman_encoded) const {
+ absl::string_view str, bool is_huffman_encoded) const {
VERIFY_TRUE(HasEnded());
VERIFY_EQ(str.size(), len);
VERIFY_EQ(is_huffman_encoded, huffman_encoded);
diff --git a/quiche/http2/hpack/decoder/hpack_string_decoder.h b/quiche/http2/hpack/decoder/hpack_string_decoder.h
index a856685..471bbc7 100644
--- a/quiche/http2/hpack/decoder/hpack_string_decoder.h
+++ b/quiche/http2/hpack/decoder/hpack_string_decoder.h
@@ -124,8 +124,7 @@
// If the length is not fully decoded, case state_ is set appropriately
// for the next call to Resume.
template <class Listener>
- bool StartDecodingLength(DecodeBuffer* db,
- Listener* cb,
+ bool StartDecodingLength(DecodeBuffer* db, Listener* cb,
DecodeStatus* status) {
if (db->Empty()) {
*status = DecodeStatus::kDecodeInProgress;
@@ -151,8 +150,7 @@
// If the length is not fully decoded, case state_ is set appropriately
// for the next call to Resume.
template <class Listener>
- bool ResumeDecodingLength(DecodeBuffer* db,
- Listener* cb,
+ bool ResumeDecodingLength(DecodeBuffer* db, Listener* cb,
DecodeStatus* status) {
QUICHE_DCHECK_EQ(state_, kResumeDecodingLength);
*status = length_decoder_.Resume(db);
diff --git a/quiche/http2/hpack/decoder/hpack_string_decoder_test.cc b/quiche/http2/hpack/decoder/hpack_string_decoder_test.cc
index cfdb20a..e10c7b1 100644
--- a/quiche/http2/hpack/decoder/hpack_string_decoder_test.cc
+++ b/quiche/http2/hpack/decoder/hpack_string_decoder_test.cc
@@ -51,23 +51,22 @@
// the string to be passed to Collected outlives the call to MakeValidator.
Validator MakeValidator(const std::string& expected_str,
bool expected_huffman) {
- return
- [expected_str, expected_huffman, this](
- const DecodeBuffer& /*input*/,
- DecodeStatus /*status*/) -> AssertionResult {
- AssertionResult result = Collected(expected_str, expected_huffman);
- if (result) {
- VERIFY_EQ(collector_,
- HpackStringCollector(expected_str, expected_huffman));
- } else {
- VERIFY_NE(collector_,
- HpackStringCollector(expected_str, expected_huffman));
- }
- HTTP2_VLOG(2) << collector_.ToString();
- collector_.Clear();
- HTTP2_VLOG(2) << collector_;
- return result;
- };
+ return [expected_str, expected_huffman, this](
+ const DecodeBuffer& /*input*/,
+ DecodeStatus /*status*/) -> AssertionResult {
+ AssertionResult result = Collected(expected_str, expected_huffman);
+ if (result) {
+ VERIFY_EQ(collector_,
+ HpackStringCollector(expected_str, expected_huffman));
+ } else {
+ VERIFY_NE(collector_,
+ HpackStringCollector(expected_str, expected_huffman));
+ }
+ HTTP2_VLOG(2) << collector_.ToString();
+ collector_.Clear();
+ HTTP2_VLOG(2) << collector_;
+ return result;
+ };
}
HpackStringDecoder decoder_;
diff --git a/quiche/http2/hpack/decoder/hpack_whole_entry_buffer_test.cc b/quiche/http2/hpack/decoder/hpack_whole_entry_buffer_test.cc
index 5c8ba80..4064d29 100644
--- a/quiche/http2/hpack/decoder/hpack_whole_entry_buffer_test.cc
+++ b/quiche/http2/hpack/decoder/hpack_whole_entry_buffer_test.cc
@@ -26,21 +26,16 @@
~MockHpackWholeEntryListener() override = default;
MOCK_METHOD(void, OnIndexedHeader, (size_t index), (override));
- MOCK_METHOD(void,
- OnNameIndexAndLiteralValue,
- (HpackEntryType entry_type,
- size_t name_index,
+ MOCK_METHOD(void, OnNameIndexAndLiteralValue,
+ (HpackEntryType entry_type, size_t name_index,
HpackDecoderStringBuffer* value_buffer),
(override));
- MOCK_METHOD(void,
- OnLiteralNameAndValue,
- (HpackEntryType entry_type,
- HpackDecoderStringBuffer* name_buffer,
+ MOCK_METHOD(void, OnLiteralNameAndValue,
+ (HpackEntryType entry_type, HpackDecoderStringBuffer* name_buffer,
HpackDecoderStringBuffer* value_buffer),
(override));
MOCK_METHOD(void, OnDynamicTableSizeUpdate, (size_t size), (override));
- MOCK_METHOD(void,
- OnHpackDecodeError,
+ MOCK_METHOD(void, OnHpackDecodeError,
(HpackDecodingError error, std::string detailed_error),
(override));
};
diff --git a/quiche/http2/hpack/decoder/hpack_whole_entry_listener.cc b/quiche/http2/hpack/decoder/hpack_whole_entry_listener.cc
index cafd6ec..d6fe82b 100644
--- a/quiche/http2/hpack/decoder/hpack_whole_entry_listener.cc
+++ b/quiche/http2/hpack/decoder/hpack_whole_entry_listener.cc
@@ -12,17 +12,14 @@
void HpackWholeEntryNoOpListener::OnIndexedHeader(size_t /*index*/) {}
void HpackWholeEntryNoOpListener::OnNameIndexAndLiteralValue(
- HpackEntryType /*entry_type*/,
- size_t /*name_index*/,
+ HpackEntryType /*entry_type*/, size_t /*name_index*/,
HpackDecoderStringBuffer* /*value_buffer*/) {}
void HpackWholeEntryNoOpListener::OnLiteralNameAndValue(
- HpackEntryType /*entry_type*/,
- HpackDecoderStringBuffer* /*name_buffer*/,
+ HpackEntryType /*entry_type*/, HpackDecoderStringBuffer* /*name_buffer*/,
HpackDecoderStringBuffer* /*value_buffer*/) {}
void HpackWholeEntryNoOpListener::OnDynamicTableSizeUpdate(size_t /*size*/) {}
void HpackWholeEntryNoOpListener::OnHpackDecodeError(
- HpackDecodingError /*error*/,
- std::string /*detailed_error*/) {}
+ HpackDecodingError /*error*/, std::string /*detailed_error*/) {}
// static
HpackWholeEntryNoOpListener* HpackWholeEntryNoOpListener::NoOpListener() {
diff --git a/quiche/http2/hpack/decoder/hpack_whole_entry_listener.h b/quiche/http2/hpack/decoder/hpack_whole_entry_listener.h
index 90c6f9d..a0776a6 100644
--- a/quiche/http2/hpack/decoder/hpack_whole_entry_listener.h
+++ b/quiche/http2/hpack/decoder/hpack_whole_entry_listener.h
@@ -33,8 +33,7 @@
// entry_type will be kIndexedLiteralHeader, kUnindexedLiteralHeader, or
// kNeverIndexedLiteralHeader.
virtual void OnNameIndexAndLiteralValue(
- HpackEntryType entry_type,
- size_t name_index,
+ HpackEntryType entry_type, size_t name_index,
HpackDecoderStringBuffer* value_buffer) = 0;
// Called when a header entry with a literal name and literal value
@@ -42,8 +41,7 @@
// kIndexedLiteralHeader, kUnindexedLiteralHeader, or
// kNeverIndexedLiteralHeader.
virtual void OnLiteralNameAndValue(
- HpackEntryType entry_type,
- HpackDecoderStringBuffer* name_buffer,
+ HpackEntryType entry_type, HpackDecoderStringBuffer* name_buffer,
HpackDecoderStringBuffer* value_buffer) = 0;
// Called when an update to the size of the peer's dynamic table has been
@@ -64,8 +62,7 @@
void OnIndexedHeader(size_t index) override;
void OnNameIndexAndLiteralValue(
- HpackEntryType entry_type,
- size_t name_index,
+ HpackEntryType entry_type, size_t name_index,
HpackDecoderStringBuffer* value_buffer) override;
void OnLiteralNameAndValue(HpackEntryType entry_type,
HpackDecoderStringBuffer* name_buffer,