Adjust build to boost 1.65.1 38/181938/3 accepted/tizen/unified/20180621.141538 submit/tizen/20180621.091746
authorTomasz Swierczek <t.swierczek@samsung.com>
Tue, 19 Jun 2018 05:54:16 +0000 (07:54 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Tue, 19 Jun 2018 06:48:52 +0000 (08:48 +0200)
Change-Id: Ic31a2e237154e92e3ca1309ad40a14e26b369f00

test/colour_log_formatter.cc
test/colour_log_formatter.h

index 71a66b401934e039385fae809922f40a3ac83a9c..00f3bd8fe916a3e2ed7336a0d9075ec7ff247bae 100644 (file)
@@ -328,6 +328,28 @@ colour_log_formatter::entry_context_finish(std::ostream& output)
 
 //____________________________________________________________________________//
 
+// adjustment to boost 1.65.1 and up
+#if BOOST_VERSION >= 106501
+void
+colour_log_formatter::log_entry_context(
+               std::ostream& os,
+               boost::unit_test::log_level l,
+               boost::unit_test::const_string value)
+{
+       (void)l;
+       os <<< "\n    " << value;
+}
+void
+colour_log_formatter::entry_context_finish(
+               std::ostream& os,
+               boost::unit_test::log_level l)
+{
+       (void)l;
+       os.flush();
+}
+#endif
+//____________________________________________________________________________//
+
 } // namespace cryptsvc
 
 //____________________________________________________________________________//
index 734012aea537dcadeb38ce943fb868b2496c46de..d6382d2f449bd0ae1b10ab5db28ed95145f87c6c 100644 (file)
@@ -67,6 +67,17 @@ public:
                boost::unit_test::const_string value);
        void    entry_context_finish(std::ostream &);
 
+#if BOOST_VERSION >= 106501
+       void    log_entry_context(
+               std::ostream &,
+               boost::unit_test::log_level,
+               boost::unit_test::const_string);
+       void    entry_context_finish(
+               std::ostream &,
+               boost::unit_test::log_level);
+#endif
+
+
 private:
        bool m_isTestCaseFailed;
 };