@@ -66,10 +66,9 @@ class CreateClientIntegrationTest
6666#include " google/cloud/internal/disable_deprecation_warnings.inc"
6767
6868TEST_F (CreateClientIntegrationTest, DefaultWorks) {
69- auto client = Client::CreateDefaultClient ();
70- ASSERT_THAT (client, IsOk ());
69+ auto client = Client (Options{});
7170 ASSERT_NO_FATAL_FAILURE (
72- UseClient (* client, bucket_name (), MakeRandomObjectName (), LoremIpsum ()));
71+ UseClient (client, bucket_name (), MakeRandomObjectName (), LoremIpsum ()));
7372}
7473
7574TEST_F (CreateClientIntegrationTest, SettingPolicies) {
@@ -79,24 +78,20 @@ TEST_F(CreateClientIntegrationTest, SettingPolicies) {
7978 ASSERT_THAT (c, IsOk ());
8079 credentials = *std::move (c);
8180 }
82- auto client =
83- Client (Options{}),
84- LimitedErrorCountRetryPolicy (/* maximum_failures=*/ 5 ),
85- ExponentialBackoffPolicy (/* initial_delay=*/ std::chrono::seconds (1 ),
86- /* maximum_delay=*/ std::chrono::minutes (5 ),
87- /* scaling=*/ 1.5 ));
81+ auto client = Client (
82+ Options{}
83+ .set <RetryPolicyOption>(
84+ LimitedErrorCountRetryPolicy (/* maximum_failures=*/ 5 ).clone ())
85+ .set <BackoffPolicyOption>(
86+ ExponentialBackoffPolicy (
87+ /* initial_delay=*/ std::chrono::seconds (1 ),
88+ /* maximum_delay=*/ std::chrono::minutes (5 ),
89+ /* scaling=*/ 1.5 )
90+ .clone ()));
8891 ASSERT_NO_FATAL_FAILURE (
8992 UseClient (client, bucket_name (), MakeRandomObjectName (), LoremIpsum ()));
9093}
9194
92- // / @test Verify the backwards compatibility `v1` namespace still exists.
93- TEST_F (CreateClientIntegrationTest, BackwardsCompatibility) {
94- auto client = Client (Options{});
95- ASSERT_THAT (client, IsOk ());
96- ASSERT_NO_FATAL_FAILURE (
97- UseClient (*client, bucket_name (), MakeRandomObjectName (), LoremIpsum ()));
98- }
99-
10095} // namespace
10196GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
10297} // namespace storage
0 commit comments