diff options
Diffstat (limited to 'test/core/statistics/trace_test.cc')
-rw-r--r-- | test/core/statistics/trace_test.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/test/core/statistics/trace_test.cc b/test/core/statistics/trace_test.cc index 63da9f71d3..ecbfed09ee 100644 --- a/test/core/statistics/trace_test.cc +++ b/test/core/statistics/trace_test.cc @@ -28,7 +28,6 @@ #include <grpc/support/useful.h> #include "src/core/ext/census/census_interface.h" #include "src/core/ext/census/census_tracing.h" -#include "src/core/ext/census/census_tracing.h" #include "test/core/util/test_config.h" /* Ensure all possible state transitions are called without causing problem */ @@ -70,7 +69,7 @@ static void test_get_trace_method_name(void) { census_add_method_tag(id, write_name); census_internal_lock_trace_store(); { - const char *read_name = + const char* read_name = census_get_trace_method_name(census_get_trace_obj_locked(id)); GPR_ASSERT(strcmp(read_name, write_name) == 0); } @@ -84,12 +83,12 @@ typedef struct thd_arg { gpr_mu mu; } thd_arg; -static void mimic_trace_op_sequences(void *arg) { +static void mimic_trace_op_sequences(void* arg) { census_op_id id; - const char *method_name = "service_foo/method_bar"; + const char* method_name = "service_foo/method_bar"; int i = 0; const int num_iter = 200; - thd_arg *args = (thd_arg *)arg; + thd_arg* args = (thd_arg*)arg; GPR_ASSERT(args != NULL); gpr_log(GPR_INFO, "Start trace op sequence thread."); for (i = 0; i < num_iter; i++) { @@ -140,7 +139,7 @@ static void test_add_method_tag_to_unknown_op_id(void) { static void test_trace_print(void) { census_op_id id; int i; - const char *annotation_txt[4] = {"abc", "", "$%^ *()_"}; + const char* annotation_txt[4] = {"abc", "", "$%^ *()_"}; char long_txt[CENSUS_MAX_ANNOTATION_LENGTH + 10]; memset(long_txt, 'a', GPR_ARRAY_SIZE(long_txt)); @@ -166,8 +165,8 @@ static int ids_equal(census_op_id id1, census_op_id id2) { static void test_get_active_ops(void) { census_op_id id_1, id_2, id_3; - census_trace_obj **active_ops; - const char *annotation_txt[] = {"annotation 1", "a2"}; + census_trace_obj** active_ops; + const char* annotation_txt[] = {"annotation 1", "a2"}; int i = 0; int n = 0; @@ -227,7 +226,7 @@ static void test_get_active_ops(void) { census_tracing_shutdown(); } -int main(int argc, char **argv) { +int main(int argc, char** argv) { grpc_test_init(argc, argv); test_init_shutdown(); test_start_op_generates_locally_unique_ids(); |