Crashpad
Public Member Functions | List of all members
crashpad::test::TestOutputStream Class Reference

The help class for OutputStreamInterface related tests. More...

#include "util/stream/test_output_stream.h"

Inheritance diagram for crashpad::test::TestOutputStream:

Public Member Functions

bool Write (const uint8_t *data, size_t size) override
 
bool Flush () override
 
const std::vector< uint8_t > & last_written_data () const
 
const std::vector< uint8_t > & all_data () const
 
size_t write_count () const
 
size_t flush_count () const
 

Detailed Description

The help class for OutputStreamInterface related tests.

Member Function Documentation

◆ all_data()

const std::vector<uint8_t>& crashpad::test::TestOutputStream::all_data ( ) const
inline
Returns
all data that has been received.

◆ flush_count()

size_t crashpad::test::TestOutputStream::flush_count ( ) const
inline
Returns
the number of times Flush() has been called.

◆ last_written_data()

const std::vector<uint8_t>& crashpad::test::TestOutputStream::last_written_data ( ) const
inline
Returns
the data that has been received by the last call of Write().

◆ write_count()

size_t crashpad::test::TestOutputStream::write_count ( ) const
inline
Returns
the number of times Write() has been called.

The documentation for this class was generated from the following files: