Go to the documentation of this file.
17 #include <type_traits>
19 #include "absl/synchronization/notification.h"
20 #include "gtest/gtest.h"
36 auto activity =
MakeActivity(Sleep(done_time), InlineWakeupScheduler(),
41 done.WaitForNotification();
46 TEST(Sleep, AlreadyDone) {
51 auto activity =
MakeActivity(Sleep(done_time), InlineWakeupScheduler(),
56 done.WaitForNotification();
70 done.WaitForNotification();
75 TEST(Sleep, MoveSemantics) {
80 Sleep donor(done_time);
87 done.WaitForNotification();
95 int main(
int argc,
char** argv) {
int main(int argc, char **argv)
Status CancelledError(absl::string_view message)
ActivityPtr MakeActivity(Factory promise_factory, WakeupScheduler wakeup_scheduler, OnDone on_done, Contexts &&... contexts)
promise_detail::Race< Promises... > Race(Promises... promises)
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
static constexpr Duration Milliseconds(int64_t millis)
ABSL_NAMESPACE_BEGIN Time Now()
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
grpc_core::ExecCtx exec_ctx
#define EXPECT_LT(val1, val2)
static constexpr Duration Seconds(int64_t seconds)
#define EXPECT_GE(val1, val2)
GRPCAPI void grpc_init(void)
GRPCAPI void grpc_shutdown(void)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:13