aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core
diff options
context:
space:
mode:
Diffstat (limited to 'test/core')
-rw-r--r--test/core/end2end/end2end_nosec_tests.c24
-rw-r--r--test/core/end2end/end2end_tests.c24
-rw-r--r--test/core/end2end/fuzzers/hpack.dictionary10
-rwxr-xr-xtest/core/end2end/generate_tests.bzl1
4 files changed, 56 insertions, 3 deletions
diff --git a/test/core/end2end/end2end_nosec_tests.c b/test/core/end2end/end2end_nosec_tests.c
index 9e75397502..67553d52b4 100644
--- a/test/core/end2end/end2end_nosec_tests.c
+++ b/test/core/end2end/end2end_nosec_tests.c
@@ -126,6 +126,12 @@ extern void simple_metadata(grpc_end2end_test_config config);
extern void simple_metadata_pre_init(void);
extern void simple_request(grpc_end2end_test_config config);
extern void simple_request_pre_init(void);
+extern void stream_compressed_payload(grpc_end2end_test_config config);
+extern void stream_compressed_payload_pre_init(void);
+extern void stream_payload(grpc_end2end_test_config config);
+extern void stream_payload_pre_init(void);
+extern void stream_ping_pong_streaming(grpc_end2end_test_config config);
+extern void stream_ping_pong_streaming_pre_init(void);
extern void streaming_error_response(grpc_end2end_test_config config);
extern void streaming_error_response_pre_init(void);
extern void trailing_metadata(grpc_end2end_test_config config);
@@ -189,6 +195,9 @@ void grpc_end2end_tests_pre_init(void) {
simple_delayed_request_pre_init();
simple_metadata_pre_init();
simple_request_pre_init();
+ stream_compressed_payload_pre_init();
+ stream_payload_pre_init();
+ stream_ping_pong_streaming_pre_init();
streaming_error_response_pre_init();
trailing_metadata_pre_init();
workaround_cronet_compression_pre_init();
@@ -251,6 +260,9 @@ void grpc_end2end_tests(int argc, char **argv,
simple_delayed_request(config);
simple_metadata(config);
simple_request(config);
+ stream_compressed_payload(config);
+ stream_payload(config);
+ stream_ping_pong_streaming(config);
streaming_error_response(config);
trailing_metadata(config);
workaround_cronet_compression(config);
@@ -452,6 +464,18 @@ void grpc_end2end_tests(int argc, char **argv,
simple_request(config);
continue;
}
+ if (0 == strcmp("stream_compressed_payload", argv[i])) {
+ stream_compressed_payload(config);
+ continue;
+ }
+ if (0 == strcmp("stream_payload", argv[i])) {
+ stream_payload(config);
+ continue;
+ }
+ if (0 == strcmp("stream_ping_pong_streaming", argv[i])) {
+ stream_ping_pong_streaming(config);
+ continue;
+ }
if (0 == strcmp("streaming_error_response", argv[i])) {
streaming_error_response(config);
continue;
diff --git a/test/core/end2end/end2end_tests.c b/test/core/end2end/end2end_tests.c
index a0e6ac7f93..db23a03cde 100644
--- a/test/core/end2end/end2end_tests.c
+++ b/test/core/end2end/end2end_tests.c
@@ -128,6 +128,12 @@ extern void simple_metadata(grpc_end2end_test_config config);
extern void simple_metadata_pre_init(void);
extern void simple_request(grpc_end2end_test_config config);
extern void simple_request_pre_init(void);
+extern void stream_compressed_payload(grpc_end2end_test_config config);
+extern void stream_compressed_payload_pre_init(void);
+extern void stream_payload(grpc_end2end_test_config config);
+extern void stream_payload_pre_init(void);
+extern void stream_ping_pong_streaming(grpc_end2end_test_config config);
+extern void stream_ping_pong_streaming_pre_init(void);
extern void streaming_error_response(grpc_end2end_test_config config);
extern void streaming_error_response_pre_init(void);
extern void trailing_metadata(grpc_end2end_test_config config);
@@ -192,6 +198,9 @@ void grpc_end2end_tests_pre_init(void) {
simple_delayed_request_pre_init();
simple_metadata_pre_init();
simple_request_pre_init();
+ stream_compressed_payload_pre_init();
+ stream_payload_pre_init();
+ stream_ping_pong_streaming_pre_init();
streaming_error_response_pre_init();
trailing_metadata_pre_init();
workaround_cronet_compression_pre_init();
@@ -255,6 +264,9 @@ void grpc_end2end_tests(int argc, char **argv,
simple_delayed_request(config);
simple_metadata(config);
simple_request(config);
+ stream_compressed_payload(config);
+ stream_payload(config);
+ stream_ping_pong_streaming(config);
streaming_error_response(config);
trailing_metadata(config);
workaround_cronet_compression(config);
@@ -460,6 +472,18 @@ void grpc_end2end_tests(int argc, char **argv,
simple_request(config);
continue;
}
+ if (0 == strcmp("stream_compressed_payload", argv[i])) {
+ stream_compressed_payload(config);
+ continue;
+ }
+ if (0 == strcmp("stream_payload", argv[i])) {
+ stream_payload(config);
+ continue;
+ }
+ if (0 == strcmp("stream_ping_pong_streaming", argv[i])) {
+ stream_ping_pong_streaming(config);
+ continue;
+ }
if (0 == strcmp("streaming_error_response", argv[i])) {
streaming_error_response(config);
continue;
diff --git a/test/core/end2end/fuzzers/hpack.dictionary b/test/core/end2end/fuzzers/hpack.dictionary
index 2bb9de34c5..f8c11fbf23 100644
--- a/test/core/end2end/fuzzers/hpack.dictionary
+++ b/test/core/end2end/fuzzers/hpack.dictionary
@@ -14,7 +14,10 @@
"\x0Dgrpc-tags-bin"
"\x0Egrpc-trace-bin"
"\x0Ccontent-type"
+"\x10content-encoding"
+"\x0Faccept-encoding"
"\x1Egrpc-internal-encoding-request"
+"%grpc-internal-stream-encoding-request"
"\x0Auser-agent"
"\x04host"
"\x08lb-token"
@@ -49,7 +52,6 @@
"\x03400"
"\x03500"
"\x0Eaccept-charset"
-"\x0Faccept-encoding"
"\x0Dgzip, deflate"
"\x0Faccept-language"
"\x0Daccept-ranges"
@@ -60,7 +62,6 @@
"\x0Dauthorization"
"\x0Dcache-control"
"\x13content-disposition"
-"\x10content-encoding"
"\x10content-language"
"\x0Econtent-length"
"\x10content-location"
@@ -134,7 +135,7 @@
"\x00\x0Dauthorization\x00"
"\x00\x0Dcache-control\x00"
"\x00\x13content-disposition\x00"
-"\x00\x10content-encoding\x00"
+"\x00\x10content-encoding\x04gzip"
"\x00\x10content-language\x00"
"\x00\x0Econtent-length\x00"
"\x00\x10content-location\x00"
@@ -179,3 +180,6 @@
"\x00\x14grpc-accept-encoding\x0Didentity,gzip"
"\x00\x14grpc-accept-encoding\x0Cdeflate,gzip"
"\x00\x14grpc-accept-encoding\x15identity,deflate,gzip"
+"\x00\x0Faccept-encoding\x08identity"
+"\x00\x0Faccept-encoding\x04gzip"
+"\x00\x0Faccept-encoding\x0Didentity,gzip"
diff --git a/test/core/end2end/generate_tests.bzl b/test/core/end2end/generate_tests.bzl
index 185ca606b8..a6300e9149 100755
--- a/test/core/end2end/generate_tests.bzl
+++ b/test/core/end2end/generate_tests.bzl
@@ -119,6 +119,7 @@ END2END_TESTS = {
'simple_metadata': test_options(),
'simple_request': test_options(),
'streaming_error_response': test_options(),
+ 'stream_compression': test_options(),
'trailing_metadata': test_options(),
'authority_not_supported': test_options(),
'filter_latency': test_options(),