• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 QtPositioning
7 
8 #include <QGeoAddress>
9 #include <QGeoLocation>
10 
11 #include <boost/test/unit_test.hpp>
12 
BOOST_AUTO_TEST_CASE(defines)13 BOOST_AUTO_TEST_CASE (defines)
14 {
15     BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_CORE_LIB), true);
16     BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_POSITIONING_LIB), true);
17     BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_NETWORK_LIB), true);
18     BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_LOCATION_LIB), true);
19 }
20 
21 BOOST_TEST_DONT_PRINT_LOG_VALUE(QGeoAddress)
22 
BOOST_AUTO_TEST_CASE(geo_location)23 BOOST_AUTO_TEST_CASE( geo_location )
24 {
25     QGeoLocation geolocation;
26 
27     QGeoAddress address;
28 
29     BOOST_CHECK_EQUAL(geolocation.address(), address);
30 }
31