PionNetworkLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
unit_test.hpp File Reference
#include <iostream>
#include <fstream>
#include <boost/version.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/unit_test_log.hpp>
#include <boost/test/unit_test_log_formatter.hpp>
#include <boost/test/test_case_template.hpp>
#include <boost/test/utils/xml_printer.hpp>
#include <pion/logger.hpp>
#include <unistd.h>
Include dependency graph for unit_test.hpp:

Classes

class  pion::test::safe_xml_log_formatter
 thread-safe version of Boost.Test's xml_log_formatter class More...
 
struct  pion::test::config
 

Namespaces

 pion
 
 pion::test
 

Macros

#define CHANGE_DIRECTORY   chdir
 
#define GET_DIRECTORY(a, b)   getcwd(a,b)
 
#define DIRECTORY_MAX_SIZE   1000
 
#define BOOST_AUTO_TEST_SUITE_FIXTURE_TEMPLATE(suite_name, fixture_types)
 
#define BOOST_AUTO_TEST_CASE_FIXTURE_TEMPLATE(test_name)
 

Functions

static char * pion::test::trim (char *str)
 
static bool pion::test::read_lines_from_file (const std::string &filename, std::list< std::string > &lines)
 
static bool pion::test::check_files_match (const std::string &fileA, const std::string &fileB)
 
static bool pion::test::check_files_exact_match (const std::string &fileA, const std::string &fileB, bool ignore_line_endings=false)
 

Macro Definition Documentation

#define BOOST_AUTO_TEST_CASE_FIXTURE_TEMPLATE (   test_name)
Value:
template<typename F> \
struct test_name : public F \
{ void test_method(); }; \
\
struct BOOST_AUTO_TC_INVOKER( test_name ) { \
template<typename TestType> \
static void run( boost::type<TestType>* = 0 ) \
{ \
test_name<TestType> t; \
t.test_method(); \
} \
}; \
\
BOOST_AUTO_TU_REGISTRAR( test_name )( \
boost::unit_test::ut_detail::template_test_case_gen< \
BOOST_AUTO_TC_INVOKER( test_name ), \
BOOST_AUTO_TEST_CASE_FIXTURE_TYPES >( \
BOOST_STRINGIZE( test_name ) ) ); \
\
template<typename F> \
void test_name<F>::test_method() \
#define BOOST_AUTO_TEST_SUITE_FIXTURE_TEMPLATE (   suite_name,
  fixture_types 
)
Value:
BOOST_AUTO_TEST_SUITE(suite_name) \
typedef fixture_types BOOST_AUTO_TEST_CASE_FIXTURE_TYPES; \
#define CHANGE_DIRECTORY   chdir
#define DIRECTORY_MAX_SIZE   1000
#define GET_DIRECTORY (   a,
 
)    getcwd(a,b)