* assert on empty busname (routinginterface)
[profile/ivi/audiomanager.git] / PluginRoutingInterfaceAsync / test / testRoutingInterfaceAsync.h
1 /*
2  * testRoutingInterfaceAsync.h
3  *
4  *  Created on: Dec 27, 2011
5  *      Author: christian
6  */
7
8 #ifndef TESTROUTINGINTERFACEASYNC_H_
9 #define TESTROUTINGINTERFACEASYNC_H_
10
11 #include <gtest/gtest.h>
12 #include <gmock/gmock.h>
13 #include <dlt/dlt.h>
14 #include "mocklnterfaces.h"
15 #include "SocketHandler.h"
16 #include "../../AudioManagerDaemon/include/RoutingSender.h"
17
18 #define UNIT_TEST 1
19
20 namespace am {
21
22 class testRoutingInterfaceAsync :public ::testing::Test
23 {
24 public:
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();
37
38         void SetUp();
39         void TearDown();
40 private:
41         static am_domainID_t mDomainIDCount;
42 };
43
44 } /* namespace am */
45 #endif /* TESTROUTINGINTERFACEASYNC_H_ */