aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-05-17 23:24:39 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2016-05-17 23:24:39 -0700
commit2d02456e785053735172186868300d0f4dde3d9e (patch)
tree1462db11939dfebac89bf2e594dc29b98d3bcfc6 /test
parente825df736ae3681270e9cde4b8ccc07b70205516 (diff)
got rid of grpc_compression_options
Diffstat (limited to 'test')
-rw-r--r--test/core/compression/compression_test.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/test/core/compression/compression_test.c b/test/core/compression/compression_test.c
index ed6f9e7214..5ee1805222 100644
--- a/test/core/compression/compression_test.c
+++ b/test/core/compression/compression_test.c
@@ -92,40 +92,10 @@ static void test_compression_algorithm_name(void) {
/* the value of "name" is undefined upon failure */
}
-static void test_compression_enable_disable_algorithm(void) {
- grpc_compression_options options;
- grpc_compression_algorithm algorithm;
-
- gpr_log(GPR_DEBUG, "test_compression_enable_disable_algorithm");
-
- grpc_compression_options_init(&options);
- for (algorithm = GRPC_COMPRESS_NONE;
- algorithm < GRPC_COMPRESS_ALGORITHMS_COUNT; algorithm++) {
- /* all algorithms are enabled by default */
- GPR_ASSERT(grpc_compression_options_is_algorithm_enabled(&options,
- algorithm) != 0);
- }
- /* disable one by one */
- for (algorithm = GRPC_COMPRESS_NONE;
- algorithm < GRPC_COMPRESS_ALGORITHMS_COUNT; algorithm++) {
- grpc_compression_options_disable_algorithm(&options, algorithm);
- GPR_ASSERT(grpc_compression_options_is_algorithm_enabled(&options,
- algorithm) == 0);
- }
- /* re-enable one by one */
- for (algorithm = GRPC_COMPRESS_NONE;
- algorithm < GRPC_COMPRESS_ALGORITHMS_COUNT; algorithm++) {
- grpc_compression_options_enable_algorithm(&options, algorithm);
- GPR_ASSERT(grpc_compression_options_is_algorithm_enabled(&options,
- algorithm) != 0);
- }
-}
-
int main(int argc, char **argv) {
grpc_init();
test_compression_algorithm_parse();
test_compression_algorithm_name();
- test_compression_enable_disable_algorithm();
grpc_shutdown();
return 0;