diff options
author | 2016-01-19 17:55:40 -0800 | |
---|---|---|
committer | 2016-01-19 18:48:16 -0800 | |
commit | 6633647822c8dff848a7a49bd6db974485f884bd (patch) | |
tree | 23c6b56c694e6ef0b96717751d955d642115e37d /test/core/transport/chttp2 | |
parent | 7ff9f3fe7fc38ea120eecadb6dad980890255731 (diff) |
improve decode_timeout implementation
Diffstat (limited to 'test/core/transport/chttp2')
-rw-r--r-- | test/core/transport/chttp2/timeout_encoding_test.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/core/transport/chttp2/timeout_encoding_test.c b/test/core/transport/chttp2/timeout_encoding_test.c index ba6c3191f1..ec1260419f 100644 --- a/test/core/transport/chttp2/timeout_encoding_test.c +++ b/test/core/transport/chttp2/timeout_encoding_test.c @@ -126,8 +126,16 @@ void test_decoding(void) { decode_suite('S', gpr_time_from_seconds); decode_suite('M', gpr_time_from_minutes); decode_suite('H', gpr_time_from_hours); + assert_decodes_as("1000000000S", + gpr_time_from_seconds(1000 * 1000 * 1000, GPR_TIMESPAN)); assert_decodes_as("1000000000000000000000u", gpr_inf_future(GPR_CLOCK_REALTIME)); + assert_decodes_as("1000000001S", + gpr_inf_future(GPR_CLOCK_REALTIME)); + assert_decodes_as("2000000001S", + gpr_inf_future(GPR_CLOCK_REALTIME)); + assert_decodes_as("9999999999S", + gpr_inf_future(GPR_CLOCK_REALTIME)); } void test_decoding_fails(void) { |