| 460 | }; |
| 461 | |
| 462 | TEST_F(TransferTest, DefaultTransferIfNotFinished) { |
| 463 | { |
| 464 | Future<> fut = Future<>::Make(); |
| 465 | auto transferred = executor()->Transfer(fut); |
| 466 | fut.MarkFinished(); |
| 467 | ASSERT_FINISHES_OK(transferred); |
| 468 | ASSERT_EQ(1, spawn_count()); |
| 469 | } |
| 470 | { |
| 471 | Future<> fut = Future<>::Make(); |
| 472 | fut.MarkFinished(); |
| 473 | auto transferred = executor()->Transfer(fut); |
| 474 | ASSERT_FINISHES_OK(transferred); |
| 475 | ASSERT_EQ(1, spawn_count()); |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | TEST_F(TransferTest, TransferAlways) { |
| 480 | { |
no test coverage detected