| 149 | } |
| 150 | |
| 151 | bool MatchAndExplain(const Fut& fut, |
| 152 | testing::MatchResultListener* listener) const override { |
| 153 | if (!fut.Wait(wait_seconds_)) { |
| 154 | *listener << "which didn't finish within " << wait_seconds_ << " seconds"; |
| 155 | return false; |
| 156 | } |
| 157 | return result_matcher_.MatchAndExplain(fut.result(), listener); |
| 158 | } |
| 159 | |
| 160 | const testing::Matcher<Result<ValueType>> result_matcher_; |
| 161 | const double wait_seconds_; |
nothing calls this directly
no test coverage detected