aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/transport
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2017-11-14 16:25:25 -0800
committerGravatar ncteisen <ncteisen@gmail.com>2017-11-14 16:29:35 -0800
commit90ffc3a6f74ee6f7db925a054b6f3973bd0d9fc5 (patch)
tree49f7b69358e4a95838e7e37e124db8f5e0a680fd /test/core/transport
parent467e8369a896397d40abf7c3e9141c1e7440a2e4 (diff)
Add tracer peer to keep set_enabled private()
Diffstat (limited to 'test/core/transport')
-rw-r--r--test/core/transport/connectivity_state_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/transport/connectivity_state_test.cc b/test/core/transport/connectivity_state_test.cc
index f42937ee14..1eab6d7ea2 100644
--- a/test/core/transport/connectivity_state_test.cc
+++ b/test/core/transport/connectivity_state_test.cc
@@ -23,6 +23,7 @@
#include <grpc/support/log.h>
#include "test/core/util/test_config.h"
+#include "test/core/util/tracer_peer.h"
#define THE_ARG ((void*)(size_t)0xcafebabe)
@@ -136,7 +137,7 @@ static void test_subscribe_with_failure_then_destroy(void) {
int main(int argc, char** argv) {
grpc_test_init(argc, argv);
- grpc_connectivity_state_trace.set_enabled(1);
+ grpc_tracer_peer_enable_flag(&grpc_connectivity_state_trace);
test_connectivity_state_name();
test_check();
test_subscribe_then_unsubscribe();