|
|
|
@ -39,7 +39,7 @@ |
|
|
|
|
#include "test/core/util/memory_counters.h" |
|
|
|
|
#include "test/core/util/mock_endpoint.h" |
|
|
|
|
|
|
|
|
|
static const bool squelch = true; |
|
|
|
|
static const bool squelch = !true; |
|
|
|
|
|
|
|
|
|
static void discard_write(gpr_slice slice) {} |
|
|
|
|
|
|
|
|
@ -49,9 +49,9 @@ static void dont_log(gpr_log_func_args *args) {} |
|
|
|
|
|
|
|
|
|
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { |
|
|
|
|
grpc_test_only_set_metadata_hash_seed(0); |
|
|
|
|
struct grpc_memory_counters counters; |
|
|
|
|
//struct grpc_memory_counters counters;
|
|
|
|
|
if (squelch) gpr_set_log_function(dont_log); |
|
|
|
|
grpc_memory_counters_init(); |
|
|
|
|
//grpc_memory_counters_init();
|
|
|
|
|
grpc_init(); |
|
|
|
|
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT; |
|
|
|
|
|
|
|
|
@ -153,8 +153,8 @@ done: |
|
|
|
|
grpc_byte_buffer_destroy(response_payload_recv); |
|
|
|
|
} |
|
|
|
|
grpc_shutdown(); |
|
|
|
|
counters = grpc_memory_counters_snapshot(); |
|
|
|
|
grpc_memory_counters_destroy(); |
|
|
|
|
GPR_ASSERT(counters.total_size_relative == 0); |
|
|
|
|
//counters = grpc_memory_counters_snapshot();
|
|
|
|
|
//grpc_memory_counters_destroy();
|
|
|
|
|
//GPR_ASSERT(counters.total_size_relative == 0);
|
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|