@@ -142,7 +142,7 @@ TEST_P(IntegrationTest, PerWorkerStatsAndBalancing) {
142
142
143
143
// Per-worker listener stats.
144
144
auto check_listener_stats = [this ](uint64_t cx_active, uint64_t cx_total) {
145
- if (ip_version_ == Network::Address::IpVersion::v4) {
145
+ if (version_ == Network::Address::IpVersion::v4) {
146
146
test_server_->waitForGaugeEq (" listener.127.0.0.1_0.worker_0.downstream_cx_active" , cx_active);
147
147
test_server_->waitForGaugeEq (" listener.127.0.0.1_0.worker_1.downstream_cx_active" , cx_active);
148
148
test_server_->waitForCounterEq (" listener.127.0.0.1_0.worker_0.downstream_cx_total" , cx_total);
@@ -212,7 +212,7 @@ TEST_P(IntegrationTest, ConnectionBalanceFactory) {
212
212
initialize ();
213
213
214
214
auto check_listener_stats = [this ](uint64_t cx_active, uint64_t cx_total) {
215
- if (ip_version_ == Network::Address::IpVersion::v4) {
215
+ if (version_ == Network::Address::IpVersion::v4) {
216
216
test_server_->waitForGaugeEq (" listener.127.0.0.1_0.worker_0.downstream_cx_active" , cx_active);
217
217
test_server_->waitForGaugeEq (" listener.127.0.0.1_0.worker_1.downstream_cx_active" , cx_active);
218
218
test_server_->waitForCounterEq (" listener.127.0.0.1_0.worker_0.downstream_cx_total" , cx_total);
@@ -251,7 +251,7 @@ TEST_P(IntegrationTest, AllWorkersAreHandlingLoad) {
251
251
initialize ();
252
252
253
253
std::string worker0_stat_name, worker1_stat_name;
254
- if (ip_version_ == Network::Address::IpVersion::v4) {
254
+ if (version_ == Network::Address::IpVersion::v4) {
255
255
worker0_stat_name = " listener.127.0.0.1_0.worker_0.downstream_cx_total" ;
256
256
worker1_stat_name = " listener.127.0.0.1_0.worker_1.downstream_cx_total" ;
257
257
} else {
@@ -1512,7 +1512,7 @@ TEST_P(IntegrationTest, AbsolutePathUsingHttpsAllowedInternally) {
1512
1512
TEST_P (IntegrationTest, TestHostWithAddress) {
1513
1513
useAccessLog (" %REQ(Host)%" );
1514
1514
std::string address_string;
1515
- if (ip_version_ == Network::Address::IpVersion::v4) {
1515
+ if (version_ == Network::Address::IpVersion::v4) {
1516
1516
address_string = TestUtility::getIpv4Loopback ();
1517
1517
} else {
1518
1518
address_string = " [::1]" ;
@@ -1660,7 +1660,7 @@ TEST_P(IntegrationTest, TestHeadWithExplicitTE) {
1660
1660
1661
1661
TEST_P (IntegrationTest, TestBind) {
1662
1662
std::string address_string;
1663
- if (ip_version_ == Network::Address::IpVersion::v4) {
1663
+ if (version_ == Network::Address::IpVersion::v4) {
1664
1664
address_string = TestUtility::getIpv4Loopback ();
1665
1665
} else {
1666
1666
address_string = " ::1" ;
@@ -1923,7 +1923,7 @@ INSTANTIATE_TEST_SUITE_P(IpVersionsAndHttp1Parser, UpstreamEndpointIntegrationTe
1923
1923
TEST_P (UpstreamEndpointIntegrationTest, TestUpstreamEndpointAddress) {
1924
1924
initialize ();
1925
1925
EXPECT_STREQ (fake_upstreams_[0 ]->localAddress ()->ip ()->addressAsString ().c_str (),
1926
- Network::Test::getLoopbackAddressString (ip_version_ ).c_str ());
1926
+ Network::Test::getLoopbackAddressString (version_ ).c_str ());
1927
1927
}
1928
1928
1929
1929
// Send continuous pipelined requests while not reading responses, to check
@@ -2508,7 +2508,7 @@ TEST_P(IntegrationTest, SetRouteToDelegatingRouteWithClusterOverride) {
2508
2508
initialize ();
2509
2509
2510
2510
const std::string ip_port_pair =
2511
- absl::StrCat (Network::Test::getLoopbackAddressUrlString (ip_version_ ), " :" ,
2511
+ absl::StrCat (Network::Test::getLoopbackAddressUrlString (version_ ), " :" ,
2512
2512
fake_upstreams_[1 ]->localAddress ()->ip ()->port ());
2513
2513
2514
2514
Http::TestRequestHeaderMapImpl request_headers{
0 commit comments