Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

void PainterTest::CompareStreamContent ( PoDoFo::PdfStream pStream,
const char *  pszExpected 
) [private]

Compare the filtered contents of a PdfStream object with a string and assert if the contents do not match!

Parameters:
pStreamPdfStream object
pszContentexpected contents

Definition at line 40 of file PainterTest.cpp.

References PoDoFo::PdfStream::GetFilteredCopy().

{
    char* pBuffer;
    pdf_long lLen;
    pStream->GetFilteredCopy( &pBuffer, &lLen );

    std::string str(pBuffer, lLen);
    CPPUNIT_ASSERT_EQUAL( std::string(pszExpected), str );

    free( pBuffer );
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index