| 102 | |
| 103 | template <typename T> |
| 104 | ::testing::AssertionResult Await( |
| 105 | const char* expr, |
| 106 | const char*, // Unused string representation of 'duration'. |
| 107 | const process::Future<T>& actual, |
| 108 | const Duration& duration) |
| 109 | { |
| 110 | if (!process::internal::await(actual, duration)) { |
| 111 | return ::testing::AssertionFailure() |
| 112 | << "Failed to wait " << duration << " for " << expr; |
| 113 | } |
| 114 | |
| 115 | return ::testing::AssertionSuccess(); |
| 116 | } |
| 117 | |
| 118 | |
| 119 | template <typename T> |