ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mockIComm.hpp
Go to the documentation of this file.
1 #include "gmock/gmock.h"
2 
3 // Local headers
4 #include "fcf/common/iComm.hpp"
5 
6 class MockIComm : public fcf::common::IComm {
7 public:
8 
9  MOCK_METHOD2(Connect, void(std::string device, std::string address));
10  MOCK_METHOD1(Read, void(fcf::common::VectorVariant& params));
11  MOCK_METHOD1(Write, void(fcf::common::VectorVariant& params));
12  MOCK_METHOD4(Rpc, void(std::string obj,
13  std::string proc,
14  fcf::common::VectorVariant& params,
15  fcf::common::Variant& result));
16  MOCK_METHOD0(Disconnect, void());
17  MOCK_METHOD1(StartMonitorItem, void(std::string item));
18  MOCK_METHOD1(StopMonitorItem, void(std::string item));
19  MOCK_METHOD3(RegisterCB, void(fcf::common::Dispatcher<fcf::common::VectorVariant&>& dispatcher,
20  fcf::common::Dispatcher<>& failure,
21  fcf::common::Dispatcher<>& normal));
22 
23 
24 };
25 
26 
27 
MOCK_METHOD4(Rpc, void(std::string obj, std::string proc, fcf::common::VectorVariant &params, fcf::common::Variant &result))
MOCK_METHOD3(RegisterCB, void(fcf::common::Dispatcher< fcf::common::VectorVariant & > &dispatcher, fcf::common::Dispatcher<> &failure, fcf::common::Dispatcher<> &normal))
MOCK_METHOD1(Read, void(fcf::common::VectorVariant &params))
MOCK_METHOD0(Disconnect, void())
Definition: mockIComm.hpp:6
MOCK_METHOD2(Connect, void(std::string device, std::string address))