aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2017-05-11 08:00:30 -0700
committerGravatar Muxi Yan <mxyan@google.com>2017-05-11 08:00:30 -0700
commit96e198ab9f52ef76c9fb1ed079c20532d302ad53 (patch)
treeb3aa782342222f9fc555ad3fddc90ca7c8c0b402 /test/core/end2end
parent16fd216b0e01ee92c618bd098eeb446336f8cc3b (diff)
Fix portability
Diffstat (limited to 'test/core/end2end')
-rw-r--r--test/core/end2end/fixtures/h2_full+workarounds.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/core/end2end/fixtures/h2_full+workarounds.c b/test/core/end2end/fixtures/h2_full+workarounds.c
index cc86c3abf3..67a4c1972d 100644
--- a/test/core/end2end/fixtures/h2_full+workarounds.c
+++ b/test/core/end2end/fixtures/h2_full+workarounds.c
@@ -41,6 +41,7 @@
#include <grpc/support/sync.h>
#include <grpc/support/thd.h>
#include <grpc/support/useful.h>
+#include <grpc/support/workaround_list.h>
#include "src/core/ext/filters/client_channel/client_channel.h"
#include "src/core/ext/filters/http/server/http_server_filter.h"
#include "src/core/ext/transport/chttp2/transport/chttp2_transport.h"
@@ -50,10 +51,8 @@
#include "test/core/util/port.h"
#include "test/core/util/test_config.h"
-/* List the workarounds to be enabled */
-static char *workarounds_enabled[] = {GRPC_ARG_WORKAROUND_CRONET_COMPRESSION};
-static const size_t workarounds_num =
- sizeof(workarounds_enabled) / sizeof(*workarounds_enabled);
+static const size_t workarounds_num = GRPC_MAX_WORKAROUND_ID;
+static char *workarounds_enabled[GRPC_MAX_WORKAROUND_ID] = {GRPC_ARG_WORKAROUND_CRONET_COMPRESSION};
typedef struct fullstack_fixture_data {
char *localaddr;