comparison TestFramework.hpp @ 0:a3834af36579

Working with memory backend.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Mon, 20 Aug 2012 15:49:48 +0200
parents
children 2833b7f8884a
comparison
equal deleted inserted replaced
-1:000000000000 0:a3834af36579
1 #ifndef TESTFRAMEWORK_HPP
2 #define TESTFRAMEWORK_HPP
3
4 /*
5 This header sets up everything for the testframework e.g. switches
6 between headerincludes and dynamic linking
7 */
8
9 //This should really be defined from the build framework
10 #define BOOSTTEST_HEADER_INCLUDE
11
12 #define BOOST_TEST_MAIN
13
14 #ifdef BOOSTTEST_HEADER_INCLUDE
15 #include <boost/test/included/unit_test.hpp>
16 #else
17 #include <boost/test/unit_test.hpp>
18 #endif
19
20 //Here comes our helperfunctions
21 #include <QtCore/QString>
22 inline std::ostream& operator<<(std::ostream& out, const QString& rhs)
23 {
24 return out << rhs.toStdString();
25 }
26
27 #endif //TESTFRAMEWORK_HPP