| 1 | // |
|---|---|
| 2 | // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com) |
| 3 | // |
| 4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 6 | // |
| 7 | // Official repository: https://github.com/boostorg/beast |
| 8 | // |
| 9 | |
| 10 | // Test that header file is self-contained. |
| 11 | #include <boost/beast/core/file_posix.hpp> |
| 12 | |
| 13 | #if BOOST_BEAST_USE_POSIX_FILE |
| 14 | |
| 15 | #include "file_test.hpp" |
| 16 | |
| 17 | #include <boost/beast/_experimental/unit_test/suite.hpp> |
| 18 | |
| 19 | namespace boost { |
| 20 | namespace beast { |
| 21 | |
| 22 | BOOST_STATIC_ASSERT(! std::is_copy_constructible<file_posix>::value); |
| 23 | |
| 24 | class file_posix_test |
| 25 | : public beast::unit_test::suite |
| 26 | { |
| 27 | public: |
| 28 | void |
| 29 | run() |
| 30 | { |
| 31 | test_file<file_posix>(); |
| 32 | } |
| 33 | }; |
| 34 | |
| 35 | BEAST_DEFINE_TESTSUITE(beast,core,file_posix); |
| 36 | |
| 37 | } // beast |
| 38 | } // boost |
| 39 | |
| 40 | #endif |
| 41 |
