3#ifndef IMT_BASE_OS_LINUX_GMOCK_MOCKTHREAD_H
4#define IMT_BASE_OS_LINUX_GMOCK_MOCKTHREAD_H
6#include <gmock/gmock.h>
28 MOCK_METHOD(
bool, isStopRequested, (std::string
const& threadName));
29 MOCK_METHOD(
void, waitFor, (std::chrono::milliseconds
const waitTimeMs));
31 void run(std::string
const& threadName);
39 std::function<void()> m_function;
40 bool m_isStopRequested {
false};
43 std::map<std::string, ThreadInfo> m_threadMap;
Provides the parameters required to setup the scheduling of a thread.
Mock thread implementation.
MOCK_METHOD(void, start,(std::string const &threadName))
MOCK_METHOD(bool, isStopRequested,(std::string const &threadName))
MOCK_METHOD(void, waitFor,(std::chrono::milliseconds const waitTimeMs))
MOCK_METHOD(void, init,(std::string const &threadName, ::imt::base::os::linux::ThreadSchedulingParams schedulingParams, std::function< void()> threadFunction))
void run(std::string const &threadName)
MOCK_METHOD(void, stop,(std::string const &threadName))
This is a application specific file which is used to configure Imt.Base.Core.Math.