4 * Created on: Dec 27, 2011
8 #ifndef MOCKLNTERFACES_H_
9 #define MOCKLNTERFACES_H_
11 #include <routing/RoutingReceiveInterface.h>
15 class MockRoutingReceiveInterface : public RoutingReceiveInterface {
17 MOCK_METHOD3(ackConnect,
18 void(const am_Handle_s handle, const am_connectionID_t connectionID, const am_Error_e error));
19 MOCK_METHOD3(ackDisconnect,
20 void(const am_Handle_s handle, const am_connectionID_t connectionID, const am_Error_e error));
21 MOCK_METHOD3(ackSetSinkVolumeChange,
22 void(const am_Handle_s handle, const am_volume_t volume, const am_Error_e error));
23 MOCK_METHOD3(ackSetSourceVolumeChange,
24 void(const am_Handle_s handle, const am_volume_t volume, const am_Error_e error));
25 MOCK_METHOD2(ackSetSourceState,
26 void(const am_Handle_s handle, const am_Error_e error));
27 MOCK_METHOD2(ackSetSinkSoundProperty,
28 void(const am_Handle_s handle, const am_Error_e error));
29 MOCK_METHOD2(ackSetSourceSoundProperty,
30 void(const am_Handle_s handle, const am_Error_e error));
31 MOCK_METHOD3(ackCrossFading,
32 void(const am_Handle_s handle, const am_HotSink_e hotSink, const am_Error_e error));
33 MOCK_METHOD3(ackSourceVolumeTick,
34 void(const am_Handle_s handle, const am_sourceID_t sourceID, const am_volume_t volume));
35 MOCK_METHOD3(ackSinkVolumeTick,
36 void(const am_Handle_s handle, const am_sinkID_t sinkID, const am_volume_t volume));
37 MOCK_METHOD2(peekDomain,
38 am_Error_e(const std::string& name, am_domainID_t& domainID));
39 MOCK_METHOD2(registerDomain,
40 am_Error_e(const am_Domain_s& domainData, am_domainID_t& domainID));
41 MOCK_METHOD1(deregisterDomain,
42 am_Error_e(const am_domainID_t domainID));
43 MOCK_METHOD2(registerGateway,
44 am_Error_e(const am_Gateway_s& gatewayData, am_gatewayID_t& gatewayID));
45 MOCK_METHOD1(deregisterGateway,
46 am_Error_e(const am_gatewayID_t gatewayID));
47 MOCK_METHOD2(peekSink,
48 am_Error_e(const std::string& name, am_sinkID_t& sinkID));
49 MOCK_METHOD2(registerSink,
50 am_Error_e(const am_Sink_s& sinkData, am_sinkID_t& sinkID));
51 MOCK_METHOD1(deregisterSink,
52 am_Error_e(const am_sinkID_t sinkID));
53 MOCK_METHOD2(peekSource,
54 am_Error_e(const std::string& name, am_sourceID_t& sourceID));
55 MOCK_METHOD2(registerSource,
56 am_Error_e(const am_Source_s& sourceData, am_sourceID_t& sourceID));
57 MOCK_METHOD1(deregisterSource,
58 am_Error_e(const am_sourceID_t sourceID));
59 MOCK_METHOD2(registerCrossfader,
60 am_Error_e(const am_Crossfader_s& crossfaderData, am_crossfaderID_t& crossfaderID));
61 MOCK_METHOD1(deregisterCrossfader,
62 am_Error_e(const am_crossfaderID_t crossfaderID));
63 MOCK_METHOD2(peekSourceClassID,
64 am_Error_e(const std::string name, const am_sourceClass_t& sourceClassID));
65 MOCK_METHOD2(peekSinkClassID,
66 am_Error_e(const std::string name, const am_sinkClass_t& sinkClassID));
67 MOCK_METHOD2(hookInterruptStatusChange,
68 void(const am_sourceID_t sourceID, const am_InterruptState_e interruptState));
69 MOCK_METHOD1(hookDomainRegistrationComplete,
70 void(const am_domainID_t domainID));
71 MOCK_METHOD2(hookSinkAvailablityStatusChange,
72 void(const am_sinkID_t sinkID, const am_Availability_s& availability));
73 MOCK_METHOD2(hookSourceAvailablityStatusChange,
74 void(const am_sourceID_t sourceID, const am_Availability_s& availability));
75 MOCK_METHOD2(hookDomainStateChange,
76 void(const am_domainID_t domainID, const am_DomainState_e domainState));
77 MOCK_METHOD2(hookTimingInformationChanged,
78 void(const am_connectionID_t connectionID, const am_timeSync_t delay));
79 MOCK_METHOD1(sendChangedData,
80 am_Error_e(const std::vector<am_EarlyData_s>& earlyData));
81 MOCK_CONST_METHOD1(getDBusConnectionWrapper,
82 am_Error_e(DBusWrapper*& dbusConnectionWrapper));
83 MOCK_CONST_METHOD1(getSocketHandler,
84 am_Error_e(SocketHandler*& socketHandler));
91 #endif /* MOCKLNTERFACES_H_ */