aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/transport/chttp2
diff options
context:
space:
mode:
authorGravatar ctiller <ctiller@google.com>2014-12-09 15:05:40 -0800
committerGravatar Jan Tattermusch <jtattermusch@google.com>2014-12-09 16:20:55 -0800
commit84518b4b853316fb5a9a63e6d89961da55d8b325 (patch)
tree7a0ff0d46e42db83ef0cf4ef25d3d43bfbe76f80 /test/core/transport/chttp2
parent18b49ab914ea5a57f22ed6d77520cd7d4372749b (diff)
Advertise h2-16, h2-15, h2-14, and accept any of them.
Change on 2014/12/09 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81719124
Diffstat (limited to 'test/core/transport/chttp2')
-rw-r--r--test/core/transport/chttp2/alpn_test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/core/transport/chttp2/alpn_test.c b/test/core/transport/chttp2/alpn_test.c
index 65b7af8683..7a70b0ca7f 100644
--- a/test/core/transport/chttp2/alpn_test.c
+++ b/test/core/transport/chttp2/alpn_test.c
@@ -37,8 +37,7 @@
#include "test/core/util/test_config.h"
static void test_alpn_success(void) {
- const char *version = GRPC_CHTTP2_ALPN_VERSION;
- GPR_ASSERT(grpc_chttp2_is_alpn_version_supported(version, strlen(version)));
+ GPR_ASSERT(grpc_chttp2_is_alpn_version_supported("h2-16", 5));
GPR_ASSERT(grpc_chttp2_is_alpn_version_supported("h2-15", 5));
GPR_ASSERT(grpc_chttp2_is_alpn_version_supported("h2-14", 5));
}