TEST_P(ProtocolIntegrationTest, TrailersWireBytesCountUpstream) {
  // we only care about upstream protocol.
  if (downstreamProtocol() != Http::CodecType::HTTP2) {
    return;
  }
  useAccessLog("%UPSTREAM_WIRE_BYTES_SENT% %UPSTREAM_WIRE_BYTES_RECEIVED% "
               "%UPSTREAM_HEADER_BYTES_SENT% %UPSTREAM_HEADER_BYTES_RECEIVED%");
  config_helper_.addConfigModifier(setEnableDownstreamTrailersHttp1());
  config_helper_.addConfigModifier(setEnableUpstreamTrailersHttp1());

  testTrailers(10, 20, true, true);

  expectUpstreamBytesSentAndReceived(BytesCountExpectation(248, 120, 196, 67),
                                     BytesCountExpectation(172, 81, 154, 52),
                                     BytesCountExpectation(154, 33, 142, 7));
}
TEST_P(ProtocolIntegrationTest, TrailersWireBytesCountUpstream) {
   
  if (downstreamProtocol() != Http::CodecType::HTTP2) {
    return;
  }
  useAccessLog("%UPSTREAM_WIRE_BYTES_SENT% %UPSTREAM_WIRE_BYTES_RECEIVED% "
               "%UPSTREAM_HEADER_BYTES_SENT% %UPSTREAM_HEADER_BYTES_RECEIVED%");
  config_helper_.addConfigModifier(setEnableDownstreamTrailersHttp1());
  config_helper_.addConfigModifier(setEnableUpstreamTrailersHttp1());

  testTrailers(10, 20, true, true);

  expectUpstreamBytesSentAndReceived(BytesCountExpectation(248, 120, 196, 67),
                                     BytesCountExpectation(172, 81, 154, 52),
                                     BytesCountExpectation(154, 33, 142, 7));
}