aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/bad_client
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-12-07 10:58:55 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-12-07 10:58:55 -0800
commite219e02fd15ed13d7d5f3dab0e0180cbb3fc9c2b (patch)
treee0a312176ea5d833b2dc5c21d074a5dc43a3baf9 /test/core/bad_client
parent535701c5bd8e36a2be5db16c42964515982e78b6 (diff)
Add tests for dynamic table resizing
Diffstat (limited to 'test/core/bad_client')
-rw-r--r--test/core/bad_client/tests/headers.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/core/bad_client/tests/headers.c b/test/core/bad_client/tests/headers.c
index fdf9eef1b2..1095ecafac 100644
--- a/test/core/bad_client/tests/headers.c
+++ b/test/core/bad_client/tests/headers.c
@@ -165,5 +165,30 @@ int main(int argc, char **argv) {
"\x01",
GRPC_BAD_CLIENT_DISCONNECT);
+ /* dynamic table size update: set to default */
+ GRPC_RUN_BAD_CLIENT_TEST(verifier,
+ PFX_STR
+ "\x00\x00\x03\x01\x04\x00\x00\x00\x01"
+ "\x3f\xe1\x1f",
+ GRPC_BAD_CLIENT_DISCONNECT);
+ GRPC_RUN_BAD_CLIENT_TEST(verifier,
+ PFX_STR
+ "\x00\x00\x03\x01\x04\x00\x00\x00\x01"
+ "\x3f\xf1\x1f",
+ 0);
+
+ /* non-ending header followed by continuation frame */
+ GRPC_RUN_BAD_CLIENT_TEST(verifier,
+ PFX_STR
+ "\x00\x00\x00\x01\x00\x00\x00\x00\x01"
+ "\x00\x00\x00\x09\x04\x00\x00\x00\x01",
+ GRPC_BAD_CLIENT_DISCONNECT);
+ /* non-ending header followed by non-continuation frame */
+ GRPC_RUN_BAD_CLIENT_TEST(verifier,
+ PFX_STR
+ "\x00\x00\x00\x01\x00\x00\x00\x00\x01"
+ "\x00\x00\x00\x00\x04\x00\x00\x00\x01",
+ 0);
+
return 0;
}