diff --git a/test/mock/test-mock.cpp b/test/mock/test-mock.cpp index 729f030..b8e89ad 100644 --- a/test/mock/test-mock.cpp +++ b/test/mock/test-mock.cpp @@ -35,6 +35,26 @@ struct continuable_base { template continuable_base& failed(T&&) { return *this; } }; +template struct promise { + void set_value(T...) noexcept {} + + void operator()(T...) && noexcept {} + + void set_exception(std::exception_ptr exception) noexcept { + // ... + (void)exception; + } + + void set_error(std::error_code error) noexcept { + // ... + (void)error; + } + + void cancel() noexcept {} + + bool is_canceled() const noexcept { return false; } +}; + template struct accumulator { auto accumulate() { return [] {};