#include <InputStreamTest.h>
Inherited by BufferInputStreamTest, FileDataInputStreamTest, and FileInputStreamTest.
Public Member Functions | |
void | setUp () |
void | tearDown () |
void | testReadBigChunk (InputStream &stream, const void *expectedData, const int expectedDataSize) |
Reads the stream with a big chunk (size > stream size). | |
void | testReadTwoChunks (InputStream &stream, const void *expectedData, const int expectedDataSize) |
Reads the stream in 2 chunks. | |
void | testReadManyChunks (InputStream &stream, const void *expectedData, const int expectedDataSize, const int chunkSize=25) |
Reads the stream in many small chuncks. |
USE_NAMESPACE void InputStreamTest::testReadBigChunk | ( | InputStream & | stream, | |
const void * | expectedData, | |||
const int | expectedDataSize | |||
) |
Reads the stream with a big chunk (size > stream size).
------------------------------------------------------------------------------ Reads a big chunk (size > stream size) ------------------------------------------------------------------------------
stream | the InputStream to read from (expected already initialized) | |
expectedData | the data expected to read | |
expectedDataSize | the data expected size to read |
void InputStreamTest::testReadManyChunks | ( | InputStream & | stream, | |
const void * | expectedData, | |||
const int | expectedDataSize, | |||
const int | chunkSize = 25 | |||
) |
Reads the stream in many small chuncks.
------------------------------------------------------------------------------ Reads in many small chuncks ------------------------------------------------------------------------------
stream | the InputStream to read from (expected already initialized) | |
expectedData | the data expected to read | |
expectedDataSize | the data expected size to read | |
chunkSize | [OPTIONAL] the chunk size, in byte (default = 25 bytes) |
void InputStreamTest::testReadTwoChunks | ( | InputStream & | stream, | |
const void * | expectedData, | |||
const int | expectedDataSize | |||
) |
Reads the stream in 2 chunks.
------------------------------------------------------------------------------ Reads in 2 chunks ------------------------------------------------------------------------------
stream | the InputStream to read from (expected already initialized) | |
expectedData | the data expected to read | |
expectedDataSize | the data expected size to read |