InputStreamTest Class Reference

This class defines protected methods to test a generic InputStream class, indipendently of the inputStream implementation. More...

#include <InputStreamTest.h>

Inherited by BufferInputStreamTest, FileDataInputStreamTest, and FileInputStreamTest.

List of all members.

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.


Detailed Description

This class defines protected methods to test a generic InputStream class, indipendently of the inputStream implementation.

Member Function Documentation

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) ------------------------------------------------------------------------------

Parameters:
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 ------------------------------------------------------------------------------

Parameters:
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 ------------------------------------------------------------------------------

Parameters:
stream the InputStream to read from (expected already initialized)
expectedData the data expected to read
expectedDataSize the data expected size to read


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

Generated on Tue Apr 6 13:00:42 2010 for Funambol Outlook Plug-in Library by  doxygen 1.5.7.1