Skip to content

Commit

Permalink
internal changes
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 687113652
  • Loading branch information
ftsui authored and copybara-github committed Oct 18, 2024
1 parent b02ba01 commit 94caf09
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions internal/analytics/sharing_log_matchers.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_

0 comments on commit 94caf09

Please sign in to comment.