diff options
author | Martin Koch <mkoch@de.adit-jv.com> | 2020-01-14 14:48:54 +0100 |
---|---|---|
committer | Martin Koch <mkoch@de.adit-jv.com> | 2020-01-14 15:27:26 +0100 |
commit | 56b7b1883c354b78ab6cff5739ddd2f170603324 (patch) | |
tree | 6f95ae6a3cc298633b9af7e5a7d3febbba5dbd35 /AudioManagerCore/test/AmMapHandlerTest/CAmMapHandlerTest.cpp | |
parent | e0c47ec1fd95abbc5f8f32f9d9968dfbd02b0999 (diff) | |
download | audiomanager-56b7b1883c354b78ab6cff5739ddd2f170603324.tar.gz |
AM: Reorganize daemon, core, utilities and tests to make use of the new logging architecture.
- Known side-effect: CAmSerializer.h and TAmPluginTemplate.h no longer indirectly include
dlt_user.h. Thus macros like DLT_DECLARE_CONTEXT and DLT_IMPORT_CONTEXT
may be undefined in application code unless CAmDltWrapper.h or dlt_user.h is included explicitly.
- Since the DLT functionality is now encapsulated inside a dedicated class, such declaration is
usually superfluous and can be dropped.
Signed-off-by: Martin Koch <mkoch@de.adit-jv.com>
Diffstat (limited to 'AudioManagerCore/test/AmMapHandlerTest/CAmMapHandlerTest.cpp')
-rw-r--r-- | AudioManagerCore/test/AmMapHandlerTest/CAmMapHandlerTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/AudioManagerCore/test/AmMapHandlerTest/CAmMapHandlerTest.cpp b/AudioManagerCore/test/AmMapHandlerTest/CAmMapHandlerTest.cpp index 1872aeb..6e10d19 100644 --- a/AudioManagerCore/test/AmMapHandlerTest/CAmMapHandlerTest.cpp +++ b/AudioManagerCore/test/AmMapHandlerTest/CAmMapHandlerTest.cpp @@ -27,7 +27,7 @@ #include <vector> #include <set> #include <ios> -#include "CAmDltWrapper.h" +#include "CAmLogWrapper.h" #include "CAmCommandLineSingleton.h" using namespace am; @@ -3550,7 +3550,8 @@ int main(int argc, char **argv) catch (TCLAP::ArgException &e) // catch any exceptions { std::cerr << "error: " << e.error() << " for arg " << e.argId() << std::endl; } CAmCommandLineSingleton::instance()->preparse(argc,argv); - CAmDltWrapper::instanctiateOnce("DTEST","Database Test",enableDebug.getValue(),CAmDltWrapper::logDestination::DAEMON); + CAmLogWrapper::instantiateOnce("DTEST","Database Test" + ,enableDebug.getValue() ? LS_ON : LS_OFF, LOG_SERVICE_DLT); logInfo("Database Test started "); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); |