diff options
author | lizatretyakova <lizatretyakova@google.com> | 2022-03-22 03:39:08 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-03-22 03:39:53 -0700 |
commit | 13531ebafadded3ec2a4085695af039533eac0e8 (patch) | |
tree | c25f438d5c73ecb0e214fd8bb09ad73b1722703f /cc/util | |
parent | b96ff5e4a1431df248772b57cc116092da11d580 (diff) | |
download | tink-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.h | 3 |
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) |