12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #ifndef BOOST_BEAST_TEST_FAIL_COUNT_HPP
- #define BOOST_BEAST_TEST_FAIL_COUNT_HPP
- #include <boost/beast/core/detail/config.hpp>
- #include <boost/beast/_experimental/test/error.hpp>
- #include <cstdlib>
- namespace boost {
- namespace beast {
- namespace test {
- class fail_count
- {
- std::size_t n_;
- std::size_t i_ = 0;
- error_code ec_;
- public:
- fail_count(fail_count&&) = default;
-
- BOOST_BEAST_DECL
- explicit
- fail_count(
- std::size_t n,
- error_code ev = error::test_failure);
-
- BOOST_BEAST_DECL
- void
- fail();
-
- BOOST_BEAST_DECL
- bool
- fail(error_code& ec);
- };
- }
- }
- }
- #ifdef BOOST_BEAST_HEADER_ONLY
- #include <boost/beast/_experimental/test/impl/fail_count.ipp>
- #endif
- #endif
|