Mark colour_log_formatter methods as override 37/219837/2
authorKonrad Lipinski <k.lipinski2@samsung.com>
Tue, 10 Dec 2019 14:04:37 +0000 (15:04 +0100)
committerKonrad Lipinski <k.lipinski2@samsung.com>
Tue, 10 Dec 2019 16:07:56 +0000 (17:07 +0100)
Change-Id: I321149df1a390be56bf9a3ee1bcf83b726a01dc8

test/colour_log_formatter.cpp
test/colour_log_formatter.h

index c39e44e9a2248773aa25feed096f928e00e51af5..b13c139a0d82048297ca37c7c0415d8cbec6f1f4 100644 (file)
@@ -314,30 +314,31 @@ colour_log_formatter::entry_context_start(std::ostream& os, boost::unit_test::lo
     (void)os;
     (void)l;
 }
+#if BOOST_VERSION >= 106500
 void
-colour_log_formatter::log_entry_context(std::ostream& os, boost::unit_test::const_string value)
+colour_log_formatter::log_entry_context(std::ostream& os, log_level l, const_string value)
 {
     (void)os;
+    (void)l;
     (void)value;
 }
 void
-colour_log_formatter::entry_context_finish(std::ostream& os)
+colour_log_formatter::entry_context_finish(std::ostream& os, log_level l)
 {
     (void)os;
+    (void)l;
 }
-#if BOOST_VERSION >= 106501
+#else
 void
-colour_log_formatter::log_entry_context(std::ostream& os, log_level l, const_string value)
+colour_log_formatter::log_entry_context(std::ostream& os, boost::unit_test::const_string value)
 {
     (void)os;
-    (void)l;
     (void)value;
 }
 void
-colour_log_formatter::entry_context_finish(std::ostream& os, log_level l)
+colour_log_formatter::entry_context_finish(std::ostream& os)
 {
     (void)os;
-    (void)l;
 }
 #endif
 //____________________________________________________________________________//
index 69bd953ee43781ed4d8d596bbcf05309069580bb..e780bdff0087138aee879575bcdf60bdc058130b 100644 (file)
@@ -20,8 +20,8 @@ class colour_log_formatter : public boost::unit_test::unit_test_log_formatter {
 public:
     // Formatter interface
     colour_log_formatter() : m_isTestCaseFailed(false) {}
-    void log_start(std::ostream &, boost::unit_test::counter_t test_cases_amount);
-    void log_finish(std::ostream &);
+    void log_start(std::ostream &, boost::unit_test::counter_t test_cases_amount) override;
+    void log_finish(std::ostream &) override;
 
 #if BOOST_VERSION >= 107000
     void log_build_info(std::ostream &, bool) override;
@@ -29,29 +29,30 @@ public:
     void log_build_info(std::ostream &) override;
 #endif
 
-    void test_unit_start(std::ostream &, boost::unit_test::test_unit const &tu);
+    void test_unit_start(std::ostream &, boost::unit_test::test_unit const &tu) override;
     void test_unit_finish(std::ostream &, boost::unit_test::test_unit const &tu,
-                          unsigned long elapsed);
-    void test_unit_skipped(std::ostream &, boost::unit_test::test_unit const &tu);
+                          unsigned long elapsed) override;
+    void test_unit_skipped(std::ostream &, boost::unit_test::test_unit const &tu) override;
 
     void log_exception_start(std::ostream &,
                              boost::unit_test::log_checkpoint_data const &,
-                             boost::execution_exception const &ex);
-    void log_exception_finish(std::ostream &os);
+                             boost::execution_exception const &ex) override;
+    void log_exception_finish(std::ostream &os) override;
 
     void log_entry_start(std::ostream &, boost::unit_test::log_entry_data const &,
-                         log_entry_types let);
-    void log_entry_value(std::ostream &, boost::unit_test::const_string value);
-    void log_entry_value(std::ostream &, boost::unit_test::lazy_ostream const &value);
-    void log_entry_finish(std::ostream &);
-
-    void entry_context_start(std::ostream& os, boost::unit_test::log_level l);
-    void log_entry_context(std::ostream& os, boost::unit_test::const_string value);
-    void entry_context_finish(std::ostream& os);
-
-#if BOOST_VERSION >= 106501
-    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);
+                         log_entry_types let) override;
+    void log_entry_value(std::ostream &, boost::unit_test::const_string value) override;
+    void log_entry_value(std::ostream &, boost::unit_test::lazy_ostream const &value) override;
+    void log_entry_finish(std::ostream &) override;
+
+    void entry_context_start(std::ostream& os, boost::unit_test::log_level l) override;
+
+#if BOOST_VERSION >= 106500
+    void log_entry_context(std::ostream& os, boost::unit_test::log_level l, boost::unit_test::const_string value) override;
+    void entry_context_finish(std::ostream& os, boost::unit_test::log_level l) override;
+#else
+    void log_entry_context(std::ostream& os, boost::unit_test::const_string value) override;
+    void entry_context_finish(std::ostream& os) override;
 #endif
 
 private: