From 26062ea1b4584d4408cc274d96b90a37fab5c70b Mon Sep 17 00:00:00 2001 From: yijiem Date: Thu, 18 Apr 2024 17:24:02 -0700 Subject: [PATCH] fix --- test/core/channel/call_tracer_test.cc | 1 + test/core/util/fake_stats_plugin.h | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/test/core/channel/call_tracer_test.cc b/test/core/channel/call_tracer_test.cc index d83093cb128..4950e8d0276 100644 --- a/test/core/channel/call_tracer_test.cc +++ b/test/core/channel/call_tracer_test.cc @@ -94,6 +94,7 @@ TEST_F(CallTracerTest, MultipleClientCallAttemptTracers) { attempt_tracer->RecordAnnotation("Test"); EXPECT_EQ(annotation_logger_, std::vector({"Test", "Test", "Test"})); + attempt_tracer->RecordEnd(gpr_timespec()); } TEST_F(CallTracerTest, BasicServerCallTracerTest) { diff --git a/test/core/util/fake_stats_plugin.h b/test/core/util/fake_stats_plugin.h index 1356b04a42d..8a32e4992c0 100644 --- a/test/core/util/fake_stats_plugin.h +++ b/test/core/util/fake_stats_plugin.h @@ -115,8 +115,7 @@ class FakeClientCallTracer : public ClientCallTracer { ~FakeClientCallTracer() override {} CallAttemptTracer* StartNewAttempt(bool /*is_transparent_retry*/) override { auto call_attempt_tracer = - grpc_core::MakeRefCounted( - annotation_logger_); + MakeRefCounted(annotation_logger_); call_attempt_tracers_.emplace_back(call_attempt_tracer); return call_attempt_tracer.release(); // Released in RecordEnd(). } @@ -135,8 +134,7 @@ class FakeClientCallTracer : public ClientCallTracer { private: std::vector* annotation_logger_; - std::vector> - call_attempt_tracers_; + std::vector> call_attempt_tracers_; }; #define GRPC_ARG_INJECT_FAKE_CLIENT_CALL_TRACER_FACTORY \