7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Test module for CF log level filter"
10 #include <boost/test/unit_test.hpp>
12 #include <boost/iostreams/device/back_inserter.hpp>
19 using namespace boost;
28 m_sink(iostreams::back_inserter(m_buffer))
43 iostreams::back_insert_device<string>
m_sink;
72 string str =
"Hello world!";
78 BOOST_CHECK_EQUAL(f.
m_buffer, std::string(
""));
82 BOOST_CHECK_EQUAL(f.
m_buffer, std::string(
""));
86 BOOST_CHECK_EQUAL(f.
m_buffer, std::string(
""));
111 BOOST_AUTO_TEST_SUITE_END()
external boost library namespace
LogLevelFilterFixture()
common setup for each test case
iostreams::back_insert_device< string > m_sink
BOOST_AUTO_TEST_CASE(setLogLevel)
LogLevel get_filter() const
Gives the default log level.
void set_log_level(const Uint level)
Sets the current log level.
~LogLevelFilterFixture()
common tear-down for each test case
void set_filter(LogLevel level)
Sets the default log level.
Filters log messages corresponding to their level.
Top-level namespace for coolfluid.
LogLevelFilter * m_filter
possibly common functions used on the tests below
std::streamsize write(Sink &sink, const char_type *data, std::streamsize size)
Forwards a message.
Most basic kernel library.