diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-13 08:47:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-13 08:47:30 +0200 |
commit | 3f72ad159c881d0a11e638c84064172f48f75026 (patch) | |
tree | 579c920b7b49d28f20bac636cb067ddd58e17437 /sal/qa | |
parent | a5b93782a18a2ddb6dee4033a578d919b10b6964 (diff) |
osl_openMemoryAsFile is internal, Android-only functionality
Change-Id: I36734b0e5e1c0b15ed4f0845450b444b23579ffe
Diffstat (limited to 'sal/qa')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index a403d339a9b3..0a387e8803d3 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -2942,38 +2942,9 @@ namespace osl_File *pEOF && ( 0 == strncmp( ( const char * )aSequence.getArray(), &pBuffer_Char[26], 26 ) ) ); } -#ifdef UNX - void readLine_android() - { - static const char buffer[] = - "Hello\n\r\n\a\n" - "Fun=Badness\n" - "Some=Somethingelse\n\r"; - sal_Int32 aHash = rtl_str_hashCode( buffer ); - for (size_t i = 0; i < sizeof (buffer); i += 7) - { - oslFileHandle pFile( 0 ); - CPPUNIT_ASSERT( osl_openMemoryAsFile( (void *)buffer, - sizeof( buffer ) - i, &pFile ) - == osl_File_E_None ); - for (;;) - { - sal_Sequence *pSequence( 0 ); - if (osl_readLine( pFile, &pSequence ) != osl_File_E_None) - break; - rtl_byte_sequence_release (pSequence); - } - CPPUNIT_ASSERT( osl_closeFile( pFile ) == osl_File_E_None ); - } - CPPUNIT_ASSERT( aHash == rtl_str_hashCode( buffer ) ); - } -#endif CPPUNIT_TEST_SUITE( readLine ); CPPUNIT_TEST( readLine_001 ); CPPUNIT_TEST( readLine_002 ); -#ifdef UNX - CPPUNIT_TEST( readLine_android ); -#endif CPPUNIT_TEST_SUITE_END(); };// class readLine |