]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/qt5/qtwebview.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / test / qt5 / qtwebview.cpp
1 // (c) Copyright Juergen Hunold 2016
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
6 #define BOOST_TEST_MODULE QtWebView
7
8 #include <QtWebView>
9
10 #include <QGuiApplication>
11
12 #include <boost/test/unit_test.hpp>
13
14 BOOST_AUTO_TEST_CASE( defines)
15 {
16 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_CORE_LIB), true);
17 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_WEBENGINE_LIB), true);
18 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_WEBENGINECORE_LIB), true);
19 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_WEBVIEW_LIB), true);
20 }
21
22 /*!
23 Just call the global initialization function
24 */
25 BOOST_AUTO_TEST_CASE( webview )
26 {
27 QGuiApplication app(boost::unit_test::framework::master_test_suite().argc,
28 boost::unit_test::framework::master_test_suite().argv);
29
30 QtWebView::initialize();
31 }