Skip to content

Commit f6d8749

Browse files
authored
fix: remove chrono_literals namespace and add namespace alias (#12524)
1 parent 0faaa81 commit f6d8749

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/cloud/storage/internal/async/connection_impl_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ auto constexpr kAuthority = "storage.googleapis.com";
6666
std::shared_ptr<AsyncConnection> MakeTestConnection(
6767
CompletionQueue cq, std::shared_ptr<storage::testing::MockStorageStub> mock,
6868
Options options = {}) {
69-
using namespace std::chrono_literals; // NOLINT(google-using-directives)
69+
using ms = std::chrono::milliseconds;
7070
options = internal::MergeOptions(
7171
std::move(options),
7272
Options{}
7373
.set<storage::RetryPolicyOption>(
7474
storage::LimitedErrorCountRetryPolicy(2).clone())
7575
.set<storage::BackoffPolicyOption>(
76-
storage::ExponentialBackoffPolicy(1ms, 2ms, 2.0).clone()));
76+
storage::ExponentialBackoffPolicy(ms(1), ms(2), 2.0).clone()));
7777
return MakeAsyncConnection(std::move(cq), std::move(mock),
7878
DefaultOptionsGrpc(std::move(options)));
7979
}

0 commit comments

Comments
 (0)