9241dc0c30be5b3e04be545929e3fa23d5308fc5
[profile/ivi/audiomanager.git] / PluginRoutingInterfaceAsync / test / mocklnterfaces.h
1 /**
2 * Copyright (C) 2011, BMW AG
3 *
4 * GeniviAudioMananger AudioManagerDaemon
5 *
6 * \file mockInterfaces.h
7 *
8 * \date 20-Oct-2011 3:42:04 PM
9 * \author Christian Mueller (christian.ei.mueller@bmw.de)
10 *
11 * \section License
12 * GNU Lesser General Public License, version 2.1, with special exception (GENIVI clause)
13 * Copyright (C) 2011, BMW AG Christian Mueller  Christian.ei.mueller@bmw.de
14 *
15 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License, version 2.1, as published by the Free Software Foundation.
16 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License, version 2.1, for more details.
17 * You should have received a copy of the GNU Lesser General Public License, version 2.1, along with this program; if not, see <http://www.gnu.org/licenses/lgpl-2.1.html>.
18 * Note that the copyright holders assume that the GNU Lesser General Public License, version 2.1, may also be applicable to programs even in cases in which the program is not a library in the technical sense.
19 * Linking AudioManager statically or dynamically with other modules is making a combined work based on AudioManager. You may license such other modules under the GNU Lesser General Public License, version 2.1. If you do not want to license your linked modules under the GNU Lesser General Public License, version 2.1, you may use the program under the following exception.
20 * As a special exception, the copyright holders of AudioManager give you permission to combine AudioManager with software programs or libraries that are released under any license unless such a combination is not permitted by the license of such a software program or library. You may copy and distribute such a system following the terms of the GNU Lesser General Public License, version 2.1, including this special exception, for AudioManager and the licenses of the other code concerned.
21 * Note that people who make modified versions of AudioManager are not obligated to grant this special exception for their modified versions; it is their choice whether to do so. The GNU Lesser General Public License, version 2.1, gives permission to release a modified version without this exception; this exception also makes it possible to release a modified version which carries forward this exception.
22 *
23 */
24
25 #ifndef MOCKLNTERFACES_H_
26 #define MOCKLNTERFACES_H_
27
28 #include <routing/RoutingReceiveInterface.h>
29
30 namespace am {
31
32 class MockRoutingReceiveInterface : public RoutingReceiveInterface {
33  public:
34   MOCK_METHOD3(ackConnect,
35       void(const am_Handle_s handle, const am_connectionID_t connectionID, const am_Error_e error));
36   MOCK_METHOD3(ackDisconnect,
37       void(const am_Handle_s handle, const am_connectionID_t connectionID, const am_Error_e error));
38   MOCK_METHOD3(ackSetSinkVolumeChange,
39       void(const am_Handle_s handle, const am_volume_t volume, const am_Error_e error));
40   MOCK_METHOD3(ackSetSourceVolumeChange,
41       void(const am_Handle_s handle, const am_volume_t volume, const am_Error_e error));
42   MOCK_METHOD2(ackSetSourceState,
43       void(const am_Handle_s handle, const am_Error_e error));
44   MOCK_METHOD2(ackSetSinkSoundProperties,
45       void(const am_Handle_s handle, const am_Error_e error));
46   MOCK_METHOD2(ackSetSinkSoundProperty,
47       void(const am_Handle_s handle, const am_Error_e error));
48   MOCK_METHOD2(ackSetSourceSoundProperties,
49       void(const am_Handle_s handle, const am_Error_e error));
50   MOCK_METHOD2(ackSetSourceSoundProperty,
51       void(const am_Handle_s handle, const am_Error_e error));
52   MOCK_METHOD3(ackCrossFading,
53       void(const am_Handle_s handle, const am_HotSink_e hotSink, const am_Error_e error));
54   MOCK_METHOD3(ackSourceVolumeTick,
55       void(const am_Handle_s handle, const am_sourceID_t sourceID, const am_volume_t volume));
56   MOCK_METHOD3(ackSinkVolumeTick,
57       void(const am_Handle_s handle, const am_sinkID_t sinkID, const am_volume_t volume));
58   MOCK_METHOD2(peekDomain,
59       am_Error_e(const std::string& name, am_domainID_t& domainID));
60   MOCK_METHOD2(registerDomain,
61       am_Error_e(const am_Domain_s& domainData, am_domainID_t& domainID));
62   MOCK_METHOD1(deregisterDomain,
63       am_Error_e(const am_domainID_t domainID));
64   MOCK_METHOD2(registerGateway,
65       am_Error_e(const am_Gateway_s& gatewayData, am_gatewayID_t& gatewayID));
66   MOCK_METHOD1(deregisterGateway,
67       am_Error_e(const am_gatewayID_t gatewayID));
68   MOCK_METHOD2(peekSink,
69       am_Error_e(const std::string& name, am_sinkID_t& sinkID));
70   MOCK_METHOD2(registerSink,
71       am_Error_e(const am_Sink_s& sinkData, am_sinkID_t& sinkID));
72   MOCK_METHOD1(deregisterSink,
73       am_Error_e(const am_sinkID_t sinkID));
74   MOCK_METHOD2(peekSource,
75       am_Error_e(const std::string& name, am_sourceID_t& sourceID));
76   MOCK_METHOD2(registerSource,
77       am_Error_e(const am_Source_s& sourceData, am_sourceID_t& sourceID));
78   MOCK_METHOD1(deregisterSource,
79       am_Error_e(const am_sourceID_t sourceID));
80   MOCK_METHOD2(registerCrossfader,
81       am_Error_e(const am_Crossfader_s& crossfaderData, am_crossfaderID_t& crossfaderID));
82   MOCK_METHOD1(deregisterCrossfader,
83       am_Error_e(const am_crossfaderID_t crossfaderID));
84   MOCK_METHOD2(peekSourceClassID,
85       am_Error_e(const std::string name, const am_sourceClass_t& sourceClassID));
86   MOCK_METHOD2(peekSinkClassID,
87       am_Error_e(const std::string name, const am_sinkClass_t& sinkClassID));
88   MOCK_METHOD2(hookInterruptStatusChange,
89       void(const am_sourceID_t sourceID, const am_InterruptState_e interruptState));
90   MOCK_METHOD1(hookDomainRegistrationComplete,
91       void(const am_domainID_t domainID));
92   MOCK_METHOD2(hookSinkAvailablityStatusChange,
93       void(const am_sinkID_t sinkID, const am_Availability_s& availability));
94   MOCK_METHOD2(hookSourceAvailablityStatusChange,
95       void(const am_sourceID_t sourceID, const am_Availability_s& availability));
96   MOCK_METHOD2(hookDomainStateChange,
97       void(const am_domainID_t domainID, const am_DomainState_e domainState));
98   MOCK_METHOD2(hookTimingInformationChanged,
99       void(const am_connectionID_t connectionID, const am_timeSync_t delay));
100   MOCK_METHOD1(sendChangedData,
101       am_Error_e(const std::vector<am_EarlyData_s>& earlyData));
102   MOCK_CONST_METHOD1(getDBusConnectionWrapper,
103       am_Error_e(DBusWrapper*& dbusConnectionWrapper));
104   MOCK_CONST_METHOD1(getSocketHandler,
105       am_Error_e(SocketHandler*& socketHandler));
106   MOCK_CONST_METHOD0(getInterfaceVersion,
107       uint16_t());
108 };
109
110 }  // namespace am
111
112
113
114 #endif /* MOCKLNTERFACES_H_ */