Assert the given futures are *eventually* successful
| 1431 | |
| 1432 | // Assert the given futures are *eventually* successful |
| 1433 | void AssertAllSuccessful(const std::vector<int>& future_indices) { |
| 1434 | const auto& futures = executor_->futures(); |
| 1435 | for (const auto fut_index : future_indices) { |
| 1436 | ASSERT_OK(futures[fut_index].status()); |
| 1437 | ASSERT_EQ(*futures[fut_index].result(), fut_index); |
| 1438 | } |
| 1439 | } |
| 1440 | |
| 1441 | // Assert the given futures are *eventually* failed |
| 1442 | void AssertAllFailed(const std::vector<int>& future_indices) { |