@@ -133,7 +133,7 @@ class RestClientIntegrationTest : public ::testing::Test {
133133
134134TEST_F (RestClientIntegrationTest, Get) {
135135 options_.set <UnifiedCredentialsOption>(MakeInsecureCredentials ());
136- auto client = GetDefaultRestClient (url_, {});
136+ auto client = MakeDefaultRestClient (url_, {});
137137 RestRequest request;
138138 request.SetPath (" get" );
139139 auto response_status = RetryRestRequest ([&] { return client->Get (request); });
@@ -150,7 +150,7 @@ TEST_F(RestClientIntegrationTest, Get) {
150150TEST_F (RestClientIntegrationTest, Delete) {
151151 options_.set <UnifiedCredentialsOption>(MakeInsecureCredentials ());
152152 options_.set <UserIpOption>(" 127.0.0.1" );
153- auto client = GetDefaultRestClient (url_, options_);
153+ auto client = MakeDefaultRestClient (url_, options_);
154154 RestRequest request;
155155 request.SetPath (" delete" );
156156 request.AddQueryParameter ({" key" , " value" });
@@ -177,7 +177,7 @@ TEST_F(RestClientIntegrationTest, PatchJsonContentType) {
177177 "client_email": "[email protected] ", 178178})""" ;
179179
180- auto client = GetDefaultRestClient (url_, options_);
180+ auto client = MakeDefaultRestClient (url_, options_);
181181 RestRequest request;
182182 request.SetPath (" patch" );
183183 request.AddQueryParameter ({" type" , " service_account" });
@@ -209,7 +209,7 @@ TEST_F(RestClientIntegrationTest, PatchJsonContentType) {
209209
210210TEST_F (RestClientIntegrationTest, AnythingPostNoContentType) {
211211 options_.set <UnifiedCredentialsOption>(MakeInsecureCredentials ());
212- auto client = GetDefaultRestClient (url_, options_);
212+ auto client = MakeDefaultRestClient (url_, options_);
213213 RestRequest request;
214214 request.SetPath (" anything" );
215215
@@ -254,7 +254,7 @@ TEST_F(RestClientIntegrationTest, AnythingPostNoContentType) {
254254
255255TEST_F (RestClientIntegrationTest, AnythingPostJsonContentType) {
256256 options_.set <UnifiedCredentialsOption>(MakeInsecureCredentials ());
257- auto client = GetDefaultRestClient (url_, options_);
257+ auto client = MakeDefaultRestClient (url_, options_);
258258 RestRequest request;
259259 request.SetPath (" anything" );
260260
@@ -268,7 +268,7 @@ TEST_F(RestClientIntegrationTest, AnythingPostJsonContentType) {
268268
269269TEST_F (RestClientIntegrationTest, AnythingPutJsonContentTypeSingleSpan) {
270270 options_.set <UnifiedCredentialsOption>(MakeInsecureCredentials ());
271- auto client = GetDefaultRestClient (url_, options_);
271+ auto client = MakeDefaultRestClient (url_, options_);
272272 RestRequest request;
273273 request.SetPath (" anything" );
274274
@@ -282,7 +282,7 @@ TEST_F(RestClientIntegrationTest, AnythingPutJsonContentTypeSingleSpan) {
282282
283283TEST_F (RestClientIntegrationTest, AnythingPutJsonContentTypeTwoSpans) {
284284 options_.set <UnifiedCredentialsOption>(MakeInsecureCredentials ());
285- auto client = GetDefaultRestClient (url_, options_);
285+ auto client = MakeDefaultRestClient (url_, options_);
286286 RestRequest request;
287287 request.SetPath (" anything" );
288288
@@ -306,7 +306,7 @@ TEST_F(RestClientIntegrationTest, AnythingPutJsonContentTypeTwoSpans) {
306306
307307TEST_F (RestClientIntegrationTest, AnythingPutJsonContentTypeEmptyMiddleSpan) {
308308 options_.set <UnifiedCredentialsOption>(MakeInsecureCredentials ());
309- auto client = GetDefaultRestClient (url_, options_);
309+ auto client = MakeDefaultRestClient (url_, options_);
310310 RestRequest request;
311311 request.SetPath (" anything" );
312312
@@ -328,7 +328,7 @@ TEST_F(RestClientIntegrationTest, AnythingPutJsonContentTypeEmptyMiddleSpan) {
328328
329329TEST_F (RestClientIntegrationTest, AnythingPutJsonContentTypeEmptyFirstSpan) {
330330 options_.set <UnifiedCredentialsOption>(MakeInsecureCredentials ());
331- auto client = GetDefaultRestClient (url_, options_);
331+ auto client = MakeDefaultRestClient (url_, options_);
332332 RestRequest request;
333333 request.SetPath (" anything" );
334334
@@ -356,7 +356,7 @@ TEST_F(RestClientIntegrationTest, ResponseBodyLargerThanSpillBuffer) {
356356 auto large_json_payload = json.dump ();
357357 options_.set <UnifiedCredentialsOption>(MakeInsecureCredentials ());
358358 options_.set <ConnectionPoolSizeOption>(4 );
359- auto client = GetPooledRestClient (url_, options_);
359+ auto client = MakePooledRestClient (url_, options_);
360360 RestRequest request;
361361 request.SetPath (" anything" );
362362 request.AddHeader (" content-type" , " application/json" );
@@ -370,7 +370,7 @@ TEST_F(RestClientIntegrationTest, ResponseBodyLargerThanSpillBuffer) {
370370
371371TEST_F (RestClientIntegrationTest, PostFormData) {
372372 options_.set <UnifiedCredentialsOption>(MakeInsecureCredentials ());
373- auto client = GetDefaultRestClient (url_, options_);
373+ auto client = MakeDefaultRestClient (url_, options_);
374374 RestRequest request;
375375 request.SetPath (" anything" );
376376
0 commit comments