Imt.Base C++ API V4.1.1.0
Loading...
Searching...
No Matches
MockRemoteObject.h
Go to the documentation of this file.
1// (c) IMT - Information Management Technology AG, CH-9470 Buchs, www.imt.ch.
2
3#ifndef IMT_BASE_LIB_REMOTING_GMOCK_MOCKREMOTEOBJECT_H
4#define IMT_BASE_LIB_REMOTING_GMOCK_MOCKREMOTEOBJECT_H
5
6#include <gmock/gmock.h>
10
11namespace imt {
12namespace base {
13namespace lib {
14namespace remoting {
15namespace gmock {
16
21
22public:
23
24 MockRemoteObject(int32_t const uniqueIdToAttach, ::imt::base::lib::remoting::RemotingSendServiceIfc* const pRemotingSendService, ::imt::base::lib::remoting::RemotingServiceIfc* const pRemotingReceiveService) :
25 RemoteObjectAbs {uniqueIdToAttach, pRemotingSendService, pRemotingReceiveService} {
26 }
27
29 MOCK_METHOD(void, serialize, (::imt::base::core::serialization::Serializer & serializer), (const, override));
30};
31
32} // namespace gmock
33} // namespace remoting
34} // namespace lib
35} // namespace base
36} // namespace imt
37
38#endif // #ifndef IMT_BASE_LIB_REMOTING_GMOCK_MOCKREMOTEOBJECT_H
Deserializes various data types from the given byte buffer.
virtual void deserialize(Deserializer &buffer)=0
Deserialize this object from the given deserialize.
virtual void serialize(Serializer &buffer) const =0
Serialize this object into the given serializer.
Serializes various data types into the given byte buffer.
Definition Serializer.h:58
Provides an abstract base class for all remote object implementations.
Interface for the remoting sending service (allows remote objects to initiate the send by themselves)...
Interface for the RemotingService.
Mock implementation of imt::base::lib::remoting::RemoteObjectAbs.
MockRemoteObject(int32_t const uniqueIdToAttach, ::imt::base::lib::remoting::RemotingSendServiceIfc *const pRemotingSendService, ::imt::base::lib::remoting::RemotingServiceIfc *const pRemotingReceiveService)
MOCK_METHOD(void, serialize,(::imt::base::core::serialization::Serializer &serializer),(const, override))
MOCK_METHOD(void, deserialize,(::imt::base::core::serialization::Deserializer &deserializer),(override))
This is a application specific file which is used to configure Imt.Base.Core.Math.
__int32 int32_t
Definition stdint.h:60