123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- #ifndef BOOST_TEST_OUTPUT_TEST_STREAM_HPP_012705GER
- #define BOOST_TEST_OUTPUT_TEST_STREAM_HPP_012705GER
- #include <boost/test/detail/global_typedef.hpp>
- #include <boost/test/utils/wrap_stringstream.hpp>
- #include <boost/test/tools/assertion_result.hpp>
- #include <cstddef> // for std::size_t
- #include <boost/test/detail/suppress_warnings.hpp>
- namespace boost {
- namespace test_tools {
- class BOOST_TEST_DECL output_test_stream : public wrap_stringstream::wrapped_stream {
- typedef unit_test::const_string const_string;
- public:
-
-
-
-
-
-
-
-
-
- explicit output_test_stream( const_string pattern_file_name = const_string(),
- bool match_or_save = true,
- bool text_or_binary = true );
-
- ~output_test_stream() BOOST_OVERRIDE;
-
-
-
- virtual assertion_result is_empty( bool flush_stream = true );
-
-
-
-
-
- virtual assertion_result check_length( std::size_t length, bool flush_stream = true );
-
-
-
-
- virtual assertion_result is_equal( const_string arg_, bool flush_stream = true );
-
-
-
- virtual assertion_result match_pattern( bool flush_stream = true );
-
- void flush();
- protected:
-
-
-
- virtual std::string get_stream_string_representation() const;
- private:
-
-
- std::size_t length();
-
- virtual void sync();
- struct Impl;
- Impl* m_pimpl;
- };
- }
- }
- #include <boost/test/detail/enable_warnings.hpp>
- #endif
|