forked from boostorg/beast
Boost prep
This commit is contained in:
+10
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user