comparison tests/logger/main.cpp @ 256:f04acabfbbe5

CMake: switch to NSIS with various fixes, closes #533
author David Demelier <markand@malikania.fr>
date Mon, 12 Sep 2016 17:54:27 +0200
parents 6635b9187d71
children c6fbb6e0e06d
comparison
equal deleted inserted replaced
255:233366c94ddb 256:f04acabfbbe5
30 std::string lineInfo; 30 std::string lineInfo;
31 std::string lineWarning; 31 std::string lineWarning;
32 32
33 } // !namespace 33 } // !namespace
34 34
35 class MyInterface : public log::Interface { 35 class MyInterface : public log::Logger {
36 public: 36 public:
37 void debug(const std::string &line) override 37 void debug(const std::string &line) override
38 { 38 {
39 lineDebug = line; 39 lineDebug = line;
40 } 40 }
94 } 94 }
95 95
96 int main(int argc, char **argv) 96 int main(int argc, char **argv)
97 { 97 {
98 log::setVerbose(true); 98 log::setVerbose(true);
99 log::setInterface(std::make_unique<MyInterface>()); 99 log::setLogger(std::make_unique<MyInterface>());
100 log::setFilter(std::make_unique<MyFilter>()); 100 log::setFilter(std::make_unique<MyFilter>());
101 101
102 testing::InitGoogleTest(&argc, argv); 102 testing::InitGoogleTest(&argc, argv);
103 103
104 return RUN_ALL_TESTS(); 104 return RUN_ALL_TESTS();