1 // (c) Copyright Juergen Hunold 2012 2 // Use, modification and distribution is subject to the Boost Software 3 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 4 // http://www.boost.org/LICENSE_1_0.txt) 5 6 #define BOOST_TEST_MODULE QtGui 7 8 #include <QtWidgets/QApplication> 9 10 #include <boost/test/unit_test.hpp> 11 12 struct Fixture 13 { FixtureFixture14 Fixture() 15 : application(boost::unit_test::framework::master_test_suite().argc, 16 boost::unit_test::framework::master_test_suite().argv, 17 false) 18 { 19 BOOST_TEST_MESSAGE( "setup QApplication fixture" ); 20 } 21 ~FixtureFixture22 ~Fixture() 23 { 24 BOOST_TEST_MESSAGE( "teardown QApplication fixture" ); 25 } 26 27 QApplication application; 28 }; 29 30 BOOST_GLOBAL_FIXTURE( Fixture ); 31 BOOST_AUTO_TEST_CASE(defines)32BOOST_AUTO_TEST_CASE( defines) 33 { 34 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_CORE_LIB), true); 35 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_GUI_LIB), true); 36 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_WIDGETS_LIB), true); 37 } 38 39 BOOST_AUTO_TEST_CASE(qtgui_test)40BOOST_AUTO_TEST_CASE( qtgui_test) 41 { 42 BOOST_CHECK_EQUAL(true, true); 43 } 44