2 #ifndef OCM_DAQ_TEST_MOCK_ASYNC_OPERATIONS_HPP_
3 #define OCM_DAQ_TEST_MOCK_ASYNC_OPERATIONS_HPP_
5 #include <gmock/gmock.h>
34 return {AwaitPrim(params), [&]() ->
bool {
return mock_abort.Abort(); }};
44 auto& ops = std::get<daq::OcmAsyncOperations>(res);
45 auto* mock_ptr = std::get<std::unique_ptr<MockAsyncOperations>>(res).get();
49 return mock_ptr->Abort(policy, params);
52 return mock_ptr->Stop(policy, params);
55 return mock_ptr->AwaitPrimHelper(params);
59 #endif // #define OCM_DAQ_TEST_MOCK_ASYNC_OPERATIONS_HPP_