aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/client_channel/uri_fuzzer_test.cc
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-12-06 09:05:05 -0800
committerGravatar GitHub <noreply@github.com>2017-12-06 09:05:05 -0800
commitad4d2dde0052efbbf49d64b0843c45f0381cfeb3 (patch)
tree6a657f8c6179d873b34505cdc24bce9462ca68eb /test/core/client_channel/uri_fuzzer_test.cc
parenta3df36cc2505a89c2f481eea4a66a87b3002844a (diff)
Revert "All instances of exec_ctx being passed around in src/core removed"
Diffstat (limited to 'test/core/client_channel/uri_fuzzer_test.cc')
-rw-r--r--test/core/client_channel/uri_fuzzer_test.cc19
1 files changed, 6 insertions, 13 deletions
diff --git a/test/core/client_channel/uri_fuzzer_test.cc b/test/core/client_channel/uri_fuzzer_test.cc
index ee38453166..ba31793ff3 100644
--- a/test/core/client_channel/uri_fuzzer_test.cc
+++ b/test/core/client_channel/uri_fuzzer_test.cc
@@ -20,7 +20,6 @@
#include <stdint.h>
#include <string.h>
-#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
#include "src/core/ext/filters/client_channel/uri_parser.h"
@@ -34,18 +33,12 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
memcpy(s, data, size);
s[size] = 0;
- grpc_init();
-
- {
- grpc_core::ExecCtx exec_ctx;
- grpc_uri* x;
- if ((x = grpc_uri_parse(s, 1))) {
- grpc_uri_destroy(x);
- }
-
- gpr_free(s);
+ grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT;
+ grpc_uri* x;
+ if ((x = grpc_uri_parse(&exec_ctx, s, 1))) {
+ grpc_uri_destroy(x);
}
-
- grpc_shutdown();
+ grpc_exec_ctx_finish(&exec_ctx);
+ gpr_free(s);
return 0;
}