proxygen
|
#include <folly/futures/Future.h>
#include <thread>
#include <folly/futures/test/TestExecutor.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Functions | |
TEST_F (CallbackLifetimeTest, thenReturnsValue) | |
TEST_F (CallbackLifetimeTest, thenReturnsValueThrows) | |
TEST_F (CallbackLifetimeTest, thenReturnsFuture) | |
TEST_F (CallbackLifetimeTest, thenReturnsFutureThrows) | |
TEST_F (CallbackLifetimeTest, onErrorTakesExnReturnsValueMatch) | |
TEST_F (CallbackLifetimeTest, onErrorTakesExnReturnsValueMatchThrows) | |
TEST_F (CallbackLifetimeTest, onErrorTakesExnReturnsValueWrong) | |
TEST_F (CallbackLifetimeTest, onErrorTakesExnReturnsValueWrongThrows) | |
TEST_F (CallbackLifetimeTest, onErrorTakesExnReturnsFutureMatch) | |
TEST_F (CallbackLifetimeTest, onErrorTakesExnReturnsFutureMatchThrows) | |
TEST_F (CallbackLifetimeTest, onErrorTakesExnReturnsFutureWrong) | |
TEST_F (CallbackLifetimeTest, onErrorTakesExnReturnsFutureWrongThrows) | |
TEST_F (CallbackLifetimeTest, onErrorTakesWrapReturnsValue) | |
TEST_F (CallbackLifetimeTest, onErrorTakesWrapReturnsValueThrows) | |
TEST_F (CallbackLifetimeTest, onErrorTakesWrapReturnsFuture) | |
TEST_F (CallbackLifetimeTest, onErrorTakesWrapReturnsFutureThrows) | |
TEST_F | ( | CallbackLifetimeTest | , |
thenReturnsValue | |||
) |
Definition at line 77 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::via(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | CallbackLifetimeTest | , |
thenReturnsValueThrows | |||
) |
Definition at line 83 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::via(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | CallbackLifetimeTest | , |
thenReturnsFuture | |||
) |
Definition at line 89 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::makeFuture(), folly::via(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | CallbackLifetimeTest | , |
thenReturnsFutureThrows | |||
) |
Definition at line 97 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::via(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | CallbackLifetimeTest | , |
onErrorTakesExnReturnsValueMatch | |||
) |
Definition at line 105 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::via(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | CallbackLifetimeTest | , |
onErrorTakesExnReturnsValueMatchThrows | |||
) |
Definition at line 114 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::via(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | CallbackLifetimeTest | , |
onErrorTakesExnReturnsValueWrong | |||
) |
Definition at line 123 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::via(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | CallbackLifetimeTest | , |
onErrorTakesExnReturnsValueWrongThrows | |||
) |
Definition at line 132 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::via(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | CallbackLifetimeTest | , |
onErrorTakesExnReturnsFutureMatch | |||
) |
Definition at line 141 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::makeFuture(), folly::via(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | CallbackLifetimeTest | , |
onErrorTakesExnReturnsFutureMatchThrows | |||
) |
Definition at line 150 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::via(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | CallbackLifetimeTest | , |
onErrorTakesExnReturnsFutureWrong | |||
) |
Definition at line 159 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::makeFuture(), folly::via(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | CallbackLifetimeTest | , |
onErrorTakesExnReturnsFutureWrongThrows | |||
) |
Definition at line 168 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::via(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | CallbackLifetimeTest | , |
onErrorTakesWrapReturnsValue | |||
) |
Definition at line 177 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::via(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | CallbackLifetimeTest | , |
onErrorTakesWrapReturnsValueThrows | |||
) |
Definition at line 186 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::via(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | CallbackLifetimeTest | , |
onErrorTakesWrapReturnsFuture | |||
) |
Definition at line 195 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::makeFuture(), folly::via(), and folly::detail::distributed_mutex::wait().
TEST_F | ( | CallbackLifetimeTest | , |
onErrorTakesWrapReturnsFutureThrows | |||
) |
Definition at line 204 of file CallbackLifetimeTest.cpp.
References testing::_, c, folly::pushmi::executor, EXPECT_EQ, folly::via(), and folly::detail::distributed_mutex::wait().