aboutsummaryrefslogtreecommitdiff
path: root/cc/util
diff options
context:
space:
mode:
authorlizatretyakova <lizatretyakova@google.com>2022-03-22 03:39:08 -0700
committerCopybara-Service <copybara-worker@google.com>2022-03-22 03:39:53 -0700
commit13531ebafadded3ec2a4085695af039533eac0e8 (patch)
treec25f438d5c73ecb0e214fd8bb09ad73b1722703f /cc/util
parentb96ff5e4a1431df248772b57cc116092da11d580 (diff)
downloadtink-13531ebafadded3ec2a4085695af039533eac0e8.tar.gz
Make IsOkAndHolds() use the content type alias compatible with absl::StatusOr.
Part of the Tink migration towards using absl::Status{,Or}. PiperOrigin-RevId: 436431372
Diffstat (limited to 'cc/util')
-rw-r--r--cc/util/test_matchers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/util/test_matchers.h b/cc/util/test_matchers.h
index 4ff03e2c4..04db3df20 100644
--- a/cc/util/test_matchers.h
+++ b/cc/util/test_matchers.h
@@ -39,7 +39,8 @@ template <typename StatusOrType>
class IsOkAndHoldsMatcherImpl
: public ::testing::MatcherInterface<StatusOrType> {
public:
- using value_type = typename std::remove_reference<StatusOrType>::type::type;
+ using value_type =
+ typename std::remove_reference<StatusOrType>::type::value_type;
template <typename InnerMatcher>
explicit IsOkAndHoldsMatcherImpl(InnerMatcher&& inner_matcher)