summaryrefslogtreecommitdiff
path: root/AudioManagerDaemon/test/database/databaseTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AudioManagerDaemon/test/database/databaseTest.cpp')
-rw-r--r--AudioManagerDaemon/test/database/databaseTest.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/AudioManagerDaemon/test/database/databaseTest.cpp b/AudioManagerDaemon/test/database/databaseTest.cpp
index 6f269e9..a1580fe 100644
--- a/AudioManagerDaemon/test/database/databaseTest.cpp
+++ b/AudioManagerDaemon/test/database/databaseTest.cpp
@@ -24,7 +24,7 @@
*/
#include "databaseTest.h"
-#include "Observer.h"
+#include "DatabaseObserver.h"
using namespace am;
@@ -35,6 +35,15 @@ extern bool equalRoutingElement (const am_RoutingElement_s a,const am_RoutingEle
extern bool equalClassProperties (const am_ClassProperty_s a,const am_ClassProperty_s b);
extern std::string int2string(int i);
+databaseTest::databaseTest()
+ :pDatabaseHandler(std::string(":memory:"))
+{
+}
+
+databaseTest::~databaseTest()
+{
+}
+
void databaseTest::createMainConnectionSetup()
{
//fill the connection database
@@ -111,7 +120,7 @@ void databaseTest::SetUp()
DLT_REGISTER_APP("Dtest","AudioManagerDeamon");
DLT_REGISTER_CONTEXT(AudioManager,"Main","Main Context");
DLT_LOG(AudioManager,DLT_LOG_INFO, DLT_STRING("Database Test started "));
- Observer *observer=NULL;
+ DatabaseObserver *observer=NULL;
pDatabaseHandler.registerObserver(observer);
}