Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Yan Avlasov <yavlasov@google.com>
  • Loading branch information
yanavlasov committed Sep 20, 2023
1 parent d268270 commit e5531f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/server/admin/admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ void AdminImpl::addListenerToHandler(Network::ConnectionHandler* handler) {
}
}

#ifdef ENVOY_ENABLE_UHV
::Envoy::Http::HeaderValidatorStats&
AdminImpl::getHeaderValidatorStats([[maybe_unused]] Http::Protocol protocol) {
switch (protocol) {
Expand All @@ -532,6 +533,7 @@ AdminImpl::getHeaderValidatorStats([[maybe_unused]] Http::Protocol protocol) {
}
PANIC_DUE_TO_CORRUPT_ENUM;
}
#endif

} // namespace Server
} // namespace Envoy
2 changes: 2 additions & 0 deletions source/server/admin/admin.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ class AdminImpl : public Admin,
private:
friend class AdminTestingPeer;

#ifdef ENVOY_ENABLE_UHV
::Envoy::Http::HeaderValidatorStats& getHeaderValidatorStats(Http::Protocol protocol);
#endif

/**
* Creates a Request from the request in the admin stream.
Expand Down

0 comments on commit e5531f1

Please sign in to comment.