]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/test/qt5/mock.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / tools / build / test / qt5 / mock.cpp
CommitLineData
7c673cae
FG
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 QtMoc
7
8#include "mock.h"
9
10#include <boost/test/unit_test.hpp>
11
12Mock::Mock()
13{
14}
15
16/*!
17 Check that the compiler get the correct #defines.
18 The logic to test the moc is in the header file "mock.h"
19 */
20BOOST_AUTO_TEST_CASE(construct_mock)
21{
22 delete new Mock();
23
24 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_CORE_LIB), true);
25 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(TEST_MOCK), true);
26}