diff options
author | lizatretyakova <lizatretyakova@google.com> | 2022-03-18 06:45:48 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-03-18 06:46:28 -0700 |
commit | 34d7beb86384f5130310c39bc017eafeac40e4d3 (patch) | |
tree | 53d92d9c67b09dcfa3a06595e26f408007635d9a /cc/util | |
parent | 04e1fe8df66013ae842be110a876371fa57388d9 (diff) | |
download | tink-34d7beb86384f5130310c39bc017eafeac40e4d3.tar.gz |
Change crypto::tink::util::StatusOr::ValueOrDie() to value() in test matchers. Part of Tink migration to absl::Status{,Or}.
PiperOrigin-RevId: 435624054
Diffstat (limited to 'cc/util')
-rw-r--r-- | cc/util/test_matchers.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/util/test_matchers.h b/cc/util/test_matchers.h index c7b889940..4ff03e2c4 100644 --- a/cc/util/test_matchers.h +++ b/cc/util/test_matchers.h @@ -65,13 +65,13 @@ class IsOkAndHoldsMatcherImpl } ::testing::StringMatchResultListener inner_listener; - const bool matches = inner_matcher_.MatchAndExplain( - actual_value.ValueOrDie(), &inner_listener); + const bool matches = + inner_matcher_.MatchAndExplain(*actual_value, &inner_listener); const std::string inner_explanation = inner_listener.str(); if (!inner_explanation.empty()) { *result_listener << "which contains value " - << ::testing::PrintToString(actual_value.ValueOrDie()) - << ", " << inner_explanation; + << ::testing::PrintToString(*actual_value) << ", " + << inner_explanation; } return matches; } |