aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core
diff options
context:
space:
mode:
authorGravatar ctiller <ctiller@google.com>2014-12-10 08:43:47 -0800
committerGravatar Michael Lumish <mlumish@google.com>2014-12-10 13:22:22 -0800
commit48b5a4586a1292453c316c562afcee80b3d2b67d (patch)
tree4504df8e7865af964c71bf731812c178e8a8f16d /test/core
parent15e664bf6d193dbe99b68e98c7e97e36e67d3d2e (diff)
Advertise h2-16, h2-15, h2-14, and accept any of them.
(Fixing the rollback from earlier - we were passing '1' as the protocol count, not num_alpn_protocols) Change on 2014/12/10 by ctiller <ctiller@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81783755
Diffstat (limited to 'test/core')
-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));
}