comparison UnitTestsSources/UnitTestsMain.cpp @ 191:993dd140bd30

Resort to Orthanc framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 16 Apr 2018 21:29:30 +0200
parents 81f16c5667ba
children e481ff4a86cc
comparison
equal deleted inserted replaced
190:7151dbac8d5e 191:993dd140bd30
23 #include <boost/lexical_cast.hpp> 23 #include <boost/lexical_cast.hpp>
24 24
25 static int argc_; 25 static int argc_;
26 static char** argv_; 26 static char** argv_;
27 27
28 #include "../Orthanc/Core/OrthancException.h"
29 #include "../Orthanc/Core/SystemToolbox.h"
30 #include "../Plugin/Cache/CacheManager.h" 28 #include "../Plugin/Cache/CacheManager.h"
31 #include "../Plugin/Cache/CacheScheduler.h" 29 #include "../Plugin/Cache/CacheScheduler.h"
32 #include "../Plugin/Cache/ICacheFactory.h" 30 #include "../Plugin/Cache/ICacheFactory.h"
33 #include "../Plugin/Cache/ICacheFactory.h" 31 #include "../Plugin/Cache/ICacheFactory.h"
32
33 #include <Core/Logging.h>
34 #include <Core/OrthancException.h>
35 #include <Core/SystemToolbox.h>
34 36
35 using namespace OrthancPlugins; 37 using namespace OrthancPlugins;
36 38
37 39
38 class CacheManagerTest : public testing::Test 40 class CacheManagerTest : public testing::Test
192 argc_ = argc; 194 argc_ = argc;
193 argv_ = argv; 195 argv_ = argv;
194 196
195 ::testing::InitGoogleTest(&argc, argv); 197 ::testing::InitGoogleTest(&argc, argv);
196 198
199 Orthanc::Logging::Initialize();
200 Orthanc::Logging::EnableInfoLevel(true);
201
197 return RUN_ALL_TESTS(); 202 return RUN_ALL_TESTS();
198 } 203 }