Update test

pull/5897/head
Craig Tiller 9 years ago
parent d262454b98
commit e07c368861
  1. 11
      test/core/transport/chttp2/timeout_encoding_test.c

@ -36,11 +36,11 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "src/core/support/string.h"
#include <grpc/support/alloc.h> #include <grpc/support/alloc.h>
#include <grpc/support/log.h> #include <grpc/support/log.h>
#include <grpc/support/string_util.h> #include <grpc/support/string_util.h>
#include <grpc/support/useful.h> #include <grpc/support/useful.h>
#include "src/core/support/string.h"
#include "test/core/util/test_config.h" #include "test/core/util/test_config.h"
#define LOG_TEST(x) gpr_log(GPR_INFO, "%s", x) #define LOG_TEST(x) gpr_log(GPR_INFO, "%s", x)
@ -128,11 +128,10 @@ void test_decoding(void) {
decode_suite('H', gpr_time_from_hours); decode_suite('H', gpr_time_from_hours);
assert_decodes_as("1000000000S", assert_decodes_as("1000000000S",
gpr_time_from_seconds(1000 * 1000 * 1000, GPR_TIMESPAN)); gpr_time_from_seconds(1000 * 1000 * 1000, GPR_TIMESPAN));
assert_decodes_as("1000000000000000000000u", assert_decodes_as("1000000000000000000000u", gpr_inf_future(GPR_TIMESPAN));
gpr_inf_future(GPR_CLOCK_REALTIME)); assert_decodes_as("1000000001S", gpr_inf_future(GPR_TIMESPAN));
assert_decodes_as("1000000001S", gpr_inf_future(GPR_CLOCK_REALTIME)); assert_decodes_as("2000000001S", gpr_inf_future(GPR_TIMESPAN));
assert_decodes_as("2000000001S", gpr_inf_future(GPR_CLOCK_REALTIME)); assert_decodes_as("9999999999S", gpr_inf_future(GPR_TIMESPAN));
assert_decodes_as("9999999999S", gpr_inf_future(GPR_CLOCK_REALTIME));
} }
void test_decoding_fails(void) { void test_decoding_fails(void) {

Loading…
Cancel
Save