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