Lines Matching refs:FileBase
59 inline ::rtl::OString errorToString( const ::osl::FileBase::RC _nError ) in errorToString()
63 case ::osl::FileBase::E_None: in errorToString()
66 case ::osl::FileBase::E_PERM: in errorToString()
69 case ::osl::FileBase::E_NOENT: in errorToString()
72 case ::osl::FileBase::E_EXIST: in errorToString()
75 case ::osl::FileBase::E_ACCES: in errorToString()
78 case ::osl::FileBase::E_INVAL: in errorToString()
81 case ::osl::FileBase::E_NOTDIR: in errorToString()
84 case ::osl::FileBase::E_ISDIR: in errorToString()
87 case ::osl::FileBase::E_BADF: in errorToString()
90 case ::osl::FileBase::E_NOTEMPTY: in errorToString()
100 rtl::OUString errorToStr( ::osl::FileBase::RC const& nError) in errorToStr()
195 inline void printError( const ::osl::FileBase::RC nError ) in printError()
358 …::osl::FileBase::getFileURLFromSystemPath( pathname1, aPathName ); //convert if not full qualified… in concatURL()
375 ::osl::FileBase::RC nError; in createTestFile()
378 …::osl::FileBase::getFileURLFromSystemPath( filename, aPathURL ); //convert if not full qualified U… in createTestFile()
385 if ( ( ::osl::FileBase::E_None != nError ) && ( nError != ::osl::FileBase::E_EXIST )) in createTestFile()
409 ::osl::FileBase::RC nError; in deleteTestFile()
412 …::osl::FileBase::getFileURLFromSystemPath( filename, aPathURL ); //convert if not full qualified U… in deleteTestFile()
415 …eleteTestFile Function: set writtenable ", ( ::osl::FileBase::E_None == nError ) || ( ::osl::FileB… in deleteTestFile()
418 …In deleteTestFile Function: remove ", ( ::osl::FileBase::E_None == nError ) || ( nError == ::osl::… in deleteTestFile()
436 ::osl::FileBase::RC nError; in createTestDirectory()
439 …::osl::FileBase::getFileURLFromSystemPath( dirname, aPathURL ); //convert if not full qualified URL in createTestDirectory()
442 if ( ( ::osl::FileBase::E_None != nError ) && ( nError != ::osl::FileBase::E_EXIST )) in createTestDirectory()
463 ::osl::FileBase::RC nError; in deleteTestDirectory()
466 …::osl::FileBase::getFileURLFromSystemPath( dirname, aPathURL ); //convert if not full qualified URL in deleteTestDirectory()
491 …CPPUNIT_ASSERT_MESSAGE( strError, ( ::osl::FileBase::E_None == nError ) || ( nError == ::osl::File… in deleteTestDirectory()
521 ::osl::FileBase::RC nError1, nError2; in checkFile()
527 if ( ( ::osl::FileBase::E_NOENT != nError1 ) && ( ::osl::FileBase::E_ACCES != nError1 ) ){ in checkFile()
532 if ( ::osl::FileBase::E_None == nError1 ) in checkFile()
537 if ( ::osl::FileBase::E_None == nError1 ) in checkFile()
547 if ( ::osl::FileBase::E_None == nError2 ) in checkFile()
556 CPPUNIT_ASSERT_MESSAGE( " in CheckFile() function, close file ", nError2 == FileBase::E_None ); in checkFile()
581 bCheckResult = ( osl::FileBase::E_None == testFile.open( OpenFlag_Read ) ); in ifFileExist()
599 ::osl::FileBase::getSystemPathFromFileURL( str, aUStr ); in ifFileCanWrite()
608 bCheckResult = (osl::FileBase::E_None == testFile.open( OpenFlag_Write )); in ifFileCanWrite()
617 FileBase::RC rc; in checkDirectory()
624 if ( ( ::osl::FileBase::E_NOENT != rc ) && ( ::osl::FileBase::E_ACCES != rc ) ){ in checkDirectory()
628 if ( rc == ::osl::FileBase::E_None ) in checkDirectory()
632 if ( rc == ::osl::FileBase::E_None ) in checkDirectory()
638 if ( ( rc == ::osl::FileBase::E_None ) || ( rc == ::osl::FileBase::E_NOENT ) ) in checkDirectory()
646 if ( ( rc = Directory::create( aUString ) ) == ::osl::FileBase::E_None ) in checkDirectory()
651 CPPUNIT_ASSERT( rc == ::osl::FileBase::E_None ); in checkDirectory()
662 CPPUNIT_ASSERT( rc == FileBase::E_None ); in checkDirectory()
694 ::osl::FileBase::getSystemPathFromFileURL( filepath, aUStr ); in changeFileMode()
730 ::osl::FileBase::RC nError;
735 nError = ::osl::FileBase::getCanonicalName( aCanURL1, aUStr_ValidURL );
738 ( osl::FileBase::E_None == nError ) && aUStr_ValidURL.equalsIgnoreAsciiCase( aCanURL1 ) );
746 nError = ::osl::FileBase::getCanonicalName( aCanURL1, aUStr_ValidURL );
750 ( osl::FileBase::E_None == nError ) && aUStr_ValidURL.equalsIgnoreAsciiCase( aCanURL1 ) );
756 nError = ::osl::FileBase::getCanonicalName ( aCanURL2, aUStr_ValidURL );
759 ( osl::FileBase::E_None == nError ) && aUStr_ValidURL.equalsIgnoreAsciiCase( aCanURL2 ) );
786 …:OUString const& _suBaseURL, rtl::OString const& _sRelativeURL, ::osl::FileBase::RC _nAssumeError…
971 …:OUString const& _suBaseURL, rtl::OString const& _sRelativeURL, ::osl::FileBase::RC _nAssumeError… in check_getAbsoluteFileURL()
976 …osl::FileBase::RC nError = FileBase::getAbsoluteFileURL( _suBaseURL, suRelativeURL, suResultURL ); in check_getAbsoluteFileURL()
981 if ( nError == ::osl::FileBase::E_None ) in check_getAbsoluteFileURL()
991 … check_getAbsoluteFileURL( aUserDirectoryURL, "relative/file1",::osl::FileBase::E_None, suAssume ); in getAbsoluteFileURL_001_1()
996 …check_getAbsoluteFileURL( aUserDirectoryURL, "relative/./file2",::osl::FileBase::E_None, suAssume … in getAbsoluteFileURL_001_2()
1001 …check_getAbsoluteFileURL( aUserDirectoryURL, "relative/../file3",::osl::FileBase::E_None, suAssume… in getAbsoluteFileURL_001_3()
1006 …check_getAbsoluteFileURL( aUserDirectoryURL, "././relative/../file4",::osl::FileBase::E_None, suAs… in getAbsoluteFileURL_001_4()
1016 … check_getAbsoluteFileURL( aUserDirectoryURL, "././relative/.",::osl::FileBase::E_None, suAssume ); in getAbsoluteFileURL_001_5()
1021 check_getAbsoluteFileURL( aUserDirectoryURL, "./.relative",::osl::FileBase::E_None, suAssume ); in getAbsoluteFileURL_001_6()
1031 … check_getAbsoluteFileURL( aUserDirectoryURL, "./.a/mydir/..",::osl::FileBase::E_None, suAssume ); in getAbsoluteFileURL_001_7()
1037 check_getAbsoluteFileURL( aUserDirectoryURL, "tmp//ok",::osl::FileBase::E_None, suAssume ); in getAbsoluteFileURL_001_8()
1039 check_getAbsoluteFileURL( aUserDirectoryURL, "tmp//ok",::osl::FileBase::E_INVAL, suAssume ); in getAbsoluteFileURL_001_8()
1058 check_getAbsoluteFileURL( aUserDirectoryURL, sLnkURL, ::osl::FileBase::E_None, suAssume ); in getAbsoluteFileURL_002()
1077 check_getAbsoluteFileURL( aUStrBase, "../../mytestfile" , ::osl::FileBase::E_None, suAssume ); in getAbsoluteFileURL_004()
1095 …void check_SystemPath_FileURL(rtl::OString const& _sSource, ::osl::FileBase::RC _nAssumeError, rtl…
1096 …void checkWNTBehaviour_getSystemPathFromFileURL(rtl::OString const& _sURL, ::osl::FileBase::RC _nA…
1097 …void checkUNXBehaviour_getSystemPathFromFileURL(rtl::OString const& _sURL, ::osl::FileBase::RC _nA…
1098 …void checkWNTBehaviour_getFileURLFromSystemPath(rtl::OString const& _sSysPath, ::osl::FileBase::RC…
1099 …void checkUNXBehaviour_getFileURLFromSystemPath(rtl::OString const& _sSysPath, ::osl::FileBase::RC…
1201 …void SystemPath_FileURL::check_SystemPath_FileURL(rtl::OString const& _sSource, ::osl::FileBase::R… in check_SystemPath_FileURL()
1207 ::osl::FileBase::RC nError; in check_SystemPath_FileURL()
1209 nError = osl::FileBase::getSystemPathFromFileURL( suSource, suStr ); in check_SystemPath_FileURL()
1211 nError = osl::FileBase::getFileURLFromSystemPath( suSource, suStr ); in check_SystemPath_FileURL()
1237 …WNTBehaviour_getSystemPathFromFileURL(rtl::OString const& _sURL, ::osl::FileBase::RC _nAssumeError… in checkWNTBehaviour_getSystemPathFromFileURL()
1248 …UNXBehaviour_getSystemPathFromFileURL(rtl::OString const& _sURL, ::osl::FileBase::RC _nAssumeError… in checkUNXBehaviour_getSystemPathFromFileURL()
1259 …ehaviour_getFileURLFromSystemPath(rtl::OString const& _sSysPath, ::osl::FileBase::RC _nAssumeError… in checkWNTBehaviour_getFileURLFromSystemPath()
1270 …ehaviour_getFileURLFromSystemPath(rtl::OString const& _sSysPath, ::osl::FileBase::RC _nAssumeError… in checkUNXBehaviour_getFileURLFromSystemPath()
1293 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in getSystemPathFromFileURL_001_1()
1294 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in getSystemPathFromFileURL_001_1()
1300 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in getSystemPathFromFileURL_001_2()
1301 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "\\"); in getSystemPathFromFileURL_001_2()
1307 …checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/"); // LLA: this is may … in getSystemPathFromFileURL_001_21()
1308 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in getSystemPathFromFileURL_001_21()
1313 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in getSystemPathFromFileURL_001_22()
1314 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in getSystemPathFromFileURL_001_22()
1319 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "a"); in getSystemPathFromFileURL_001_3()
1320 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "a"); in getSystemPathFromFileURL_001_3()
1325 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "tmpname"); in getSystemPathFromFileURL_001_31()
1326 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "tmpname"); in getSystemPathFromFileURL_001_31()
1331 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, ""); in getSystemPathFromFileURL_001_4()
1332 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in getSystemPathFromFileURL_001_4()
1337 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, ""); in getSystemPathFromFileURL_001_41()
1338 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in getSystemPathFromFileURL_001_41()
1343 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/tmp"); in getSystemPathFromFileURL_001_5()
1344 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in getSystemPathFromFileURL_001_5()
1349 …checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "c:/tmp"); // LLA: this is… in getSystemPathFromFileURL_001_51()
1350 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in getSystemPathFromFileURL_001_51()
1355 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/c:/tmp"); in getSystemPathFromFileURL_001_52()
1356 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "c:\\tmp"); in getSystemPathFromFileURL_001_52()
1362 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/c|/tmp"); in getSystemPathFromFileURL_001_53()
1363 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "c:\\tmp"); in getSystemPathFromFileURL_001_53()
1368 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/tmp/first"); in getSystemPathFromFileURL_001_6()
1369 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in getSystemPathFromFileURL_001_6()
1374 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/c:/tmp/first"); in getSystemPathFromFileURL_001_61()
1375 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "c:\\tmp\\first"); in getSystemPathFromFileURL_001_61()
1380 …checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/tmp/../second"); // LLA:… in getSystemPathFromFileURL_001_7()
1381 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in getSystemPathFromFileURL_001_7()
1386 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/c:/tmp/../second"); in getSystemPathFromFileURL_001_71()
1387 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "c:\\tmp\\..\\second"); in getSystemPathFromFileURL_001_71()
1392 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "../tmp"); in getSystemPathFromFileURL_001_8()
1393 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "..\\tmp"); in getSystemPathFromFileURL_001_8()
1402 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, expResult ); in getSystemPathFromFileURL_001_81()
1408 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/tmp/first second"); in getSystemPathFromFileURL_001_9()
1409 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in getSystemPathFromFileURL_001_9()
1414 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/c:/tmp/first second"); in getSystemPathFromFileURL_001_91()
1415 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "c:\\tmp\\first second"); in getSystemPathFromFileURL_001_91()
1421 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, ""); in getSystemPathFromFileURL_001_92()
1422 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in getSystemPathFromFileURL_001_92()
1433 … ::osl::FileBase::RC nError = osl::FileBase::getSystemPathFromFileURL( aRelativeURL, aUStr );
1441 CPPUNIT_ASSERT_MESSAGE( suError, ( osl::FileBase::E_None == nError ) && ( sal_True == bOk ) );
1451 ::osl::FileBase::RC nError = osl::FileBase::getSystemPathFromFileURL( aNormalURL, aUStr ); in getSystemPathFromFileURL_004()
1460 CPPUNIT_ASSERT_MESSAGE( suError, ( osl::FileBase::E_None == nError ) && ( sal_True == bOk ) ); in getSystemPathFromFileURL_004()
1472 … ::osl::FileBase::RC nError = osl::FileBase::getSystemPathFromFileURL( aNormalURL, aUStr ); in getSystemPathFromFileURL_005()
1482 CPPUNIT_ASSERT_MESSAGE( suError, ( osl::FileBase::E_None == nError ) && ( sal_True == bOk ) ); in getSystemPathFromFileURL_005()
1491 checkUNXBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_None, expResult ); in getFileURLFromSystemPath_001()
1492 checkWNTBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_None, "~/tmp"); in getFileURLFromSystemPath_001()
1497 checkUNXBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_None, "c:/tmp"); in getFileURLFromSystemPath_002()
1498 checkWNTBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_None, "file:///c:/tmp"); in getFileURLFromSystemPath_002()
1503 checkUNXBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_INVAL, ""); in getFileURLFromSystemPath_003()
1504 checkWNTBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_INVAL, ""); in getFileURLFromSystemPath_003()
1509 …checkUNXBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_None, "file:///tmp/first%20s… in getFileURLFromSystemPath_004()
1510 checkWNTBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_INVAL, ""); in getFileURLFromSystemPath_004()
1515 checkUNXBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_INVAL, ""); in getFileURLFromSystemPath_005()
1516 checkWNTBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_INVAL, ""); in getFileURLFromSystemPath_005()
1534 ::osl::FileBase::RC nError1, nError2, nError3,nError4;
1542 nError1 = ::osl::FileBase::searchFileURL( aTmpName1, aUserDirectorySys, aUStr ); in searchFileURL_001()
1544 nError2 = ::osl::FileBase::searchFileURL( aCanURL1, aUserDirectorySys, aUStr ); in searchFileURL_001()
1546 nError3 = ::osl::FileBase::searchFileURL( aRelURL4, aUserDirectorySys, aUStr ); in searchFileURL_001()
1549 ( osl::FileBase::E_NOENT == nError1 ) && in searchFileURL_001()
1550 ( osl::FileBase::E_NOENT == nError2 ) && in searchFileURL_001()
1551 ( osl::FileBase::E_NOENT == nError3 )); in searchFileURL_001()
1557 nError1 = ::osl::FileBase::searchFileURL( aTempDirectorySys, aRootSys, aUStr ); in searchFileURL_002()
1560 nError2 = ::osl::FileBase::searchFileURL( aTempDirectoryURL, aRootSys, aUStr ); in searchFileURL_002()
1563 nError3 = ::osl::FileBase::searchFileURL( aRelURL5, aRootSys, aUStr ); in searchFileURL_002()
1567 nError4 = ::osl::FileBase::searchFileURL( aCanURL4, aUserDirectorySys, aUStr ); in searchFileURL_002()
1572 ( osl::FileBase::E_None == nError1 ) && in searchFileURL_002()
1573 ( osl::FileBase::E_None == nError2 ) && in searchFileURL_002()
1574 ( osl::FileBase::E_None == nError3 ) && in searchFileURL_002()
1575 ( osl::FileBase::E_None == nError4 ) && in searchFileURL_002()
1586 nError1 = ::osl::FileBase::searchFileURL( aUserDirectoryURL, aSystemPathList, aUStr ); in searchFileURL_003()
1589 ( osl::FileBase::E_None == nError1 ) && in searchFileURL_003()
1596 nError1 = ::osl::FileBase::searchFileURL( aUserDirectoryURL, aSystemPathList, aUStr ); in searchFileURL_004()
1599 ( osl::FileBase::E_None == nError1 ) && in searchFileURL_004()
1605 nError1 = ::osl::FileBase::searchFileURL( aUserDirectoryURL, aNullURL, aUStr ); in searchFileURL_005()
1608 ( osl::FileBase::E_None == nError1 ) && in searchFileURL_005()
1630 ::osl::FileBase::RC nError;
1636 nError = FileBase::getTempDirURL( aUStr ); in setUp()
1648 ( osl::FileBase::E_None == nError ) ); in getTempDirURL_001()
1675 ::osl::FileBase::RC nError1, nError2;
1703 nError1 = FileBase::createTempFile( pUStr_DirURL, pHandle, pUStr_FileURL ); in createTempFile_001()
1707 if ( osl::FileBase::E_EXIST == nError2 ) { in createTempFile_001()
1713 …( osl::FileBase::E_None == nError1 ) && ( pHandle != NULL ) && ( osl::FileBase::E_EXIST== nError… in createTempFile_001()
1719 nError1 = FileBase::createTempFile( pUStr_DirURL, pHandle, pUStr_FileURL ); in createTempFile_002()
1724 ( osl::FileBase::E_None == nError1 ) && ( pHandle != NULL ) && in createTempFile_002()
1725 ( osl::FileBase::E_EXIST == nError2 ) ); in createTempFile_002()
1728 if ( osl::FileBase::E_EXIST == nError2 ) { in createTempFile_002()
1740 nError1 = FileBase::createTempFile( pUStr_DirURL, pHandle, 0 ); in createTempFile_003()
1747 ( ::osl::FileBase::E_None == nError1 ) &&( sal_True == bOK ) ); in createTempFile_003()
1751 nError1 = FileBase::createTempFile( pUStr_DirURL, 0, pUStr_FileURL ); in createTempFile_004()
1757 …( osl::FileBase::E_None == nError1 ) && ( osl::FileBase::E_EXIST == nError2 ) &&( sal_True == bOK … in createTempFile_004()
1798 ::osl::FileBase::RC nError1, nError2;
1816 ( osl::FileBase::E_None != aVolumeDevice1.automount( ) ) &&
1817 ( osl::FileBase::E_None != aVolumeDevice1.unmount( ) ) &&
1825 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
1837 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
1861 ::osl::FileBase::RC nError1, nError2;
1881 ( osl::FileBase::E_INVAL == nError1 ) );
1888 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
1894 ( osl::FileBase::E_None == nError1 ) );
1924 ::osl::FileBase::RC nError1, nError2;
1943 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in ctors_001()
1961 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in ctors_002()
1987 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in ctors_003()
1996 CPPUNIT_ASSERT( osl::FileBase::E_None == nError2 ); in ctors_003()
2021 ::osl::FileBase::RC nError1, nError2;
2040 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in isValid_001()
2054 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in isValid_002()
2073 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in isValid_003()
2077 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in isValid_003()
2099 ::osl::FileBase::RC nError1, nError2;
2108 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getRemoteFlag_001()
2121 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getRemoteFlag_002()
2147 ::osl::FileBase::RC nError1, nError2;
2156 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getRemoveableFlag_001()
2168 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getRemoveableFlag_002()
2187 ::osl::FileBase::RC nError1;
2196 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getCompactDiscFlag_001()
2208 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getCompactDiscFlag_002()
2227 ::osl::FileBase::RC nError1;
2236 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFloppyDiskFlag_001()
2248 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFloppyDiskFlag_002()
2267 ::osl::FileBase::RC nError1;
2276 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFixedDiskFlag_001()
2288 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFixedDiskFlag_002()
2306 ::osl::FileBase::RC nError1;
2315 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getRAMDiskFlag_001()
2327 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getRAMDiskFlag_002()
2346 ::osl::FileBase::RC nError1;
2355 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getTotalSpace_001()
2369 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getTotalSpace_002()
2399 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getTotalSpace_003()
2427 ::osl::FileBase::RC nError1;
2436 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFreeSpace_001()
2450 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFreeSpace_002()
2479 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFreeSpace_003()
2508 ::osl::FileBase::RC nError1;
2517 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getUsedSpace_001()
2531 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getUsedSpace_002()
2561 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getUsedSpace_003()
2591 ::osl::FileBase::RC nError1;
2600 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getMaxNameLength_001()
2622 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getMaxNameLength_002()
2650 ::osl::FileBase::RC nError1;
2659 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getMaxPathLength_001()
2674 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getMaxPathLength_002()
2704 ::osl::FileBase::RC nError1;
2713 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFileSystemName_001()
2735 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFileSystemName_002()
2764 ::osl::FileBase::RC nError1;
2772 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getDeviceHandle_001()
2820 ::osl::FileBase::RC nError1, nError2;
2833 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
2835 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
2859 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in ctors_001()
2870 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in ctors_002()
2904 ::osl::FileBase::RC nError1 = pDir->open( ); in setUp()
2905 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
2907 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
2912 ::osl::FileBase::RC nError1 = pDir->close( ); in tearDown()
2914 CPPUNIT_ASSERT_MESSAGE( errorToStr(nError1), ::osl::FileBase::E_None == nError1 ); in tearDown()
2926 ::osl::FileBase::RC nError1 = rItem_file.getFileStatus( rFileStatus ); in isValid_001()
2927 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isValid_001()
2980 ::osl::FileBase::RC nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem_file ); in isValid_002()
2983 CPPUNIT_ASSERT_MESSAGE( errorToStr(nError1), ::osl::FileBase::E_None == nError1 ); in isValid_002()
3024 ::osl::FileBase::RC nError1 = testDirectory.open( ); in isValid_003()
3029 if (::osl::FileBase::E_None == nError1) { in isValid_003()
3060 ::osl::FileBase::RC nError1 = rItem_file.getFileStatus( rFileStatus_all ); in isValid_004()
3061 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isValid_004()
3070 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isValid_004()
3095 ::osl::FileBase::RC nError1, nError2;
3115 CPPUNIT_ASSERT_MESSAGE("open aTmpName3 failed!", ::osl::FileBase::E_None == nError1 ); in setUp()
3118 CPPUNIT_ASSERT_MESSAGE("get first item failed!", ::osl::FileBase::E_None == nError1 ); in setUp()
3121 CPPUNIT_ASSERT_MESSAGE("get second item failed!", ::osl::FileBase::E_None == nError1 ); in setUp()
3142 CPPUNIT_ASSERT_MESSAGE("getFileStatus failed", ::osl::FileBase::E_None == nError1 ); in getFileType_001()
3181 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getFileType_002()
3191 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getFileType_003()
3215 ::osl::FileBase::getFileURLFromSystemPath( aFifoSys, aFifoURL ); in getFileType_004()
3218 CPPUNIT_ASSERT_MESSAGE("get item failed!", ::osl::FileBase::E_None == nError1 ); in getFileType_004()
3223 CPPUNIT_ASSERT_MESSAGE("get Status failed!", ::osl::FileBase::E_None == nError1 ); in getFileType_004()
3227 CPPUNIT_ASSERT_MESSAGE("remove file failed!", ::osl::FileBase::E_None == nError1 ); in getFileType_004()
3289 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getFileType_007()
3294 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getFileType_007()
3325 ::osl::FileBase::RC nError;
3336 CPPUNIT_ASSERT( nError == FileBase::E_None ); in setUp()
3342 CPPUNIT_ASSERT( nError == FileBase::E_None ); in setUp()
3360 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getAttributes_001()
3382 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getAttributes_002()
3398 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getAttributes_003()
3418 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getAttributes_004()
3430 CPPUNIT_ASSERT_MESSAGE("get item fail", nError == FileBase::E_None ); in getAttributes_004()
3433 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getAttributes_004()
3455 ::osl::FileBase::RC nError;
3466 CPPUNIT_ASSERT( nError == FileBase::E_None ); in setUp()
3486 CPPUNIT_ASSERT( sal_True == bOk && nError == FileBase::E_None ); in getAccessTime_001()
3510 ::osl::FileBase::RC nError;
3532 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getModifyTime_001()
3535 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getModifyTime_001()
3564 ::osl::FileBase::RC nError;
3575 CPPUNIT_ASSERT( nError == FileBase::E_None ); in setUp()
3588 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getFileSize_001()
3600 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError ); in getFileSize_002()
3602 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError ); in getFileSize_002()
3605 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getFileSize_002()
3608 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getFileSize_002()
3627 ::osl::FileBase::RC nError;
3638 CPPUNIT_ASSERT( nError == FileBase::E_None ); in setUp()
3651 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getFileName_001()
3671 ::osl::FileBase::RC nError;
3680 CPPUNIT_ASSERT( nError == FileBase::E_None ); in setUp()
3693 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getFileURL_001()
3713 ::osl::FileBase::RC nError;
3749 CPPUNIT_ASSERT_MESSAGE( "in getting link file item", nError == FileBase::E_None ); in getLinkTargetURL_001()
3753 CPPUNIT_ASSERT_MESSAGE( "in getting link file status", nError == FileBase::E_None ); in getLinkTargetURL_001()
3825 ::osl::FileBase::RC nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in ctors_001()
3826 ::osl::FileBase::RC nError2 = testFile.close( ); in ctors_001()
3828 ( ::osl::FileBase::E_None == nError1 ) && ( ::osl::FileBase::E_None == nError2 ) ); in ctors_001()
3837 ::osl::FileBase::RC nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in ctors_002()
3838 ::osl::FileBase::RC nError2 = testFile.write( buffer, 30, nCount ); in ctors_002()
3842 ( ::osl::FileBase::E_None == nError1 ) && ( ::osl::FileBase::E_None == nError2 ) ); in ctors_002()
3857 ::osl::FileBase::RC nError1, nError2, nError3;
3882 CPPUNIT_ASSERT_MESSAGE("close error", ::osl::FileBase::E_None == nError2 ); in open_001()
3885 ::osl::FileBase::E_None == nError1 ); in open_001()
3945 ::osl::FileBase::RC nError4 = testFile.setPos( Pos_Absolut, 0 ); in open_006()
3946 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError4 ); in open_006()
3949 ::osl::FileBase::RC nError5 = testFile.close( ); in open_006()
3950 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError5 ); in open_006()
3951 ::osl::FileBase::RC nError6 = testFile.remove( aCanURL1 ); in open_006()
3952 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError6 ); in open_006()
3955 ( ::osl::FileBase::E_None == nError1 ) && in open_006()
3956 ( ::osl::FileBase::E_None == nError2 ) && in open_006()
3957 ( ::osl::FileBase::E_None == nError3 ) && in open_006()
3978 ::osl::FileBase::RC nError1, nError2, nError3;
4002 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in close_001()
4007 ::osl::FileBase::E_None == nError2 ); in close_001()
4015 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in close_002()
4022 ( ::osl::FileBase::E_None == nError2 ) && in close_002()
4023 ( ::osl::FileBase::E_None != nError3 ) ); in close_002()
4039 ::osl::FileBase::RC nError1;
4054 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4056 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4058 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4075 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setPos_001()
4077 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setPos_001()
4079 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setPos_001()
4081 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setPos_001()
4093 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setPos_002()
4095 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setPos_002()
4097 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setPos_002()
4099 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setPos_002()
4101 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setPos_002()
4113 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setPos_003()
4116 CPPUNIT_ASSERT_MESSAGE( "should return error", ::osl::FileBase::E_INVAL == nError1 ); in setPos_003()
4119 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setPos_003()
4121 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setPos_003()
4123 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setPos_003()
4142 ::osl::FileBase::RC nError1;
4157 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4159 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4161 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4178 CPPUNIT_ASSERT( ::osl::FileBase::E_INVAL == nError1 ); in getPos_001()
4181 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getPos_001()
4184 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getPos_001()
4186 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getPos_001()
4189 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getPos_001()
4207 ::osl::FileBase::RC nError1;
4222 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4224 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4226 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4245 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isEndOfFile_001()
4248 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isEndOfFile_001()
4250 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isEndOfFile_001()
4253 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isEndOfFile_001()
4267 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isEndOfFile_002()
4270 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isEndOfFile_002()
4275 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isEndOfFile_002()
4277 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isEndOfFile_002()
4280 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isEndOfFile_002()
4283 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isEndOfFile_002()
4301 ::osl::FileBase::RC nError1;
4316 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4318 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4320 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4340 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setSize_001()
4344 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setSize_001()
4348 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setSize_001()
4350 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setSize_001()
4353 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setSize_001()
4368 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setSize_002()
4372 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setSize_002()
4376 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setSize_002()
4378 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setSize_002()
4381 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setSize_002()
4428 ::osl::FileBase::RC nError1;
4443 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4445 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4447 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4466 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in read_001()
4469 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in read_001()
4471 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in read_001()
4474 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in read_001()
4488 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in read_002()
4491 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in read_002()
4493 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in read_002()
4495 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in read_002()
4498 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in read_002()
4516 ::osl::FileBase::RC nError1;
4541 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in write_001()
4545 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in write_001()
4548 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in write_001()
4551 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in write_001()
4553 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in write_001()
4556 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in write_001()
4575 ::osl::FileBase::RC nError1;
4594 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4599 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4603 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4618 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in readLine_001()
4620 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in readLine_001()
4623 ( ::osl::FileBase::E_None == nError1 ) && in readLine_001()
4634 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in readLine_002()
4638 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in readLine_002()
4641 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in readLine_002()
4659 ::osl::FileBase::RC nError1;
4674 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4676 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4678 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4695 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in copy_001()
4701 ::osl::FileBase::E_EXIST == nError1 ); in copy_001()
4710 ( ::osl::FileBase::E_ISDIR == nError1 ) ||( ::osl::FileBase::E_ACCES == nError1 ) ); in copy_002()
4718 nError1 = ::osl::FileBase::E_ACCES; /// for Windows, c:/ is writtenable any way. in copy_003()
4722 ::osl::FileBase::E_ACCES == nError1 ); in copy_003()
4731 ::osl::FileBase::E_NOENT == nError1 ); in copy_004()
4740 ::osl::FileBase::E_INVAL == nError1 ); in copy_005()
4746 FileBase::RC err = tmpFile.open( OpenFlag_Write | OpenFlag_Read ); in copy_006()
4752 CPPUNIT_ASSERT( nError1 == FileBase::E_None ); in copy_006()
4761 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in copy_006()
4773 ::osl::FileBase::E_INVAL == nError1 ); in copy_007()
4793 ::osl::FileBase::RC nError1, nError2;
4808 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4810 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4812 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4827 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in move_001()
4834 ::osl::FileBase::E_EXIST == nError2 ); in move_001()
4843 …( ::osl::FileBase::E_ACCES == nError1 || ::osl::FileBase::E_ISDIR == nError1 ) ||( ::osl::FileBase… in move_002()
4851 nError1 = ::osl::FileBase::E_ACCES; /// for Windows, c:/ is writtenable any way. in move_003()
4856 ::osl::FileBase::E_ACCES == nError1 ); in move_003()
4865 ::osl::FileBase::E_NOENT == nError1 ); in move_004()
4874 ::osl::FileBase::E_INVAL == nError1 ); in move_005()
4888 nError1 = ::osl::FileBase::E_NOTDIR; in move_006()
4889 nError2 = ::osl::FileBase::E_ISDIR; in move_006()
4892 ::osl::FileBase::E_NOTDIR == nError1 && ::osl::FileBase::E_ISDIR == nError2 ); in move_006()
4907 (::osl::FileBase::E_None == nError1 ) && in move_007()
4908 (::osl::FileBase::E_EXIST == nError2 ) ); in move_007()
4914 ::osl::FileBase::E_None == nError1 ); in move_008()
4932 ::osl::FileBase::E_None != nError1 ); in move_009()
4955 ::osl::FileBase::RC nError1, nError2;
4970 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4972 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4974 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
4994 ( ::osl::FileBase::E_None == nError1 ) && in remove_001()
4995 ( ::osl::FileBase::E_EXIST != nError2 ) ); in remove_001()
5004 ( ::osl::FileBase::E_NOENT == nError1 ) ); in remove_002()
5013 ( ::osl::FileBase::E_INVAL == nError1 ) ); in remove_003()
5022 … ( ::osl::FileBase::E_ISDIR == nError1 ) || ( ::osl::FileBase::E_ACCES == nError1 )); in remove_004()
5040 ::osl::FileBase::RC nError1, nError2;
5064 CPPUNIT_ASSERT( nError2 == FileBase::E_None); in setAttributes_001()
5066 CPPUNIT_ASSERT( nError1 == FileBase::E_None); in setAttributes_001()
5070 CPPUNIT_ASSERT( nError1 == FileBase::E_None ); in setAttributes_001()
5078 CPPUNIT_ASSERT( nError2 == FileBase::E_None); in setAttributes_001()
5080 CPPUNIT_ASSERT( nError1 == FileBase::E_None); in setAttributes_001()
5084 CPPUNIT_ASSERT( nError1 == FileBase::E_None ); in setAttributes_001()
5105 CPPUNIT_ASSERT( nError2 == FileBase::E_None); in setAttributes_002()
5107 CPPUNIT_ASSERT( nError1 == FileBase::E_None); in setAttributes_002()
5111 CPPUNIT_ASSERT( nError1 == FileBase::E_None ); in setAttributes_002()
5135 ::osl::FileBase::RC nError1, nError2;
5170 CPPUNIT_ASSERT_MESSAGE( errorToStr( nError2 ), nError2 == FileBase::E_None); in setTime_001()
5174 CPPUNIT_ASSERT_MESSAGE( errorToStr( nError1 ), nError1 == FileBase::E_None); in setTime_001()
5178 CPPUNIT_ASSERT_MESSAGE( errorToStr( nError1 ),nError1 == FileBase::E_None ); in setTime_001()
5183 CPPUNIT_ASSERT_MESSAGE( errorToStr( nError1 ), nError1 == FileBase::E_None ); in setTime_001()
5188 CPPUNIT_ASSERT_MESSAGE( errorToStr( nError1 ), nError1 == FileBase::E_None ); in setTime_001()
5218 ::osl::FileBase::RC nError1, nError2;
5241 CPPUNIT_ASSERT( nError1 == FileBase::E_None); in sync_001()
5244 FileBase::RC err = tmp_file.open(osl_File_OpenFlag_Write ); in sync_001()
5246 CPPUNIT_ASSERT_MESSAGE("File open failed", err == FileBase::E_None); in sync_001()
5251 CPPUNIT_ASSERT_MESSAGE("write failed!", nError1 == FileBase::E_None); in sync_001()
5255 CPPUNIT_ASSERT( nError2 == FileBase::E_None); in sync_001()
5259 CPPUNIT_ASSERT_MESSAGE("can not sync to readonly file!", nError2 == FileBase::E_None); in sync_001()
5305 ::osl::FileBase::RC nError1, nError2;
5329 CPPUNIT_ASSERT( FileBase::E_None == nError1 ); in ctors_001()
5332 ::osl::FileBase::E_None == nError1 ); in ctors_001()
5346 ::osl::FileBase::RC nError1, nError2;
5368 CPPUNIT_ASSERT( FileBase::E_None == nError1 ); in copy_assin_Ctors_001()
5373 CPPUNIT_ASSERT( nError1 == FileBase::E_None ); in copy_assin_Ctors_001()
5384 CPPUNIT_ASSERT( FileBase::E_None == nError1 ); in copy_assin_Ctors_002()
5390 CPPUNIT_ASSERT( nError1 == FileBase::E_None ); in copy_assin_Ctors_002()
5408 ::osl::FileBase::RC nError1, nError2;
5438 CPPUNIT_ASSERT( FileBase::E_None == nError1 ); in is_002()
5456 ::osl::FileBase::RC nError1, nError2;
5482 CPPUNIT_ASSERT( nError1 == FileBase::E_None ); in get_001()
5485 ( ::osl::FileBase::E_None == nError2 ) && in get_001()
5496 FileBase::E_INVAL == nError1 ); in get_002()
5506 FileBase::E_NOENT == nError1 ); in get_003()
5522 ::osl::FileBase::RC nError1, nError2;
5546 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getFileStatus_001()
5553 ( ::osl::FileBase::E_None == nError2 ) && in getFileStatus_001()
5568 ( ::osl::FileBase::E_INVAL == nError2 ) ); in getFileStatus_002()
5576 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getFileStatus_003()
5583 ( ::osl::FileBase::E_None == nError2 ) && in getFileStatus_003()
5616 ::osl::FileBase::RC nError1, nError2;
5642 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in ctors_001()
5645 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError2 ); in ctors_001()
5648 ( ::osl::FileBase::E_None == nError1 ) && in ctors_001()
5649 ( ::osl::FileBase::E_None == nError2 ) ); in ctors_001()
5658 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in ctors_002()
5661 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError2 ); in ctors_002()
5664 ( ::osl::FileBase::E_None == nError1 ) && in ctors_002()
5665 ( ::osl::FileBase::E_None == nError2 ) ); in ctors_002()
5680 ::osl::FileBase::RC nError1, nError2;
5712 ( ::osl::FileBase::E_None == nError1 ) && in open_001()
5713 ( ::osl::FileBase::E_None == nError2 ) ); in open_001()
5722 if ( ::osl::FileBase::E_None == nError1 ) in open_002()
5725 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError2 ); in open_002()
5729 ( ::osl::FileBase::E_NOENT == nError1 ) ); in open_002()
5738 if ( ::osl::FileBase::E_None == nError1 ) in open_003()
5741 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError2 ); in open_003()
5745 ( ::osl::FileBase::E_INVAL == nError1 ) ); in open_003()
5754 if ( ::osl::FileBase::E_None == nError1 ) in open_004()
5757 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError2 ); in open_004()
5761 ( ::osl::FileBase::E_NOTDIR == nError1 ) || ( ::osl::FileBase::E_ACCES ) ); in open_004()
5778 ::osl::FileBase::RC nError1, nError2;
5835 ::osl::FileBase::RC nError1, nError2;
5875 ( ::osl::FileBase::E_BADF == nError1 ) ); in close_002()
5891 ::osl::FileBase::RC nError1, nError2;
5923 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in reset_001()
5926 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in reset_001()
5935 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in reset_001()
5942 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in reset_001()
5949 ( ::osl::FileBase::E_None == nError2 ) && in reset_001()
5961 ( ::osl::FileBase::E_NOENT == nError1 ) ); in reset_002()
5973 … ( ::osl::FileBase::E_NOTDIR == nError1 ) || ( ::osl::FileBase::E_NOENT == nError1 ) ); in reset_003()
5984 ( ::osl::FileBase::E_INVAL == nError1 ) ); in reset_004()
6001 ::osl::FileBase::RC nError1, nError2;
6034 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getNextItem_001()
6046 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getNextItem_001()
6048 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getNextItem_001()
6061 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getNextItem_001()
6073 ( ::osl::FileBase::E_INVAL == nError1 ) ); in getNextItem_002()
6082 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getNextItem_003()
6091 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getNextItem_003()
6094 ( ::osl::FileBase::E_NOENT == nError2 ) ); in getNextItem_003()
6120 if (::osl::FileBase::E_None == nError1) { in getNextItem_004()
6156 ::osl::FileBase::RC nError1, nError2;
6171 ( osl::FileBase::E_None == nError1 ) && in checkValidMask()
6296 ( osl::FileBase::E_INVAL == nError1 ) ); in getVolumeInfo_002()
6309 ( osl::FileBase::E_NOENT == nError1 ) ); in getVolumeInfo_003()
6334 ::osl::FileBase::RC nError1, nError2;
6349 ( osl::FileBase::E_None == nError1 ) && in create_001()
6350 ( osl::FileBase::E_EXIST== nError2 ) ); in create_001()
6358 nError1 = osl::FileBase::E_ACCES; /// in Windows, you can create directory in c:/ any way. in create_002()
6363 ( osl::FileBase::E_ACCES == nError1 ) ); in create_002()
6372 ( osl::FileBase::E_INVAL == nError1 ) ); in create_003()
6388 ::osl::FileBase::RC nError1, nError2;
6397 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in remove_001()
6405 ( osl::FileBase::E_None == nError1 ) && in remove_001()
6406 ( osl::FileBase::E_NOENT == nError2 ) ); in remove_001()
6413 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in remove_002()
6419 if ( osl::FileBase::E_NOENT != nError2 ) in remove_002()
6423 ( osl::FileBase::E_INVAL == nError1 ) ); in remove_002()
6432 ( osl::FileBase::E_NOENT == nError1 ) ); in remove_003()
6444 …bExist == sal_True &&(( osl::FileBase::E_NOTDIR == nError1 ) || ( osl::FileBase::E_NOENT == nError… in remove_004()
6459 CPPUNIT_ASSERT_MESSAGE( suError, ( osl::FileBase::E_EXIST == nError1 ) ); in remove_005()
6461 CPPUNIT_ASSERT_MESSAGE( suError, ( osl::FileBase::E_NOTEMPTY == nError1 ) ); in remove_005()
6490 FileBase::RC rc = FileBase::getTempDirURL(tmp); in get_test_path()
6495 rc == FileBase::E_None in get_test_path()
6558 FileBase::RC rc = Directory::createPath( in with_relative_path()
6564 rc == FileBase::E_INVAL in with_relative_path()
6575 FileBase::RC rc = Directory::createPath(tp_url); in without_callback()
6580 rc == FileBase::E_None in without_callback()
6592 FileBase::RC rc = Directory::createPath(tp_url, observer); in with_callback()
6598 (rc == FileBase::E_None) && (nDirs > 0) in with_callback()
6636 FileBase::getFileURLFromSystemPath(path, tp_url); in at_invalid_logical_drive()
6638 FileBase::RC rc = Directory::createPath(tp_url); in at_invalid_logical_drive()
6643 rc != FileBase::E_None in at_invalid_logical_drive()
6653 FileBase::getFileURLFromSystemPath(tp_unc, tp_url); in with_UNC_path()
6655 FileBase::RC rc = Directory::createPath(tp_url); in with_UNC_path()
6660 rc == FileBase::E_None in with_UNC_path()