view TestFramework.hpp @ 63:dd086ec3220d

More removal of unnecessary includes.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Fri, 14 Sep 2012 21:10:03 +0200
parents 2833b7f8884a
children 2f45385195ae
line wrap: on
line source

#ifndef TESTFRAMEWORK_HPP
#define TESTFRAMEWORK_HPP

/*
  This header sets up everything for the testframework e.g. switches
  between headerincludes and dynamic linking
 */

//This should really be defined from the build framework
#define BOOSTTEST_HEADER_INCLUDE

#define BOOST_TEST_MAIN

#ifdef BOOSTTEST_HEADER_INCLUDE
#include <boost/test/included/unit_test.hpp>
#else
#include <boost/test/unit_test.hpp>
#endif

//Here comes our helperfunctions
class QString;
std::ostream& operator<<(std::ostream& out, const QString& rhs);
class QDateTime;
std::ostream& operator<<(std::ostream& out, const QDateTime& rhs);

#endif //TESTFRAMEWORK_HPP