Files
boost_beast/test/core/file_posix.cpp
T

42 lines
869 B
C++
Raw Normal View History

2017-07-06 03:59:33 -07:00
//
2017-07-24 09:42:36 -07:00
// Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
2017-07-06 03:59:33 -07:00
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
2017-07-20 13:40:34 -07:00
// Official repository: https://github.com/boostorg/beast
//
2017-07-06 03:59:33 -07:00
// Test that header file is self-contained.
2017-07-20 13:40:34 -07:00
#include <boost/beast/core/file_posix.hpp>
2017-07-06 03:59:33 -07:00
2017-07-20 13:40:34 -07:00
#if BOOST_BEAST_USE_POSIX_FILE
2017-07-06 03:59:33 -07:00
#include "file_test.hpp"
2017-07-20 13:40:34 -07:00
#include <boost/beast/core/type_traits.hpp>
#include <boost/beast/unit_test/suite.hpp>
2017-07-06 03:59:33 -07:00
2017-07-20 13:40:34 -07:00
namespace boost {
2017-07-06 03:59:33 -07:00
namespace beast {
2017-07-13 04:57:46 -07:00
BOOST_STATIC_ASSERT(! std::is_copy_constructible<file_posix>::value);
2017-07-06 03:59:33 -07:00
class file_posix_test
: public beast::unit_test::suite
{
public:
void
run()
{
doTestFile<file_posix>(*this);
}
};
2017-07-20 13:40:34 -07:00
BOOST_BEAST_DEFINE_TESTSUITE(file_posix,core,beast);
2017-07-06 03:59:33 -07:00
} // beast
2017-07-20 13:40:34 -07:00
} // boost
2017-07-06 03:59:33 -07:00
#endif