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