TEST_P(ProtocolIntegrationTest, TrailersWireBytesCountDownstream) {
  // we only care about upstream protocol.
  if (upstreamProtocol() != Http::CodecType::HTTP2) {
    return;
  }
  useAccessLog("%DOWNSTREAM_WIRE_BYTES_SENT% %DOWNSTREAM_WIRE_BYTES_RECEIVED% "
               "%DOWNSTREAM_HEADER_BYTES_SENT% %DOWNSTREAM_HEADER_BYTES_RECEIVED%");
  config_helper_.addConfigModifier(setEnableDownstreamTrailersHttp1());
  config_helper_.addConfigModifier(setEnableUpstreamTrailersHttp1());

  testTrailers(10, 20, true, true);

  expectDownstreamBytesSentAndReceived(BytesCountExpectation(206, 132, 156, 76),
                                       BytesCountExpectation(136, 86, 107, 67),
                                       BytesCountExpectation(36, 26, 14, 10));
}
TEST_P(ProtocolIntegrationTest, TrailersWireBytesCountDownstream) {
   
  if (upstreamProtocol() != Http::CodecType::HTTP2) {
    return;
  }
  useAccessLog("%DOWNSTREAM_WIRE_BYTES_SENT% %DOWNSTREAM_WIRE_BYTES_RECEIVED% "
               "%DOWNSTREAM_HEADER_BYTES_SENT% %DOWNSTREAM_HEADER_BYTES_RECEIVED%");
  config_helper_.addConfigModifier(setEnableDownstreamTrailersHttp1());
  config_helper_.addConfigModifier(setEnableUpstreamTrailersHttp1());

  testTrailers(10, 20, true, true);

  expectDownstreamBytesSentAndReceived(BytesCountExpectation(206, 132, 156, 76),
                                       BytesCountExpectation(136, 86, 107, 67),
                                       BytesCountExpectation(36, 26, 14, 10));
}