Commit bb50cad0 by Laramie Leavitt Committed by Copybara-Service

Use GetStatus in IsOkAndHoldsMatcher

PiperOrigin-RevId: 651093644
Change-Id: Ia5bb3343ef06529d5fa2d469bcad47451ea79c69
parent 6dee1532
...@@ -69,8 +69,8 @@ class IsOkAndHoldsMatcherImpl ...@@ -69,8 +69,8 @@ class IsOkAndHoldsMatcherImpl
bool MatchAndExplain( bool MatchAndExplain(
StatusOrType actual_value, StatusOrType actual_value,
::testing::MatchResultListener* result_listener) const override { ::testing::MatchResultListener* result_listener) const override {
if (!actual_value.ok()) { if (!GetStatus(actual_value).ok()) {
*result_listener << "which has status " << actual_value.status(); *result_listener << "which has status " << GetStatus(actual_value);
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment