From 7b4ad13452dac45128209d54ebc2e1e83ecd5beb Mon Sep 17 00:00:00 2001 From: Aleksander Donchev Date: Wed, 10 Jul 2013 14:05:44 +0200 Subject: Created an abstract interface for the database handlers. Renamed CAmDatabaseHandler to CAmDatabaseHandlerSQLite and CAmMapHandler to CAmDatabaseHandlerMap. Changed std::map to std::unordered_map. Added to the cmake configuration a definition, which defines the capacity of the source and sink maps. Signed-off-by: Christian Linke --- AudioManagerDaemon/test/AmRouterTest/CAmRouterTest.h | 4 ++-- AudioManagerDaemon/test/AmRouterTest/CMakeLists.txt | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'AudioManagerDaemon/test/AmRouterTest') diff --git a/AudioManagerDaemon/test/AmRouterTest/CAmRouterTest.h b/AudioManagerDaemon/test/AmRouterTest/CAmRouterTest.h index 93b80db..9ed8f74 100644 --- a/AudioManagerDaemon/test/AmRouterTest/CAmRouterTest.h +++ b/AudioManagerDaemon/test/AmRouterTest/CAmRouterTest.h @@ -30,7 +30,7 @@ #include #include #include -#include "CAmDatabaseHandler.h" +#include "CAmDatabaseHandlerSQLite.h" #include "CAmControlReceiver.h" #include "CAmControlSender.h" #include "CAmDatabaseObserver.h" @@ -56,7 +56,7 @@ public: std::vector plistCommandPluginDirs; CAmSocketHandler pSocketHandler; CAmControlSender pControlSender; - CAmDatabaseHandler pDatabaseHandler; + CAmDatabaseHandlerSQLite pDatabaseHandler; CAmRouter pRouter; CAmRoutingSender pRoutingSender; CAmCommandSender pCommandSender; diff --git a/AudioManagerDaemon/test/AmRouterTest/CMakeLists.txt b/AudioManagerDaemon/test/AmRouterTest/CMakeLists.txt index bff2205..6f556ff 100644 --- a/AudioManagerDaemon/test/AmRouterTest/CMakeLists.txt +++ b/AudioManagerDaemon/test/AmRouterTest/CMakeLists.txt @@ -44,8 +44,7 @@ INCLUDE_DIRECTORIES( ) file(GLOB ROUTING_SRCS_CXX - "../../src/CAmMapHandler.cpp" - "../../src/CAmDatabaseHandler.cpp" + "../../src/CAmDatabaseHandlerSQLite.cpp" "../../src/CAmDatabaseObserver.cpp" "../../src/CAmCommandSender.cpp" "../../src/CAmRoutingSender.cpp" -- cgit v1.2.1