15#include <gmock/gmock.h>
16#include <gtest/gtest.h>
27using ::testing::InSequence;
28using ::testing::NiceMock;
29using ::testing::Return;
30using ::testing::Sequence;
41 template <
class Rep,
class Period>
48 m_sample.sample_id = 0;
53 template <
class Operation,
class Rep,
class Period>
54 std::pair<std::error_code, size_t>
58 m_sample.sample_id += 1;
64 template <
class Rep,
class Period>
65 std::pair<std::error_code, size_t>
67 const auto op = [](
const TopicType&
sample) {};
Definition helpers.hpp:39
std::pair< std::error_code, size_t > Read(Operation &&op, size_t count, std::chrono::duration< Rep, Period > timeout)
Definition helpers.hpp:55
TopicType m_sample
Definition helpers.hpp:85
std::pair< std::error_code, size_t > Skip(size_t count, std::chrono::duration< Rep, Period > timeout)
Definition helpers.hpp:66
std::error_code Reset()
Definition helpers.hpp:71
size_t m_available
Definition helpers.hpp:87
FakeReaderBase(const char *shm_name)
Definition helpers.hpp:47
static FakeReaderBase MakeReader(const char *shm_name, std::chrono::duration< Rep, Period > timeout)
Definition helpers.hpp:43
size_t m_size
Definition helpers.hpp:86
size_t NumAvailable()
Definition helpers.hpp:81
size_t Size()
Definition helpers.hpp:77
Component metrics interface.
Definition componentMetricsIf.hpp:85
Container class that holds services of any type.
Definition serviceContainer.hpp:39
void Add(Service &&service, const std::string &name="")
Insert new service into the container.
Definition serviceContainer.hpp:62
Header file for ComponentMetricsIf.
Declaration of helper mock class for ComponentMetricsIf.
Definition commandReplier.cpp:22
elt::mal::future< std::string > InjectReqRepEvent(StateMachineEngine &engine)
Definition malEventInjector.hpp:23
A container that can hold any type of service.
Definition helpers.hpp:133
ServiceContainer & operator*()
Definition helpers.hpp:103
FakeServices()
Definition helpers.hpp:99
ServiceContainer services
Definition helpers.hpp:151
Definition helpers.hpp:34
std::uint32_t sample_id
Definition helpers.hpp:35