1//
2// Copyright (c) 2018 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/close_socket.hpp>
12
13#include <boost/beast/_experimental/unit_test/suite.hpp>
14#include <boost/beast/_experimental/test/stream.hpp>
15#include <boost/beast/core/stream_traits.hpp>
16#include <boost/beast/core/string.hpp>
17
18#include <boost/asio/ip/tcp.hpp>
19#include <boost/asio/write.hpp>
20#include <utility>
21
22namespace boost {
23namespace beast {
24
25class close_socket_test : public beast::unit_test::suite
26{
27public:
28 void
29 run() override
30 {
31 testClose();
32 testJavadocs();
33 }
34};
35
36BEAST_DEFINE_TESTSUITE(beast,core,close_socket);
37
38} // beast
39} // boost
40

source code of boost/libs/beast/test/beast/core/close_socket.cpp