summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon/test/AmRouterTest/CAmRouterTest.h
diff options
context:
space:
mode:
authorAleksandar Donchev <aleksander.donchev@partner.bmw.de>2013-06-21 16:38:56 +0200
committerChristian Linke <christian.linke@bmw.de>2013-06-26 17:46:18 +0200
commit721aed89269292b07bdd21361828612c34640bde (patch)
tree72b1f66168bd1cee24bd0eae7932e7e6c46a4ad6 /AudioManagerDaemon/test/AmRouterTest/CAmRouterTest.h
parent0ba29aa3f94b9231f6876f3c0023db68e45a93d7 (diff)
downloadaudiomanager-721aed89269292b07bdd21361828612c34640bde.tar.gz
First version Map implementation of database handler with unit tests ( ticket 38 )
Signed-off-by: Christian Linke <christian.linke@bmw.de>
Diffstat (limited to 'AudioManagerDaemon/test/AmRouterTest/CAmRouterTest.h')
-rw-r--r--AudioManagerDaemon/test/AmRouterTest/CAmRouterTest.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/AudioManagerDaemon/test/AmRouterTest/CAmRouterTest.h b/AudioManagerDaemon/test/AmRouterTest/CAmRouterTest.h
index ea7cd92..951eed5 100644
--- a/AudioManagerDaemon/test/AmRouterTest/CAmRouterTest.h
+++ b/AudioManagerDaemon/test/AmRouterTest/CAmRouterTest.h
@@ -12,7 +12,7 @@
* this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*
- * \author Christian Mueller, christian.ei.mueller@bmw.de BMW 2011,2012
+* \author Aleksandar Donchev, aleksander.donchev@partner.bmw.de BMW 2013
*
* For further information see http://www.genivi.org/.
*
@@ -30,7 +30,11 @@
#include <string>
#include <vector>
#include <set>
-#include "CAmDatabaseHandler.h"
+#ifdef WITH_DATABASE_STORAGE
+ #include "CAmDatabaseHandler.h"
+#else
+ #include "CAmMapHandler.h"
+#endif
#include "CAmControlReceiver.h"
#include "CAmControlSender.h"
#include "CAmDatabaseObserver.h"
@@ -43,6 +47,7 @@
#include "../MockIAmControlSend.h"
#include "../MockIAmCommandSend.h"
+
namespace am
{
@@ -54,8 +59,12 @@ public:
std::vector<std::string> plistRoutingPluginDirs;
std::vector<std::string> plistCommandPluginDirs;
CAmSocketHandler pSocketHandler;
- CAmDatabaseHandler pDatabaseHandler;
CAmControlSender pControlSender;
+#ifdef WITH_DATABASE_STORAGE
+ CAmDatabaseHandler pDatabaseHandler;
+#else
+ CAmMapHandler pDatabaseHandler;
+#endif
CAmRouter pRouter;
CAmRoutingSender pRoutingSender;
CAmCommandSender pCommandSender;