Fix broken clang-tidy (#31666)

pull/31651/head^2
Vignesh Babu 2 years ago committed by GitHub
parent afec64877d
commit 864f08ff0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      test/core/event_engine/posix/traced_buffer_list_test.cc
  2. 7
      test/core/iomgr/buffer_list_test.cc

@ -55,9 +55,10 @@ void InitGlobals() {
void AdvanceClockMillis(uint64_t millis) { void AdvanceClockMillis(uint64_t millis) {
grpc_core::ExecCtx exec_ctx; grpc_core::ExecCtx exec_ctx;
g_now = gpr_time_add( g_now = gpr_time_add(
g_now, gpr_time_from_millis( g_now,
grpc_core::Clamp(millis, uint64_t(1), kMaxAdvanceTimeMillis), gpr_time_from_millis(grpc_core::Clamp(millis, static_cast<uint64_t>(1),
GPR_TIMESPAN)); kMaxAdvanceTimeMillis),
GPR_TIMESPAN));
exec_ctx.InvalidateNow(); exec_ctx.InvalidateNow();
} }

@ -53,9 +53,10 @@ void InitGlobals() {
void AdvanceClockMillis(uint64_t millis) { void AdvanceClockMillis(uint64_t millis) {
grpc_core::ExecCtx exec_ctx; grpc_core::ExecCtx exec_ctx;
g_now = gpr_time_add( g_now = gpr_time_add(
g_now, gpr_time_from_millis( g_now,
grpc_core::Clamp(millis, uint64_t(1), kMaxAdvanceTimeMillis), gpr_time_from_millis(grpc_core::Clamp(millis, static_cast<uint64_t>(1),
GPR_TIMESPAN)); kMaxAdvanceTimeMillis),
GPR_TIMESPAN));
exec_ctx.InvalidateNow(); exec_ctx.InvalidateNow();
} }

Loading…
Cancel
Save