diff options
author | Andy Holder <andy.m.holder@googlemail.com> | 2010-12-11 19:54:14 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-12 21:18:29 +0000 |
commit | c1990df7b3cf67a0a9713c214f6628db50609f2e (patch) | |
tree | 35850bb5028d677ec7f4f94359cbb016349a2e0b /sal/qa | |
parent | 862440e68351ede886772d6ec6058bb413dbe8bc (diff) |
Remove commented out code
Remove commented out code that uses the unnamedspaced macros in
osl/File.hxx that are going away
Diffstat (limited to 'sal/qa')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index f7e42f42a..488503ddf 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -382,9 +382,7 @@ inline void createTestFile( const ::rtl::OUString filename ) if ( !isURL( filename ) ) ::osl::FileBase::getFileURLFromSystemPath( filename, aPathURL ); //convert if not full qualified URL - //::std::auto_ptr<File> pFile( new File( aPathURL ) ); File aFile(aPathURL); - //nError = pFile->open( OpenFlag_Read | OpenFlag_Write | OpenFlag_Create ); nError = aFile.open( osl_File_OpenFlag_Read | osl_File_OpenFlag_Write | osl_File_OpenFlag_Create ); //CPPUNIT_ASSERT_MESSAGE( "In createTestFile Function: creation ", ( ::osl::FileBase::E_None == nError ) || ( nError == ::osl::FileBase::E_EXIST ) ); if ( ( ::osl::FileBase::E_None != nError ) && ( nError != ::osl::FileBase::E_EXIST )) @@ -543,10 +541,8 @@ inline sal_Bool checkFile( const ::rtl::OUString & str, oslCheckMode nCheckMode bCheckResult = sal_True; break; case osl_Check_Mode_WriteAccess: - /// check the file name and whether it can be write. + /// check the file name and whether it can be written. /// write chars into the file. - //testFile.close( ); - //testFile.open( OpenFlag_Write ); sal_uInt64 nCount_write; nError2 = testFile.write( pBuffer_Char, 10, nCount_write ); if ( ::osl::FileBase::E_None == nError2 ) @@ -3978,34 +3974,6 @@ namespace osl_File CPPUNIT_ASSERT_MESSAGE( "test for setSize function: truncate the file ", 10 == nFilePointer ); } - /* void setSize_003( ) - { - ::osl::File testFile( aTmpName4 ); - // sal_Bool bEOF = sal_False; - // sal_Bool *pEOF = &bEOF; - sal_uInt64 nFilePointer; - - - nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); - CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); - - //enlarge the file to size of 100; - nError1 = testFile.setSize( 10 ); - CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); - - //get the file size; - nError1 = testFile.setPos( Pos_End, 0 ); - CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); - nError1 = testFile.getPos( nFilePointer ); - CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); - - nError1 = testFile.close( ); - CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); - - CPPUNIT_ASSERT_MESSAGE( "test for setSize function: truncate the file ", - 10 == nFilePointer ); - } - */ CPPUNIT_TEST_SUITE( setSize ); CPPUNIT_TEST( setSize_001 ); |