From: Tomasz Swierczek Date: Wed, 18 Jul 2018 12:00:02 +0000 (+0200) Subject: Adjust build to boost 1.65.0 and up X-Git-Tag: submit/tizen/20180718.133940^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f297606be5e13711c2889a09797413f62e146b79;p=platform%2Fcore%2Fsecurity%2Flibwebappenc.git Adjust build to boost 1.65.0 and up Change-Id: I4f541900316f3419827fa3e3f66bcdf81e40f44e --- 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;