]> git.proxmox.com Git - ceph.git/blob - ceph/src/Beast/test/core/write_dynabuf.cpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / Beast / test / core / write_dynabuf.cpp
1 //
2 // Copyright (c) 2013-2017 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
8 // Test that header file is self-contained.
9 #include <beast/core/write_dynabuf.hpp>
10
11 #include <beast/core/streambuf.hpp>
12 #include <beast/unit_test/suite.hpp>
13
14 namespace beast {
15
16 class write_dynabuf_test : public beast::unit_test::suite
17 {
18 public:
19 void run() override
20 {
21 streambuf sb;
22 std::string s;
23 write(sb, boost::asio::const_buffer{"", 0});
24 write(sb, boost::asio::mutable_buffer{nullptr, 0});
25 write(sb, boost::asio::null_buffers{});
26 write(sb, boost::asio::const_buffers_1{"", 0});
27 write(sb, boost::asio::mutable_buffers_1{nullptr, 0});
28 write(sb, s);
29 write(sb, 23);
30 pass();
31 }
32 };
33
34 BEAST_DEFINE_TESTSUITE(write_dynabuf,core,beast);
35
36 } // beast