From 94caf098b66038f321604dac3b2d506a17c9e4c2 Mon Sep 17 00:00:00 2001 From: Francis Tsui Date: Thu, 17 Oct 2024 18:23:54 -0700 Subject: [PATCH] internal changes PiperOrigin-RevId: 687113652 --- internal/analytics/sharing_log_matchers.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/internal/analytics/sharing_log_matchers.h b/internal/analytics/sharing_log_matchers.h index f336f88046f..ce01eb8410b 100644 --- a/internal/analytics/sharing_log_matchers.h +++ b/internal/analytics/sharing_log_matchers.h @@ -43,6 +43,22 @@ MATCHER_P(SharingLogHasStatus, status, "has status") { return arg.status() == status; } +MATCHER_P(HasRpcName, rpc_name, "has rpc_name") { + return arg.rpc_name() == rpc_name; +} + +MATCHER_P(HasDirection, direction, "has direction") { + return arg.direction() == direction; +} + +MATCHER_P(HasErrorCode, error_code, "has error_code") { + return arg.error_code() == error_code; +} + +MATCHER_P(HasLatencyMillis, latency_millis, "has latency_millis") { + return arg.latency_millis() == latency_millis; +} + } // namespace nearby::analytics #endif // THIRD_PARTY_NEARBY_INTERNAL_ANALYTICS_SHARING_LOG_MATCHERS_H_