Boost prep

This commit is contained in:
Vinnie Falco
2017-07-20 13:40:34 -07:00
parent 3777cb8b9c
commit 7139dd639a
375 changed files with 5253 additions and 3884 deletions

View File

@@ -4,13 +4,16 @@
// 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)
//
// Official repository: https://github.com/boostorg/beast
//
// Test that header file is self-contained.
#include <beast/websocket/error.hpp>
#include <boost/beast/websocket/error.hpp>
#include <beast/unit_test/suite.hpp>
#include <boost/beast/unit_test/suite.hpp>
#include <memory>
namespace boost {
namespace beast {
namespace websocket {
@@ -20,15 +23,15 @@ public:
void check(char const* name, error ev)
{
auto const ec = make_error_code(ev);
BEAST_EXPECT(std::string{ec.category().name()} == name);
BEAST_EXPECT(! ec.message().empty());
BEAST_EXPECT(std::addressof(ec.category()) ==
BOOST_BEAST_EXPECT(std::string{ec.category().name()} == name);
BOOST_BEAST_EXPECT(! ec.message().empty());
BOOST_BEAST_EXPECT(std::addressof(ec.category()) ==
std::addressof(detail::get_error_category()));
BEAST_EXPECT(detail::get_error_category().equivalent(
BOOST_BEAST_EXPECT(detail::get_error_category().equivalent(
static_cast<std::underlying_type<error>::type>(ev),
ec.category().default_error_condition(
static_cast<std::underlying_type<error>::type>(ev))));
BEAST_EXPECT(detail::get_error_category().equivalent(
BOOST_BEAST_EXPECT(detail::get_error_category().equivalent(
ec, static_cast<std::underlying_type<error>::type>(ev)));
}
@@ -41,7 +44,8 @@ public:
}
};
BEAST_DEFINE_TESTSUITE(error,websocket,beast);
BOOST_BEAST_DEFINE_TESTSUITE(error,websocket,beast);
} // websocket
} // beast
} // boost