summaryrefslogtreecommitdiff
path: root/PluginRoutingInterfaceAsync/test/testRoutingInterfaceAsync.h
diff options
context:
space:
mode:
authorchristian mueller <christian.ei.mueller@bmw.de>2011-12-28 15:55:32 +0100
committerchristian mueller <christian.ei.mueller@bmw.de>2011-12-29 15:43:02 +0100
commitb7e748007bbe0b16fa8a8a089c6cc8fe43bc7aac (patch)
treee93f5912113ad4d611944648d7f9746e009a0d9b /PluginRoutingInterfaceAsync/test/testRoutingInterfaceAsync.h
parent6b583365d1f0f5c7ff613ecfc323c4d1eba1699d (diff)
downloadaudiomanager-b7e748007bbe0b16fa8a8a089c6cc8fe43bc7aac.tar.gz
* assert on empty busname (routinginterface)ver-0.0.1
* added busname for DbusroutingSender * rework of sockethandlertests * small changes on compilerflags * new default error messages on dummy controller plugin * new plugin Asynchronous including tests
Diffstat (limited to 'PluginRoutingInterfaceAsync/test/testRoutingInterfaceAsync.h')
-rw-r--r--PluginRoutingInterfaceAsync/test/testRoutingInterfaceAsync.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/PluginRoutingInterfaceAsync/test/testRoutingInterfaceAsync.h b/PluginRoutingInterfaceAsync/test/testRoutingInterfaceAsync.h
new file mode 100644
index 0000000..f55b62e
--- /dev/null
+++ b/PluginRoutingInterfaceAsync/test/testRoutingInterfaceAsync.h
@@ -0,0 +1,45 @@
+/*
+ * testRoutingInterfaceAsync.h
+ *
+ * Created on: Dec 27, 2011
+ * Author: christian
+ */
+
+#ifndef TESTROUTINGINTERFACEASYNC_H_
+#define TESTROUTINGINTERFACEASYNC_H_
+
+#include <gtest/gtest.h>
+#include <gmock/gmock.h>
+#include <dlt/dlt.h>
+#include "mocklnterfaces.h"
+#include "SocketHandler.h"
+#include "../../AudioManagerDaemon/include/RoutingSender.h"
+
+#define UNIT_TEST 1
+
+namespace am {
+
+class testRoutingInterfaceAsync :public ::testing::Test
+{
+public:
+ static std::vector<std::string> pListRoutingPluginDirs;
+ SocketHandler pSocketHandler;
+ MockRoutingReceiveInterface pReceiveInterface;
+ static RoutingSender pRoutingSender;
+ static std::vector<std::string> returnListPlugins();
+ static am_Error_e handleDomainRegister (const am_Domain_s& domainData, am_domainID_t& domainID);
+ static am_Error_e handleSourceRegister (const am_Source_s& sourceData, am_sourceID_t& sourceID);
+ static am_Error_e handleSinkRegister(const am_Sink_s& sinkData, am_sinkID_t& sinkID);
+ void timerCallback(sh_timerHandle_t handle, void* userData);
+ shTimerCallBack_T<testRoutingInterfaceAsync> ptimerCallback;
+ testRoutingInterfaceAsync();
+ virtual ~testRoutingInterfaceAsync();
+
+ void SetUp();
+ void TearDown();
+private:
+ static am_domainID_t mDomainIDCount;
+};
+
+} /* namespace am */
+#endif /* TESTROUTINGINTERFACEASYNC_H_ */