diff options
author | jboeuf <jboeuf@users.noreply.github.com> | 2015-01-23 14:28:14 -0800 |
---|---|---|
committer | jboeuf <jboeuf@users.noreply.github.com> | 2015-01-23 14:28:14 -0800 |
commit | 10f4620e93bd1a398907e7ce3f5f1528f7be61e4 (patch) | |
tree | 6b454fc9fb40c993adba0c8d481ea0b05b5a4b1b /test/core/transport | |
parent | 1693a71abea9aaf930ad35b253cdeb16fd63f041 (diff) | |
parent | b7b9c758ed04a2de87822b5f37a993e529b84c28 (diff) |
Merge pull request #179 from ctiller/kill-printf
Remove uses of sprintf
Diffstat (limited to 'test/core/transport')
-rw-r--r-- | test/core/transport/chttp2/bin_encoder_test.c | 2 | ||||
-rw-r--r-- | test/core/transport/chttp2/stream_encoder_test.c | 2 | ||||
-rw-r--r-- | test/core/transport/chttp2/timeout_encoding_test.c | 2 | ||||
-rw-r--r-- | test/core/transport/transport_end2end_tests.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/test/core/transport/chttp2/bin_encoder_test.c b/test/core/transport/chttp2/bin_encoder_test.c index ea24f5cbd7..048ed7edd3 100644 --- a/test/core/transport/chttp2/bin_encoder_test.c +++ b/test/core/transport/chttp2/bin_encoder_test.c @@ -35,9 +35,9 @@ #include <string.h> +#include "src/core/support/string.h" #include <grpc/support/alloc.h> #include <grpc/support/log.h> -#include <grpc/support/string.h> static int all_ok = 1; diff --git a/test/core/transport/chttp2/stream_encoder_test.c b/test/core/transport/chttp2/stream_encoder_test.c index cebc2634fb..eb0f688f58 100644 --- a/test/core/transport/chttp2/stream_encoder_test.c +++ b/test/core/transport/chttp2/stream_encoder_test.c @@ -35,10 +35,10 @@ #include <stdio.h> +#include "src/core/support/string.h" #include "src/core/transport/chttp2/hpack_parser.h" #include <grpc/support/alloc.h> #include <grpc/support/log.h> -#include <grpc/support/string.h> #include "test/core/util/parse_hexstring.h" #include "test/core/util/slice_splitter.h" #include "test/core/util/test_config.h" diff --git a/test/core/transport/chttp2/timeout_encoding_test.c b/test/core/transport/chttp2/timeout_encoding_test.c index 4bb84e3f0b..ffa0070e34 100644 --- a/test/core/transport/chttp2/timeout_encoding_test.c +++ b/test/core/transport/chttp2/timeout_encoding_test.c @@ -43,7 +43,7 @@ #define LOG_TEST() gpr_log(GPR_INFO, "%s", __FUNCTION__) static void assert_encodes_as(gpr_timespec ts, const char *s) { - char buffer[32]; + char buffer[GRPC_CHTTP2_TIMEOUT_ENCODE_MIN_BUFSIZE]; grpc_chttp2_encode_timeout(ts, buffer); gpr_log(GPR_INFO, "check '%s' == '%s'", buffer, s); GPR_ASSERT(0 == strcmp(buffer, s)); diff --git a/test/core/transport/transport_end2end_tests.c b/test/core/transport/transport_end2end_tests.c index 5d26ef53b9..8e9b4a2cc9 100644 --- a/test/core/transport/transport_end2end_tests.c +++ b/test/core/transport/transport_end2end_tests.c @@ -37,10 +37,10 @@ #include <stdio.h> #include <string.h> +#include "src/core/support/string.h" #include "src/core/transport/transport.h" #include <grpc/support/alloc.h> #include <grpc/support/log.h> -#include <grpc/support/string.h> #include <grpc/support/thd.h> #include <grpc/support/useful.h> |