2 * testRoutingInterfaceAsync.h
4 * Created on: Dec 27, 2011
8 #ifndef TESTROUTINGINTERFACEASYNC_H_
9 #define TESTROUTINGINTERFACEASYNC_H_
11 #include <gtest/gtest.h>
12 #include <gmock/gmock.h>
14 #include "mocklnterfaces.h"
15 #include "SocketHandler.h"
16 #include "../../AudioManagerDaemon/include/RoutingSender.h"
22 class testRoutingInterfaceAsync :public ::testing::Test
25 static std::vector<std::string> pListRoutingPluginDirs;
26 SocketHandler pSocketHandler;
27 MockRoutingReceiveInterface pReceiveInterface;
28 static RoutingSender pRoutingSender;
29 static std::vector<std::string> returnListPlugins();
30 static am_Error_e handleDomainRegister (const am_Domain_s& domainData, am_domainID_t& domainID);
31 static am_Error_e handleSourceRegister (const am_Source_s& sourceData, am_sourceID_t& sourceID);
32 static am_Error_e handleSinkRegister(const am_Sink_s& sinkData, am_sinkID_t& sinkID);
33 void timerCallback(sh_timerHandle_t handle, void* userData);
34 shTimerCallBack_T<testRoutingInterfaceAsync> ptimerCallback;
35 testRoutingInterfaceAsync();
36 virtual ~testRoutingInterfaceAsync();
41 static am_domainID_t mDomainIDCount;
45 #endif /* TESTROUTINGINTERFACEASYNC_H_ */