Mercurial > irccd
diff tests/logger/main.cpp @ 488:7e273b7f4f92
Irccd: new coding style, closes #576
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 26 Sep 2017 17:18:47 +0200 |
parents | c6fbb6e0e06d |
children | 349fe29d86d5 |
line wrap: on
line diff
--- a/tests/logger/main.cpp Fri Aug 11 13:45:42 2017 +0200 +++ b/tests/logger/main.cpp Tue Sep 26 17:18:47 2017 +0200 @@ -32,7 +32,7 @@ } // !namespace -class MyInterface : public log::Logger { +class MyInterface : public log::logger { public: void debug(const std::string &line) override { @@ -50,19 +50,19 @@ } }; -class MyFilter : public log::Filter { +class MyFilter : public log::filter { public: - std::string preDebug(std::string input) const override + std::string pre_debug(std::string input) const override { return std::reverse(input.begin(), input.end()), input; } - std::string preInfo(std::string input) const override + std::string pre_info(std::string input) const override { return std::reverse(input.begin(), input.end()), input; } - std::string preWarning(std::string input) const override + std::string pre_warning(std::string input) const override { return std::reverse(input.begin(), input.end()), input; } @@ -95,9 +95,9 @@ int main(int argc, char **argv) { - log::setVerbose(true); - log::setLogger(std::make_unique<MyInterface>()); - log::setFilter(std::make_unique<MyFilter>()); + log::set_verbose(true); + log::set_logger(std::make_unique<MyInterface>()); + log::set_filter(std::make_unique<MyFilter>()); testing::InitGoogleTest(&argc, argv);