]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/beast/test/beast/core/tcp_stream.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / beast / test / beast / core / tcp_stream.cpp
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/tcp_stream.hpp>
12
13 #include <boost/beast/_experimental/unit_test/suite.hpp>
14
15 namespace boost {
16 namespace beast {
17
18 class tcp_stream_test
19 : public beast::unit_test::suite
20 {
21 public:
22 using tcp = net::ip::tcp;
23
24 void
25 testStream()
26 {
27 net::io_context ioc;
28 {
29 tcp::socket s(ioc);
30 tcp_stream s1(std::move(s));
31 }
32 }
33
34 void
35 run()
36 {
37 testStream();
38 pass();
39 }
40 };
41
42 BEAST_DEFINE_TESTSUITE(beast,core,tcp_stream);
43
44 } // beast
45 } // boost