Boost prep

This commit is contained in:
Vinnie Falco
2017-07-23 17:34:13 -07:00
parent 3777cb8b9c
commit 7139dd639a
375 changed files with 5253 additions and 3884 deletions
+10 -6
View File
@@ -4,12 +4,15 @@
// 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/http/field.hpp>
#include <boost/beast/http/field.hpp>
#include <beast/unit_test/suite.hpp>
#include <boost/beast/unit_test/suite.hpp>
namespace boost {
namespace beast {
namespace http {
@@ -22,8 +25,8 @@ public:
auto const match =
[&](field f, string_view s)
{
BEAST_EXPECT(iequals(to_string(f), s));
BEAST_EXPECT(string_to_field(s) == f);
BOOST_BEAST_EXPECT(iequals(to_string(f), s));
BOOST_BEAST_EXPECT(string_to_field(s) == f);
};
match(field::accept, "accept");
@@ -386,7 +389,7 @@ public:
auto const unknown =
[&](string_view s)
{
BEAST_EXPECT(string_to_field(s) == field::unknown);
BOOST_BEAST_EXPECT(string_to_field(s) == field::unknown);
};
unknown("");
unknown("x");
@@ -399,7 +402,8 @@ public:
}
};
BEAST_DEFINE_TESTSUITE(field,http,beast);
BOOST_BEAST_DEFINE_TESTSUITE(field,http,beast);
} // http
} // beast
} // boost