diff options
author | Aleksander Donchev <aleksander.donchev@partner.bmw.de> | 2013-07-10 14:05:44 +0200 |
---|---|---|
committer | Aleksander Donchev <aleksander.donchev@partner.bmw.de> | 2013-07-10 14:59:18 +0200 |
commit | 7b4ad13452dac45128209d54ebc2e1e83ecd5beb (patch) | |
tree | d487e0da36ff4b79887e1996591806bbe43d3708 /AudioManagerDaemon/test/AmDatabaseHandlerTest | |
parent | 9dfa70416411055a86a9fd7eba828c65bea48325 (diff) | |
download | audiomanager-7b4ad13452dac45128209d54ebc2e1e83ecd5beb.tar.gz |
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 <christian.linke@bmw.de>
Diffstat (limited to 'AudioManagerDaemon/test/AmDatabaseHandlerTest')
-rw-r--r-- | AudioManagerDaemon/test/AmDatabaseHandlerTest/CAmDatabaseHandlerTest.h | 4 | ||||
-rw-r--r-- | AudioManagerDaemon/test/AmDatabaseHandlerTest/CMakeLists.txt | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/AudioManagerDaemon/test/AmDatabaseHandlerTest/CAmDatabaseHandlerTest.h b/AudioManagerDaemon/test/AmDatabaseHandlerTest/CAmDatabaseHandlerTest.h index 25d63a3..b23aba4 100644 --- a/AudioManagerDaemon/test/AmDatabaseHandlerTest/CAmDatabaseHandlerTest.h +++ b/AudioManagerDaemon/test/AmDatabaseHandlerTest/CAmDatabaseHandlerTest.h @@ -26,7 +26,7 @@ #include "gtest/gtest.h" #include "gmock/gmock.h" -#include "CAmDatabaseHandler.h" +#include "CAmDatabaseHandlerSQLite.h" #include "CAmControlReceiver.h" #include "CAmControlSender.h" #include "CAmDatabaseObserver.h" @@ -51,7 +51,7 @@ public: std::vector<std::string> plistRoutingPluginDirs; std::vector<std::string> plistCommandPluginDirs; CAmSocketHandler pSocketHandler; - CAmDatabaseHandler pDatabaseHandler; + CAmDatabaseHandlerSQLite pDatabaseHandler; CAmRoutingSender pRoutingSender; CAmCommandSender pCommandSender; MockIAmCommandSend pMockInterface; diff --git a/AudioManagerDaemon/test/AmDatabaseHandlerTest/CMakeLists.txt b/AudioManagerDaemon/test/AmDatabaseHandlerTest/CMakeLists.txt index 83e7197..7899588 100644 --- a/AudioManagerDaemon/test/AmDatabaseHandlerTest/CMakeLists.txt +++ b/AudioManagerDaemon/test/AmDatabaseHandlerTest/CMakeLists.txt @@ -44,7 +44,7 @@ INCLUDE_DIRECTORIES( ) file(GLOB DATABASE_SRCS_CXX - "../../src/CAmDatabaseHandler.cpp" + "../../src/CAmDatabaseHandlerSQLite.cpp" "../../src/CAmDatabaseObserver.cpp" "../../src/CAmCommandSender.cpp" "../../src/CAmRoutingSender.cpp" |