mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 11:45:53 +00:00
@@ -41,6 +41,9 @@ struct MockStrand {
|
||||
template <typename T>
|
||||
using StoppableOperation = MockStoppableOperation<T>;
|
||||
|
||||
template <typename T>
|
||||
using RepeatingOperation = MockRepeatingOperation<T>;
|
||||
|
||||
MOCK_METHOD(Operation<std::any> const&, execute, (std::function<std::any()>), (const));
|
||||
MOCK_METHOD(
|
||||
Operation<std::any> const&,
|
||||
@@ -60,4 +63,10 @@ struct MockStrand {
|
||||
(std::function<std::any(util::async::AnyStopToken)>, std::optional<std::chrono::milliseconds>),
|
||||
(const)
|
||||
);
|
||||
MOCK_METHOD(
|
||||
RepeatingOperation<std::any> const&,
|
||||
executeRepeatedly,
|
||||
(std::chrono::milliseconds, std::function<std::any()>),
|
||||
(const)
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user