From bb50cad0adb77f6afdab1d50c093aae2b36d0522 Mon Sep 17 00:00:00 2001 From: Laramie Leavitt Date: Wed, 10 Jul 2024 11:28:46 -0700 Subject: Use GetStatus in IsOkAndHoldsMatcher PiperOrigin-RevId: 651093644 Change-Id: Ia5bb3343ef06529d5fa2d469bcad47451ea79c69 --- absl/status/internal/status_matchers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/absl/status/internal/status_matchers.h b/absl/status/internal/status_matchers.h index d11742b7..0750622e 100644 --- a/absl/status/internal/status_matchers.h +++ b/absl/status/internal/status_matchers.h @@ -69,8 +69,8 @@ class IsOkAndHoldsMatcherImpl bool MatchAndExplain( StatusOrType actual_value, ::testing::MatchResultListener* result_listener) const override { - if (!actual_value.ok()) { - *result_listener << "which has status " << actual_value.status(); + if (!GetStatus(actual_value).ok()) { + *result_listener << "which has status " << GetStatus(actual_value); return false; } -- cgit v1.2.3