summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Swierczek <t.swierczek@samsung.com>2018-07-18 14:00:02 +0200
committerTomasz Swierczek <t.swierczek@samsung.com>2018-07-18 14:02:46 +0200
commitf297606be5e13711c2889a09797413f62e146b79 (patch)
tree3ebe55f13a0339d600b6f2dbd1572be7630b5499
parentbb1d90909f7185b436204a1fde5da99a902788c1 (diff)
downloadlibwebappenc-f297606be5e13711c2889a09797413f62e146b79.tar.gz
libwebappenc-f297606be5e13711c2889a09797413f62e146b79.tar.bz2
libwebappenc-f297606be5e13711c2889a09797413f62e146b79.zip
Change-Id: I4f541900316f3419827fa3e3f66bcdf81e40f44e
-rw-r--r--tests/colour_log_formatter.cpp15
-rw-r--r--tests/colour_log_formatter.h9
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/colour_log_formatter.cpp b/tests/colour_log_formatter.cpp
index 087951f..041fef8 100644
--- a/tests/colour_log_formatter.cpp
+++ b/tests/colour_log_formatter.cpp
@@ -348,6 +348,21 @@ colour_log_formatter::entry_context_finish(std::ostream& output)
output.flush();
}
+#if BOOST_VERSION >= 106500
+void
+colour_log_formatter::log_entry_context(std::ostream& os, log_level l, const_string value)
+{
+ (void)l;
+ os << "\n " << value;
+}
+void
+colour_log_formatter::entry_context_finish(std::ostream& os, log_level l)
+{
+ (void)l;
+ os.flush();
+}
+#endif
+
//____________________________________________________________________________//
} // namespace Test
} // namespace Wae
diff --git a/tests/colour_log_formatter.h b/tests/colour_log_formatter.h
index 968f6be..3de5899 100644
--- a/tests/colour_log_formatter.h
+++ b/tests/colour_log_formatter.h
@@ -63,6 +63,15 @@ public:
void log_entry_context(std::ostream& os,
boost::unit_test::const_string value);
void entry_context_finish(std::ostream& os);
+#if BOOST_VERSION >= 106500
+ void log_entry_context(
+ std::ostream& os,
+ boost::unit_test::log_level l,
+ boost::unit_test::const_string value);
+ void entry_context_finish(
+ std::ostream& os,
+ boost::unit_test::log_level l);
+#endif
private:
bool m_isTestCaseFailed;