diff options
author | Craig Tiller <ctiller@google.com> | 2017-10-13 10:16:15 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-10-13 10:16:15 -0700 |
commit | 4dcdba0de25b1bf9c6ccf861983964d2d0c9e925 (patch) | |
tree | aa97b6ff5041965e50d2fba94eba8b73b2a7c062 /test | |
parent | d6fe8e4357c78fc2d8f42fdcf7dffb15206cacd4 (diff) |
Fix windows portability
Diffstat (limited to 'test')
-rw-r--r-- | test/core/transport/bdp_estimator_test.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/core/transport/bdp_estimator_test.cc b/test/core/transport/bdp_estimator_test.cc index bfa77217c3..80cc174258 100644 --- a/test/core/transport/bdp_estimator_test.cc +++ b/test/core/transport/bdp_estimator_test.cc @@ -37,9 +37,11 @@ namespace { int g_clock = 0; gpr_timespec fake_gpr_now(gpr_clock_type clock_type) { - return (gpr_timespec){ - .tv_sec = g_clock, .tv_nsec = 0, .clock_type = clock_type, - }; + gpr_timespec ts; + ts.tv_sec = g_clock; + ts.tv_nsec = 0; + ts.clock_type = clock_type; + return ts; } void inc_time(void) { g_clock += 30; } |