]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/test/qt5/qtwebsockets.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_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
6 #define BOOST_TEST_MODULE QtWebSockets
8 #include <QtWebSockets>
10 #include <boost/test/unit_test.hpp>
12 BOOST_AUTO_TEST_CASE (defines
)
14 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_CORE_LIB
), true);
15 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_WEBSOCKETS_LIB
), true);
18 BOOST_AUTO_TEST_CASE( websocket
)
21 socket
.setPauseMode(QAbstractSocket::PauseNever
);
23 BOOST_TEST(socket
.isValid() == false);