Fix windows portability

pull/12998/head
Craig Tiller 7 years ago
parent d6fe8e4357
commit 4dcdba0de2
  1. 8
      test/core/transport/bdp_estimator_test.cc

@ -37,9 +37,11 @@ namespace {
int g_clock = 0; int g_clock = 0;
gpr_timespec fake_gpr_now(gpr_clock_type clock_type) { gpr_timespec fake_gpr_now(gpr_clock_type clock_type) {
return (gpr_timespec){ gpr_timespec ts;
.tv_sec = g_clock, .tv_nsec = 0, .clock_type = clock_type, ts.tv_sec = g_clock;
}; ts.tv_nsec = 0;
ts.clock_type = clock_type;
return ts;
} }
void inc_time(void) { g_clock += 30; } void inc_time(void) { g_clock += 30; }

Loading…
Cancel
Save