reviewable/pr8842/r2
Craig Tiller 8 years ago
parent b9a5e07373
commit 9e90d22ab7
  1. 3
      test/core/client_channel/set_initial_connect_string_test.c
  2. 3
      test/cpp/test/server_context_test_spouse_test.cc

@ -208,8 +208,7 @@ static void match_initial_magic_string(grpc_slice_buffer *buffer) {
size_t magic_length = strlen(magic_connect_string);
GPR_ASSERT(buffer->length >= magic_length);
for (i = 0, j = 0; i < state.incoming_buffer.count && j < magic_length; i++) {
char *dump =
grpc_slice_to_c_string(state.incoming_buffer.slices[i]);
char *dump = grpc_slice_to_c_string(state.incoming_buffer.slices[i]);
cmp_length = GPR_MIN(strlen(dump), magic_length - j);
GPR_ASSERT(strncmp(dump, magic_connect_string + j, cmp_length) == 0);
j += cmp_length;

@ -36,11 +36,14 @@
#include <cstring>
#include <vector>
#include <grpc++/impl/grpc_library.h>
#include <gtest/gtest.h>
namespace grpc {
namespace testing {
static internal::GrpcLibraryInitializer g_initializer;
const char key1[] = "metadata-key1";
const char key2[] = "metadata-key2";
const char val1[] = "metadata-val1";

Loading…
Cancel
Save