2017-07-05 20:30:18 -07:00
|
|
|
//
|
2019-02-21 07:00:31 -08:00
|
|
|
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
|
2017-07-05 20:30:18 -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-05 20:30:18 -07:00
|
|
|
|
|
|
|
|
// Test that header file is self-contained.
|
2017-07-20 13:40:34 -07:00
|
|
|
#include <boost/beast/core/file_stdio.hpp>
|
2017-07-05 20:30:18 -07:00
|
|
|
|
|
|
|
|
#include "file_test.hpp"
|
|
|
|
|
|
2018-11-11 14:07:55 -08:00
|
|
|
#include <boost/beast/_experimental/unit_test/suite.hpp>
|
2017-07-05 20:30:18 -07:00
|
|
|
|
2017-07-20 13:40:34 -07:00
|
|
|
namespace boost {
|
2017-07-05 20:30:18 -07:00
|
|
|
namespace beast {
|
|
|
|
|
|
2017-07-13 04:57:46 -07:00
|
|
|
BOOST_STATIC_ASSERT(! std::is_copy_constructible<file_stdio>::value);
|
|
|
|
|
|
2017-07-05 20:30:18 -07:00
|
|
|
class file_stdio_test
|
|
|
|
|
: public beast::unit_test::suite
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
void
|
|
|
|
|
run()
|
|
|
|
|
{
|
2019-12-23 21:24:57 +01:00
|
|
|
#ifdef BOOST_MSVC
|
|
|
|
|
test_file<file_stdio, true>();
|
|
|
|
|
#else
|
2019-01-16 06:39:10 -08:00
|
|
|
test_file<file_stdio>();
|
2019-12-23 21:24:57 +01:00
|
|
|
#endif
|
2017-07-05 20:30:18 -07:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2017-08-01 17:01:57 -07:00
|
|
|
BEAST_DEFINE_TESTSUITE(beast,core,file_stdio);
|
2017-07-05 20:30:18 -07:00
|
|
|
|
|
|
|
|
} // beast
|
2017-07-20 13:40:34 -07:00
|
|
|
} // boost
|