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 {
8 public:
9 
10  MOCK_METHOD2(Connect, void(std::string device, std::string address));
11  MOCK_METHOD1(Read, void(fcf::common::VectorVariant& params));
12  MOCK_METHOD1(Write, void(fcf::common::VectorVariant& params));
13  MOCK_METHOD4(Rpc, void(std::string obj,
14  std::string proc,
15  fcf::common::VectorVariant& params,
16  fcf::common::Variant& result));
17  MOCK_METHOD0(Disconnect, void());
18  MOCK_METHOD1(StartMonitorItem, void(std::string item));
19  MOCK_METHOD1(StopMonitorItem, void(std::string item));
20  MOCK_METHOD3(RegisterCB, void(fcf::common::Dispatcher<fcf::common::VectorVariant&>& dispatcher,
21  fcf::common::Dispatcher<>& failure,
22  fcf::common::Dispatcher<>& normal));
23 
24 
25 };
26 
27 
28 
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))