From 2811d686ed01df50d0c50f97463619650656c0dc Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Fri, 17 Feb 2012 23:06:25 -0200 Subject: [PATCH] Added functions prototypes to suppress some warnings. --- test/test_configurationoptions.cpp | 17 +++++++++++++++++ test/test_messagepayload.cpp | 13 +++++++++++++ 2 files changed, 30 insertions(+), 0 deletions(-) diff --git a/test/test_configurationoptions.cpp b/test/test_configurationoptions.cpp index c7dd972..f4343b0 100644 --- a/test/test_configurationoptions.cpp +++ b/test/test_configurationoptions.cpp @@ -37,6 +37,23 @@ typedef boost::shared_ptr option_des bool option_present( const std::vector< option_description_item > &options, const std::string &option_to_find +); +void option_insert( + const std::string &key, + const boost::any &value, + boost::program_options::variables_map &vm +); +void option_clear_and_insert( + const std::string &key, + const boost::any &value, + boost::program_options::variables_map &vm +); + +//------------------------------------------------------------------------------ + +bool option_present( + const std::vector< option_description_item > &options, + const std::string &option_to_find ) { std::vector< option_description_item >::const_iterator first = options.begin(); diff --git a/test/test_messagepayload.cpp b/test/test_messagepayload.cpp index 9cf1c28..fb05edf 100644 --- a/test/test_messagepayload.cpp +++ b/test/test_messagepayload.cpp @@ -27,6 +27,17 @@ on this file might be covered by the GNU General Public License. #include "host/messagepayload.h" +//------------------------------------------------------------------------------ + +MessagePayload create_message_payload( const std::size_t bytes_total ); +void fill_message_payload( + const std::size_t bytes_total, + const uint8_t first_value, + MessagePayload& mp +); + +//------------------------------------------------------------------------------ + MessagePayload create_message_payload( const std::size_t bytes_total ) { return MessagePayload( bytes_total ); @@ -44,6 +55,8 @@ void fill_message_payload( } } +//------------------------------------------------------------------------------ + BOOST_AUTO_TEST_SUITE( TestMessagePayload ) BOOST_AUTO_TEST_CASE( basic_assignment ) -- 1.7.1