#include "test/integration/http_protocol_integration.h" #include "absl/strings/str_cat.h" namespace Envoy { std::vector HttpProtocolIntegrationTest::getProtocolTestParams( const std::vector& downstream_protocols, const std::vector& upstream_protocols) { std::vector ret; for (auto ip_version : TestEnvironment::getIpVersionsForTest()) { for (auto downstream_protocol : downstream_protocols) { for (auto upstream_protocol : upstream_protocols) { ret.push_back(HttpProtocolTestParams{ip_version, downstream_protocol, upstream_protocol}); } } } return ret; } std::string HttpProtocolIntegrationTest::protocolTestParamsToString( const ::testing::TestParamInfo& params) { return absl::StrCat( (params.param.version == Network::Address::IpVersion::v4 ? "IPv4_" : "IPv6_"), (params.param.downstream_protocol == Http::CodecClient::Type::HTTP2 ? "Http2Downstream_" : "HttpDownstream_"), (params.param.upstream_protocol == FakeHttpConnection::Type::HTTP2 ? "Http2Upstream" : "HttpUpstream")); } } // namespace Envoy