diff options
author | Yang Gao <yangg@google.com> | 2015-12-10 09:52:48 -0800 |
---|---|---|
committer | Yang Gao <yangg@google.com> | 2015-12-10 09:52:48 -0800 |
commit | 680bed616a9fb9a6f0c69bc8b06d2864d94250be (patch) | |
tree | 9f51edf3f8955d71c4191e3ede5ff7ea6f6cc507 /test | |
parent | f3bcb1c2cb86545551a3e9e24a8d946d913f7f26 (diff) | |
parent | 0ca9952e43a68d36592188c0c754d54b5977ec5e (diff) |
Merge pull request #4378 from ctiller/moar_settings
Cover more of frame_settings.c
Diffstat (limited to 'test')
-rw-r--r-- | test/core/bad_client/tests/initial_settings_frame.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/core/bad_client/tests/initial_settings_frame.c b/test/core/bad_client/tests/initial_settings_frame.c index 129c667f71..17ad99df4e 100644 --- a/test/core/bad_client/tests/initial_settings_frame.c +++ b/test/core/bad_client/tests/initial_settings_frame.c @@ -103,6 +103,19 @@ int main(int argc, char **argv) { GRPC_RUN_BAD_CLIENT_TEST(verifier, PFX_STR ONE_SETTING_HDR "\x00\x04\x00\x01\x00\x00", GRPC_BAD_CLIENT_DISCONNECT); + /* ack with data */ + GRPC_RUN_BAD_CLIENT_TEST(verifier, + PFX_STR + "\x00\x00\x00\x04\x00\x00\x00\x00\x00" + "\x00\x00\x01\x04\x01\x00\x00\x00\x00", 0); + /* settings frame with invalid flags */ + GRPC_RUN_BAD_CLIENT_TEST(verifier, + PFX_STR + "\x00\x00\x00\x04\x10\x00\x00\x00\x00", 0); + /* unknown settings should be ignored */ + GRPC_RUN_BAD_CLIENT_TEST(verifier, + PFX_STR ONE_SETTING_HDR "\x00\x99\x00\x00\x00\x00", + GRPC_BAD_CLIENT_DISCONNECT); return 0; } |