qtlocation.cpp 838 B

123456789101112131415161718192021222324252627282930
  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.txt or copy at
  4. // https://www.bfgroup.xyz/b2/LICENSE.txt)
  5. #define BOOST_TEST_MODULE QtPositioning
  6. #include <QGeoAddress>
  7. #include <QGeoLocation>
  8. #include <boost/test/unit_test.hpp>
  9. BOOST_AUTO_TEST_CASE (defines)
  10. {
  11. BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_CORE_LIB), true);
  12. BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_POSITIONING_LIB), true);
  13. BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_NETWORK_LIB), true);
  14. BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_LOCATION_LIB), true);
  15. }
  16. BOOST_TEST_DONT_PRINT_LOG_VALUE(QGeoAddress)
  17. BOOST_AUTO_TEST_CASE( geo_location )
  18. {
  19. QGeoLocation geolocation;
  20. QGeoAddress address;
  21. BOOST_CHECK_EQUAL(geolocation.address(), address);
  22. }