Lines Matching refs:osl
50 using namespace osl;
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()
111 inline void printFileType( const ::osl::FileStatus::Type nType ) in printFileType()
115 case ::osl::FileStatus::Directory: in printFileType()
118 case ::osl::FileStatus::Volume: in printFileType()
121 case ::osl::FileStatus::Regular: in printFileType()
124 case ::osl::FileStatus::Fifo: in printFileType()
127 case ::osl::FileStatus::Socket: in printFileType()
130 case ::osl::FileStatus::Link: in printFileType()
133 case ::osl::FileStatus::Special: in printFileType()
136 case ::osl::FileStatus::Unknown: in printFileType()
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()
414 …nError = ::osl::File::setAttributes( aPathURL, Attribute_GrpWrite| Attribute_OwnWrite| Attribute_O… in deleteTestFile()
415 …( "In deleteTestFile Function: set writtenable ", ( ::osl::FileBase::E_None == nError ) || ( ::osl… in deleteTestFile()
417 nError = ::osl::File::remove( aPathURL ); in deleteTestFile()
418 …SAGE( "In deleteTestFile Function: remove ", ( ::osl::FileBase::E_None == nError ) || ( nError == … in deleteTestFile()
436 ::osl::FileBase::RC nError; in createTestDirectory()
439 …::osl::FileBase::getFileURLFromSystemPath( dirname, aPathURL ); //convert if not full qualified URL in createTestDirectory()
440 nError = ::osl::Directory::create( aPathURL ); 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()
468 ::osl::Directory testDir( aPathURL ); in deleteTestDirectory()
475 nError = ::osl::Directory::remove( aPathURL ); 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()
522 ::osl::File testFile( str ); 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()
580 ::osl::File testFile( str ); in ifFileExist()
581 bCheckResult = ( osl::FileBase::E_None == testFile.open( OpenFlag_Read ) ); in ifFileExist()
599 ::osl::FileBase::getSystemPathFromFileURL( str, aUStr ); in ifFileCanWrite()
607 ::osl::File testFile( str ); in ifFileCanWrite()
608 bCheckResult = (osl::FileBase::E_None == testFile.open( OpenFlag_Write )); in ifFileCanWrite()
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()
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 …RL( rtl::OUString const& _suBaseURL, rtl::OString const& _sRelativeURL, ::osl::FileBase::RC _nAss…
971 …RL( rtl::OUString const& _suBaseURL, rtl::OString const& _sRelativeURL, ::osl::FileBase::RC _nAss… 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 …L::checkWNTBehaviour_getSystemPathFromFileURL(rtl::OString const& _sURL, ::osl::FileBase::RC _nAss… in checkWNTBehaviour_getSystemPathFromFileURL()
1248 …L::checkUNXBehaviour_getSystemPathFromFileURL(rtl::OString const& _sURL, ::osl::FileBase::RC _nAss… in checkUNXBehaviour_getSystemPathFromFileURL()
1259 …heckWNTBehaviour_getFileURLFromSystemPath(rtl::OString const& _sSysPath, ::osl::FileBase::RC _nAss… in checkWNTBehaviour_getFileURLFromSystemPath()
1270 …heckUNXBehaviour_getFileURLFromSystemPath(rtl::OString const& _sSysPath, ::osl::FileBase::RC _nAss… 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;
1648 ( osl::FileBase::E_None == nError ) ); in getTempDirURL_001()
1675 ::osl::FileBase::RC nError1, nError2;
1704 ::osl::File testFile( *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()
1720 ::osl::File testFile( *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()
1747 ( ::osl::FileBase::E_None == nError1 ) &&( sal_True == bOK ) ); in createTempFile_003()
1753 ::osl::File testFile( *pUStr_FileURL ); in createTempFile_004()
1757 …( osl::FileBase::E_None == nError1 ) && ( osl::FileBase::E_EXIST == nError2 ) &&( sal_True == bOK … in createTempFile_004()
1796 ::osl::VolumeDevice aVolumeDevice;
1798 ::osl::FileBase::RC nError1, nError2;
1813 ::osl::VolumeDevice aVolumeDevice1;
1816 ( osl::FileBase::E_None != aVolumeDevice1.automount( ) ) &&
1817 ( osl::FileBase::E_None != aVolumeDevice1.unmount( ) ) &&
1823 ::osl::VolumeInfo aVolumeInfo( VolumeInfoMask_Attributes );
1824 nError1 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo );
1825 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
1827 ::osl::VolumeDevice aVolumeDevice1( aVolumeInfo.getDeviceHandle( ) );
1835 ::osl::VolumeInfo aVolumeInfo( VolumeInfoMask_Attributes );
1836 nError1 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo );
1837 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
1839 ::osl::VolumeDevice aVolumeDevice1 = aVolumeInfo.getDeviceHandle( );
1859 ::osl::VolumeDevice aVolumeDevice;
1861 ::osl::FileBase::RC nError1, nError2;
1877 ::osl::VolumeDevice aVolumeDevice1;
1881 ( osl::FileBase::E_INVAL == nError1 ) );
1886 ::osl::VolumeInfo aVolumeInfo( VolumeInfoMask_Attributes );
1887 nError1 = ::osl::Directory::getVolumeInfo( aVolURL2, aVolumeInfo );
1888 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 );
1890 ::osl::VolumeDevice aVolumeDevice1( aVolumeInfo.getDeviceHandle( ) );
1894 ( osl::FileBase::E_None == nError1 ) );
1924 ::osl::FileBase::RC nError1, nError2;
1926 ::osl::VolumeDevice aVolumeDevice1;
1941 ::osl::VolumeInfo aVolumeInfo( 0 ); in ctors_001()
1942 nError1 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo ); in ctors_001()
1943 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in ctors_001()
1957 ::osl::VolumeInfo aVolumeInfo( VolumeInfoMask_TotalSpace | in ctors_002()
1960 nError1 = ::osl::Directory::getVolumeInfo( aVolURL4, aVolumeInfo ); in ctors_002()
1961 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in ctors_002()
1984 ::osl::VolumeInfo aVolumeInfo1( mask1 ); in ctors_003()
1985 nError1 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo1 ); in ctors_003()
1987 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in ctors_003()
1993 ::osl::VolumeInfo aVolumeInfo2( mask2 ); in ctors_003()
1994 nError2 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo2 ); in ctors_003()
1996 CPPUNIT_ASSERT( osl::FileBase::E_None == nError2 ); in ctors_003()
2019 ::osl::VolumeDevice aVolumeDevice;
2021 ::osl::FileBase::RC nError1, nError2;
2038 ::osl::VolumeInfo aVolumeInfo( mask ); in isValid_001()
2039 nError1 = ::osl::Directory::getVolumeInfo( aVolURL4, aVolumeInfo ); in isValid_001()
2040 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in isValid_001()
2052 ::osl::VolumeInfo aVolumeInfo( mask ); in isValid_002()
2053 nError1 = ::osl::Directory::getVolumeInfo( aVolURL4, aVolumeInfo ); in isValid_002()
2054 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in isValid_002()
2069 ::osl::VolumeDevice aVolumeDevice1; in isValid_003()
2071 ::osl::VolumeInfo aVolumeInfo( mask ); in isValid_003()
2072 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in isValid_003()
2073 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in isValid_003()
2076 nError1 = ::osl::Directory::getVolumeInfo( aVolURL2, aVolumeInfo ); in isValid_003()
2077 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in isValid_003()
2097 ::osl::VolumeDevice aVolumeDevice;
2099 ::osl::FileBase::RC nError1, nError2;
2106 ::osl::VolumeInfo aVolumeInfo( mask ); in getRemoteFlag_001()
2107 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getRemoteFlag_001()
2108 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getRemoteFlag_001()
2119 ::osl::VolumeInfo aVolumeInfo( mask ); in getRemoteFlag_002()
2120 nError1 = ::osl::Directory::getVolumeInfo( aVolURL4, aVolumeInfo ); in getRemoteFlag_002()
2121 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getRemoteFlag_002()
2147 ::osl::FileBase::RC nError1, nError2;
2154 ::osl::VolumeInfo aVolumeInfo( mask ); in getRemoveableFlag_001()
2155 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getRemoveableFlag_001()
2156 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getRemoveableFlag_001()
2166 ::osl::VolumeInfo aVolumeInfo( mask ); in getRemoveableFlag_002()
2167 nError1 = ::osl::Directory::getVolumeInfo( aVolURL2, aVolumeInfo ); in getRemoveableFlag_002()
2168 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getRemoveableFlag_002()
2187 ::osl::FileBase::RC nError1;
2194 ::osl::VolumeInfo aVolumeInfo( mask ); in getCompactDiscFlag_001()
2195 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getCompactDiscFlag_001()
2196 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getCompactDiscFlag_001()
2206 ::osl::VolumeInfo aVolumeInfo( mask ); in getCompactDiscFlag_002()
2207 nError1 = ::osl::Directory::getVolumeInfo( aVolURL6, aVolumeInfo ); in getCompactDiscFlag_002()
2208 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getCompactDiscFlag_002()
2227 ::osl::FileBase::RC nError1;
2234 ::osl::VolumeInfo aVolumeInfo( mask ); in getFloppyDiskFlag_001()
2235 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getFloppyDiskFlag_001()
2236 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFloppyDiskFlag_001()
2246 ::osl::VolumeInfo aVolumeInfo( mask ); in getFloppyDiskFlag_002()
2247 nError1 = ::osl::Directory::getVolumeInfo( aVolURL2, aVolumeInfo ); in getFloppyDiskFlag_002()
2248 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFloppyDiskFlag_002()
2267 ::osl::FileBase::RC nError1;
2274 ::osl::VolumeInfo aVolumeInfo( mask ); in getFixedDiskFlag_001()
2275 nError1 = ::osl::Directory::getVolumeInfo( aVolURL2, aVolumeInfo ); in getFixedDiskFlag_001()
2276 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFixedDiskFlag_001()
2286 ::osl::VolumeInfo aVolumeInfo( mask ); in getFixedDiskFlag_002()
2287 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getFixedDiskFlag_002()
2288 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFixedDiskFlag_002()
2306 ::osl::FileBase::RC nError1;
2313 ::osl::VolumeInfo aVolumeInfo( mask ); in getRAMDiskFlag_001()
2314 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getRAMDiskFlag_001()
2315 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getRAMDiskFlag_001()
2325 ::osl::VolumeInfo aVolumeInfo( mask ); in getRAMDiskFlag_002()
2326 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getRAMDiskFlag_002()
2327 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getRAMDiskFlag_002()
2346 ::osl::FileBase::RC nError1;
2353 ::osl::VolumeInfo aVolumeInfo( mask ); in getTotalSpace_001()
2354 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getTotalSpace_001()
2355 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getTotalSpace_001()
2367 ::osl::VolumeInfo aVolumeInfo( mask ); in getTotalSpace_002()
2368 nError1 = ::osl::Directory::getVolumeInfo( aVolURL3, aVolumeInfo ); in getTotalSpace_002()
2369 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getTotalSpace_002()
2397 ::osl::VolumeInfo aVolumeInfo( mask ); in getTotalSpace_003()
2398 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getTotalSpace_003()
2399 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getTotalSpace_003()
2427 ::osl::FileBase::RC nError1;
2434 ::osl::VolumeInfo aVolumeInfo( mask ); in getFreeSpace_001()
2435 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getFreeSpace_001()
2436 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFreeSpace_001()
2448 ::osl::VolumeInfo aVolumeInfo( mask ); in getFreeSpace_002()
2449 nError1 = ::osl::Directory::getVolumeInfo( aVolURL3, aVolumeInfo ); in getFreeSpace_002()
2450 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFreeSpace_002()
2477 ::osl::VolumeInfo aVolumeInfo( mask ); in getFreeSpace_003()
2478 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getFreeSpace_003()
2479 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFreeSpace_003()
2508 ::osl::FileBase::RC nError1;
2515 ::osl::VolumeInfo aVolumeInfo( mask ); in getUsedSpace_001()
2516 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getUsedSpace_001()
2517 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getUsedSpace_001()
2529 ::osl::VolumeInfo aVolumeInfo( mask ); in getUsedSpace_002()
2530 nError1 = ::osl::Directory::getVolumeInfo( aVolURL3, aVolumeInfo ); in getUsedSpace_002()
2531 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getUsedSpace_002()
2559 ::osl::VolumeInfo aVolumeInfo( mask ); in getUsedSpace_003()
2560 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getUsedSpace_003()
2561 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getUsedSpace_003()
2591 ::osl::FileBase::RC nError1;
2598 ::osl::VolumeInfo aVolumeInfo( mask ); in getMaxNameLength_001()
2599 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getMaxNameLength_001()
2600 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getMaxNameLength_001()
2620 ::osl::VolumeInfo aVolumeInfo( mask ); in getMaxNameLength_002()
2621 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getMaxNameLength_002()
2622 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getMaxNameLength_002()
2650 ::osl::FileBase::RC nError1;
2657 ::osl::VolumeInfo aVolumeInfo( mask ); in getMaxPathLength_001()
2658 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getMaxPathLength_001()
2659 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getMaxPathLength_001()
2672 ::osl::VolumeInfo aVolumeInfo( mask ); in getMaxPathLength_002()
2673 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getMaxPathLength_002()
2674 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getMaxPathLength_002()
2704 ::osl::FileBase::RC nError1;
2711 ::osl::VolumeInfo aVolumeInfo( mask ); in getFileSystemName_001()
2712 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getFileSystemName_001()
2713 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFileSystemName_001()
2733 ::osl::VolumeInfo aVolumeInfo( mask ); in getFileSystemName_002()
2734 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getFileSystemName_002()
2735 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getFileSystemName_002()
2764 ::osl::FileBase::RC nError1;
2770 ::osl::VolumeInfo aVolumeInfo( VolumeInfoMask_Attributes ); in getDeviceHandle_001()
2771 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in getDeviceHandle_001()
2772 CPPUNIT_ASSERT( osl::FileBase::E_None == nError1 ); in getDeviceHandle_001()
2774 ::osl::VolumeDevice aVolumeDevice1( aVolumeInfo.getDeviceHandle( ) ); in getDeviceHandle_001()
2820 ::osl::FileBase::RC nError1, nError2;
2821 ::osl::DirectoryItem rItem;
2833 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
2835 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in setUp()
2857 ::osl::FileStatus rFileStatus( FileStatusMask_All ); in ctors_001()
2859 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in ctors_001()
2868 ::osl::FileStatus rFileStatus( 0 ); in ctors_002()
2870 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in ctors_002()
2891 ::osl::Directory *pDir;
2892 ::osl::DirectoryItem rItem_file, rItem_link;
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()
2925 ::osl::FileStatus rFileStatus( mask ); in isValid_001()
2926 ::osl::FileBase::RC nError1 = rItem_file.getFileStatus( rFileStatus ); in isValid_001()
2927 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isValid_001()
2934 void check_FileStatus(::osl::FileStatus const& _aStatus) in check_FileStatus()
2979 ::osl::FileStatus rFileStatus( mask_file ); in isValid_002()
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()
3023 ::osl::Directory testDirectory( aTmpName3 ); in isValid_003()
3024 ::osl::FileBase::RC nError1 = testDirectory.open( ); in isValid_003()
3029 if (::osl::FileBase::E_None == nError1) { in isValid_003()
3031 ::osl::FileStatus rFileStatus( mask_link ); in isValid_003()
3059 ::osl::FileStatus rFileStatus_all( mask_file_all ); in isValid_004()
3060 ::osl::FileBase::RC nError1 = rItem_file.getFileStatus( rFileStatus_all ); in isValid_004()
3061 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isValid_004()
3068 ::osl::FileStatus rFileStatus_val( mask_file_val ); in isValid_004()
3070 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in isValid_004()
3095 ::osl::FileBase::RC nError1, nError2;
3097 ::osl::DirectoryItem m_aItem_1, m_aItem_2, m_aVolumeItem, m_aFifoItem;
3098 ::osl::DirectoryItem m_aLinkItem, m_aSocketItem, m_aSpecialItem;
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()
3140 ::osl::FileStatus rFileStatus( FileStatusMask_Type | FileStatusMask_FileName ); in getFileType_001()
3142 CPPUNIT_ASSERT_MESSAGE("getFileStatus failed", ::osl::FileBase::E_None == nError1 ); in getFileType_001()
3147 void check_FileType(osl::FileStatus const& _rFileStatus ) in check_FileType()
3156 osl::FileStatus::Type eType = _rFileStatus.getFileType( ); in check_FileType()
3161 bOK = ( eType == osl::FileStatus::Regular ); in check_FileType()
3166 bOK = ( eType == ::osl::FileStatus::Directory ); in check_FileType()
3178 ::osl::FileStatus rFileStatus( FileStatusMask_Type | FileStatusMask_FileName ); in getFileType_002()
3181 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getFileType_002()
3189 ::osl::FileStatus rFileStatus( FileStatusMask_Type ); in getFileType_003()
3191 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getFileType_003()
3195 osl::FileStatus::Type eType = rFileStatus.getFileType( ); in getFileType_003()
3198 ( eType == ::osl::FileStatus::Volume ) ); in getFileType_003()
3215 ::osl::FileBase::getFileURLFromSystemPath( aFifoSys, aFifoURL ); in getFileType_004()
3217 nError1 = ::osl::DirectoryItem::get( aFifoURL, m_aFifoItem ); in getFileType_004()
3218 CPPUNIT_ASSERT_MESSAGE("get item failed!", ::osl::FileBase::E_None == nError1 ); in getFileType_004()
3221 ::osl::FileStatus rFileStatus( FileStatusMask_Type ); in getFileType_004()
3223 CPPUNIT_ASSERT_MESSAGE("get Status failed!", ::osl::FileBase::E_None == nError1 ); in getFileType_004()
3226 nError1 = ::osl::File::remove( aFifoURL ); in getFileType_004()
3227 CPPUNIT_ASSERT_MESSAGE("remove file failed!", ::osl::FileBase::E_None == nError1 ); in getFileType_004()
3231 osl::FileStatus::Type eType = rFileStatus.getFileType( ); in getFileType_004()
3234 ( eType == ::osl::FileStatus::Fifo ) ); in getFileType_004()
3288 nError1 = ::osl::DirectoryItem::get( aTypeURL2, m_aSpecialItem ); in getFileType_007()
3289 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getFileType_007()
3292 ::osl::FileStatus rFileStatus( FileStatusMask_Type ); in getFileType_007()
3294 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getFileType_007()
3298 osl::FileStatus::Type eType = rFileStatus.getFileType( ); in getFileType_007()
3302 ( eType == ::osl::FileStatus::Special ) ); in getFileType_007()
3325 ::osl::FileBase::RC nError;
3326 ::osl::DirectoryItem rItem, rItem_hidden;
3335 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in setUp()
3341 nError = ::osl::DirectoryItem::get( aTypeURL_Hid, rItem_hidden ); in setUp()
3358 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in getAttributes_001()
3380 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in getAttributes_002()
3396 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in getAttributes_003()
3416 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in getAttributes_004()
3428 nError = ::osl::DirectoryItem::get( aUserHiddenFileURL, rItem_hidden ); in getAttributes_004()
3431 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in getAttributes_004()
3455 ::osl::FileBase::RC nError;
3456 ::osl::DirectoryItem rItem;
3465 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in setUp()
3483 ::osl::FileStatus rFileStatus( FileStatusMask_AccessTime ); in getAccessTime_001()
3510 ::osl::FileBase::RC nError;
3511 ::osl::DirectoryItem rItem;
3531 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in getModifyTime_001()
3533 ::osl::FileStatus rFileStatus( FileStatusMask_ModifyTime ); in getModifyTime_001()
3564 ::osl::FileBase::RC nError;
3565 ::osl::DirectoryItem rItem;
3574 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in setUp()
3586 ::osl::FileStatus rFileStatus( FileStatusMask_FileSize ); in getFileSize_001()
3598 ::osl::File testfile( aTypeURL ); in getFileSize_002()
3600 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError ); in getFileSize_002()
3602 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError ); in getFileSize_002()
3604 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in getFileSize_002()
3606 ::osl::FileStatus rFileStatus( FileStatusMask_FileSize ); in getFileSize_002()
3627 ::osl::FileBase::RC nError;
3628 ::osl::DirectoryItem rItem;
3637 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in setUp()
3649 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in getFileName_001()
3671 ::osl::FileBase::RC nError;
3672 ::osl::DirectoryItem rItem;
3679 nError = ::osl::DirectoryItem::get( aTmpName6, rItem ); in setUp()
3691 ::osl::FileStatus rFileStatus( FileStatusMask_FileURL ); in getFileURL_001()
3713 ::osl::FileBase::RC nError;
3714 ::osl::DirectoryItem rItem;
3748 nError = ::osl::DirectoryItem::get( aLnkURL1, rItem ); in getLinkTargetURL_001()
3751 ::osl::FileStatus rFileStatus( FileStatusMask_LinkTargetURL ); in getLinkTargetURL_001()
3823 ::osl::File testFile( aTmpName4 ); in ctors_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()
3833 ::osl::File testFile( aTmpName5 ); in ctors_002()
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;
3878 ::osl::File testFile( aTmpName4 ); in open_001()
3882 CPPUNIT_ASSERT_MESSAGE("close error", ::osl::FileBase::E_None == nError2 ); in open_001()
3885 ::osl::FileBase::E_None == nError1 ); in open_001()
3890 ::osl::File testFile( aTmpName3 ); in open_002()
3900 ::osl::File testFile( aCanURL1 ); in open_003()
3912 ::osl::File testFile( aTestFile ); in open_004()
3928 ::osl::File testFile( aTmpName4 ); in open_005()
3938 ::osl::File testFile( aCanURL1 ); in open_006()
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;
3999 ::osl::File testFile( aTmpName4 ); in close_001()
4002 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in close_001()
4007 ::osl::FileBase::E_None == nError2 ); in close_001()
4012 ::osl::File testFile( aTmpName4 ); in close_002()
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;
4051 ::osl::File testFile( aTmpName4 ); in setUp()
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()
4071 ::osl::File testFile( aTmpName4 ); in setPos_001()
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()
4089 ::osl::File testFile( aTmpName4 ); in setPos_002()
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()
4109 ::osl::File testFile( aTmpName4 ); in setPos_003()
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;
4154 ::osl::File testFile( aTmpName4 ); in setUp()
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()
4174 ::osl::File testFile( aTmpName4 ); in getPos_001()
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;
4219 ::osl::File testFile( aTmpName4 ); in setUp()
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()
4239 ::osl::File testFile( aTmpName4 ); in isEndOfFile_001()
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()
4261 ::osl::File testFile( aTmpName4 ); in isEndOfFile_002()
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;
4313 ::osl::File testFile( aTmpName4 ); in setUp()
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()
4333 ::osl::File testFile( aTmpName4 ); in setSize_001()
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()
4361 ::osl::File testFile( aTmpName4 ); in setSize_002()
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;
4440 ::osl::File testFile( aTmpName4 ); in setUp()
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()
4460 ::osl::File testFile( aTmpName4 ); in read_001()
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()
4482 ::osl::File testFile( aTmpName4 ); in read_002()
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;
4536 ::osl::File testFile( aTmpName6 ); in write_001()
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;
4587 ::osl::File testFile( aTmpName6 ); in setUp()
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()
4615 ::osl::File testFile( aTmpName6 ); in readLine_001()
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()
4629 ::osl::File testFile( aTmpName6 ); in readLine_002()
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;
4671 ::osl::File testFile( aTmpName4 ); in setUp()
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()
4691 ::osl::File testFile( aTmpName6 ); in copy_001()
4694 nError1 = ::osl::File::copy( aTmpName4, aTmpName6 ); in copy_001()
4695 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in copy_001()
4701 ::osl::FileBase::E_EXIST == nError1 ); in copy_001()
4707 nError1 = ::osl::File::copy( aTmpName4, aTmpName3 ); in copy_002()
4710 ( ::osl::FileBase::E_ISDIR == nError1 ) ||( ::osl::FileBase::E_ACCES == nError1 ) ); in copy_002()
4716 nError1 = ::osl::File::copy( aTmpName4, aTmpName7 ); in copy_003()
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()
4728 nError1 = ::osl::File::copy( aTmpName6, aTmpName4 ); in copy_004()
4731 ::osl::FileBase::E_NOENT == nError1 ); in copy_004()
4737 nError1 = ::osl::File::copy( aTmpName6, aSysPath1 ); in copy_005()
4740 ::osl::FileBase::E_INVAL == nError1 ); in copy_005()
4751 nError1 = ::osl::File::copy( aTmpName6, aTmpName4 ); 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;
4805 ::osl::File testFile( aTmpName4 ); in setUp()
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()
4826 nError1 = ::osl::File::move( aTmpName4, aCanURL1 ); in move_001()
4827 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in move_001()
4829 ::osl::File testFile( aCanURL1 ); in move_001()
4834 ::osl::FileBase::E_EXIST == nError2 ); in move_001()
4840 nError1 = ::osl::File::move( aTmpName4, aTmpName3 ); in move_002()
4843 …( ::osl::FileBase::E_ACCES == nError1 || ::osl::FileBase::E_ISDIR == nError1 ) ||( ::osl::FileBase… in move_002()
4849 nError1 = ::osl::File::move( aTmpName4, aTmpName7 ); in move_003()
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()
4862 nError1 = ::osl::File::move( aTmpName6, aTmpName4 ); in move_004()
4865 ::osl::FileBase::E_NOENT == nError1 ); in move_004()
4871 nError1 = ::osl::File::move( aTmpName6, aSysPath1 ); in move_005()
4874 ::osl::FileBase::E_INVAL == nError1 ); in move_005()
4881 nError1 = ::osl::File::move( aTmpName6, aTmpName4 ); in move_006()
4883 nError2 = ::osl::File::move( aTmpName4, aTmpName6 ); in move_006()
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()
4900 nError1 = ::osl::File::move( aTmpName3, aTmpName8 ); in move_007()
4902 nError2 = ::osl::Directory::create( aTmpName8 ); in move_007()
4903 ::osl::File::move( aTmpName8, aTmpName3 ); in move_007()
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()
4926 nError1 = ::osl::File::move( aTmpName3, newName ); in move_009()
4932 ::osl::FileBase::E_None != nError1 ); in move_009()
4955 ::osl::FileBase::RC nError1, nError2;
4967 ::osl::File testFile( aTmpName4 ); in setUp()
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()
4988 nError1 = ::osl::File::remove( aTmpName4 ); in remove_001()
4990 ::osl::File testFile( aTmpName4 ); in remove_001()
4994 ( ::osl::FileBase::E_None == nError1 ) && in remove_001()
4995 ( ::osl::FileBase::E_EXIST != nError2 ) ); in remove_001()
5001 nError1 = ::osl::File::remove( aTmpName6 ); in remove_002()
5004 ( ::osl::FileBase::E_NOENT == nError1 ) ); in remove_002()
5010 nError1 = ::osl::File::remove( aSysPath2 ); in remove_003()
5013 ( ::osl::FileBase::E_INVAL == nError1 ) ); in remove_003()
5019 nError1 = ::osl::File::remove( aTmpName3 ); in remove_004()
5022 … ( ::osl::FileBase::E_ISDIR == nError1 ) || ( ::osl::FileBase::E_ACCES == nError1 )); in remove_004()
5040 ::osl::FileBase::RC nError1, nError2;
5041 ::osl::DirectoryItem rItem, rItem_hidden;
5063 …nError2 = ::osl::File::setAttributes( aTmpName6, Attribute_ReadOnly | Attribute_GrpRead | Attribut… in setAttributes_001()
5065 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in setAttributes_001()
5068 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in setAttributes_001()
5077 nError2 = ::osl::File::setAttributes( aTmpName6, Attribute_ReadOnly ); in setAttributes_001()
5079 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in setAttributes_001()
5082 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in setAttributes_001()
5103 nError2 = ::osl::File::setAttributes( aTmpName6, Attribute_Hidden); in setAttributes_002()
5106 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in setAttributes_002()
5109 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in setAttributes_002()
5135 ::osl::FileBase::RC nError1, nError2;
5136 ::osl::DirectoryItem rItem;
5169 nError2 = ::osl::File::setTime( aTmpName6, *pTV_current, *pTV_current, *pTV_current ); in setTime_001()
5173 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in setTime_001()
5176 ::osl::FileStatus rFileStatus( FileStatusMask_AccessTime ); in setTime_001()
5181 ::osl::FileStatus rFileStatus1( FileStatusMask_CreationTime ); in setTime_001()
5186 ::osl::FileStatus rFileStatus2( FileStatusMask_ModifyTime ); in setTime_001()
5218 ::osl::FileBase::RC nError1, nError2;
5219 ::osl::DirectoryItem rItem;
5240 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in sync_001()
5254 …nError2 = ::osl::File::setAttributes( aTmpName6, Attribute_ReadOnly | Attribute_GrpRead | Attribut… in sync_001()
5305 ::osl::FileBase::RC nError1, nError2;
5324 ::osl::File testFile( aTmpName6 ); in ctors_001()
5325 ::osl::DirectoryItem rItem; //constructor in ctors_001()
5328 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in ctors_001()
5332 ::osl::FileBase::E_None == nError1 ); in ctors_001()
5346 ::osl::FileBase::RC nError1, nError2;
5365 ::osl::DirectoryItem rItem; //constructor in copy_assin_Ctors_001()
5367 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in copy_assin_Ctors_001()
5370 ::osl::DirectoryItem copyItem( rItem ); //copy constructor in copy_assin_Ctors_001()
5371 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in copy_assin_Ctors_001()
5381 ::osl::DirectoryItem rItem; //constructor in copy_assin_Ctors_002()
5383 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in copy_assin_Ctors_002()
5386 ::osl::DirectoryItem copyItem; in copy_assin_Ctors_002()
5388 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in copy_assin_Ctors_002()
5408 ::osl::FileBase::RC nError1, nError2;
5427 ::osl::DirectoryItem rItem; //constructor in is_001()
5435 ::osl::DirectoryItem rItem; //constructor in is_002()
5437 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in is_002()
5456 ::osl::FileBase::RC nError1, nError2;
5475 ::osl::DirectoryItem rItem; //constructor in get_001()
5477 nError2 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in get_001()
5480 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in get_001()
5485 ( ::osl::FileBase::E_None == nError2 ) && in get_001()
5491 ::osl::DirectoryItem rItem; in get_002()
5493 nError1 = ::osl::DirectoryItem::get( aSysPath1, rItem ); in get_002()
5501 ::osl::DirectoryItem rItem; in get_003()
5503 nError1 = ::osl::DirectoryItem::get( aTmpName3, rItem ); in get_003()
5522 ::osl::FileBase::RC nError1, nError2;
5543 ::osl::DirectoryItem rItem; //constructor in getFileStatus_001()
5545 nError1 = ::osl::DirectoryItem::get( aTmpName4, rItem ); in getFileStatus_001()
5546 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getFileStatus_001()
5549 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in getFileStatus_001()
5553 ( ::osl::FileBase::E_None == nError2 ) && in getFileStatus_001()
5559 ::osl::DirectoryItem rItem; //constructor in getFileStatus_002()
5561 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in getFileStatus_002()
5564 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in getFileStatus_002()
5568 ( ::osl::FileBase::E_INVAL == nError2 ) ); in getFileStatus_002()
5573 ::osl::DirectoryItem rItem; //constructor in getFileStatus_003()
5575 nError1 = ::osl::DirectoryItem::get( aTmpName3, rItem ); in getFileStatus_003()
5576 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getFileStatus_003()
5579 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in getFileStatus_003()
5583 ( ::osl::FileBase::E_None == nError2 ) && in getFileStatus_003()
5616 ::osl::FileBase::RC nError1, nError2;
5638 ::osl::Directory testDirectory( aTmpName3 ); //constructor in ctors_001()
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()
5654 ::osl::Directory testDirectory( aTmpName9 ); //constructor in ctors_002()
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;
5701 ::osl::Directory testDirectory( aTmpName3 ); //constructor in open_001()
5712 ( ::osl::FileBase::E_None == nError1 ) && in open_001()
5713 ( ::osl::FileBase::E_None == nError2 ) ); in open_001()
5718 ::osl::Directory testDirectory( aTmpName6 ); //constructor in open_002()
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()
5734 ::osl::Directory testDirectory( aUserDirectorySys ); //constructor in open_003()
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()
5750 ::osl::Directory testDirectory( aTmpName4 ); //constructor in open_004()
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;
5799 ::osl::Directory testDirectory( aTmpName3 ); //constructor in isOpen_001()
5814 ::osl::Directory testDirectory( aTmpName3 ); //constructor in isOpen_002()
5835 ::osl::FileBase::RC nError1, nError2;
5854 ::osl::Directory testDirectory( aTmpName3 ); //constructor in close_001()
5869 ::osl::Directory testDirectory( aTmpName3 ); //constructor in close_002()
5875 ( ::osl::FileBase::E_BADF == nError1 ) ); in close_002()
5891 ::osl::FileBase::RC nError1, nError2;
5892 ::osl::DirectoryItem rItem;
5919 ::osl::Directory testDirectory( aTmpName3 ); //constructor in reset_001()
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()
5938 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in reset_001()
5942 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in reset_001()
5949 ( ::osl::FileBase::E_None == nError2 ) && in reset_001()
5955 ::osl::Directory testDirectory( aTmpName6 ); //constructor in reset_002()
5961 ( ::osl::FileBase::E_NOENT == nError1 ) ); in reset_002()
5967 ::osl::Directory testDirectory( aTmpName4 ); //constructor in reset_003()
5973 … ( ::osl::FileBase::E_NOTDIR == nError1 ) || ( ::osl::FileBase::E_NOENT == nError1 ) ); in reset_003()
5978 ::osl::Directory testDirectory( aUserDirectorySys ); //constructor in reset_004()
5984 ( ::osl::FileBase::E_INVAL == nError1 ) ); in reset_004()
6001 ::osl::FileBase::RC nError1, nError2;
6002 ::osl::DirectoryItem rItem;
6030 ::osl::Directory testDirectory( aTmpName3 ); //constructor in getNextItem_001()
6034 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in getNextItem_001()
6041 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); 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()
6069 ::osl::Directory testDirectory( aTmpName3 ); //constructor in getNextItem_002()
6073 ( ::osl::FileBase::E_INVAL == nError1 ) ); in getNextItem_002()
6078 ::osl::Directory testDirectory( aTmpName3 ); //constructor in getNextItem_003()
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()
6112 ::osl::Directory testDirectory( aTmpName3 ); in getNextItem_004()
6120 if (::osl::FileBase::E_None == nError1) { in getNextItem_004()
6121 ::osl::FileStatus rFileStatus( FileStatusMask_FileName | FileStatusMask_Type ); in getNextItem_004()
6156 ::osl::FileBase::RC nError1, nError2;
6161 void checkValidMask(osl::VolumeInfo const& _aVolumeInfo, sal_Int32 _nMask) in checkValidMask()
6171 ( osl::FileBase::E_None == nError1 ) && in checkValidMask()
6228 ::osl::VolumeInfo aVolumeInfo( _nMask ); in checkVolumeInfo()
6230 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in checkVolumeInfo()
6284 ::osl::VolumeInfo aVolumeInfo( mask ); in getVolumeInfo_002()
6293 nError1 = ::osl::Directory::getVolumeInfo( aRootSys, aVolumeInfo ); in getVolumeInfo_002()
6296 ( osl::FileBase::E_INVAL == nError1 ) ); in getVolumeInfo_002()
6302 ::osl::VolumeInfo aVolumeInfo( mask ); in getVolumeInfo_003()
6304 nError1 = ::osl::Directory::getVolumeInfo( aTmpName3, aVolumeInfo ); in getVolumeInfo_003()
6309 ( osl::FileBase::E_NOENT == nError1 ) ); in getVolumeInfo_003()
6334 ::osl::FileBase::RC nError1, nError2;
6342 nError1 = ::osl::Directory::create( aTmpName3 ); in create_001()
6344 nError2 = ::osl::Directory::create( aTmpName3 ); in create_001()
6349 ( osl::FileBase::E_None == nError1 ) && in create_001()
6350 ( osl::FileBase::E_EXIST== nError2 ) ); in create_001()
6356 nError1 = ::osl::Directory::create( aTmpName7 ); in create_002()
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()
6369 nError1 = ::osl::Directory::create( aSysPath1 ); in create_003()
6372 ( osl::FileBase::E_INVAL == nError1 ) ); in create_003()
6388 ::osl::FileBase::RC nError1, nError2;
6396 nError1 = ::osl::Directory::create( aTmpName3 ); in remove_001()
6397 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in remove_001()
6399 nError1 = ::osl::Directory::remove( aTmpName3 ); in remove_001()
6401 ::osl::Directory rDirectory( aTmpName3 ); in remove_001()
6405 ( osl::FileBase::E_None == nError1 ) && in remove_001()
6406 ( osl::FileBase::E_NOENT == nError2 ) ); in remove_001()
6412 nError1 = ::osl::Directory::create( aTmpName3 ); in remove_002()
6413 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); in remove_002()
6415 nError1 = ::osl::Directory::remove( aSysPath3 ); in remove_002()
6417 ::osl::Directory rDirectory( aTmpName3 ); in remove_002()
6419 if ( osl::FileBase::E_NOENT != nError2 ) in remove_002()
6420 ::osl::Directory::remove( aTmpName3 ); in remove_002()
6423 ( osl::FileBase::E_INVAL == nError1 ) ); in remove_002()
6429 nError1 = ::osl::Directory::remove( aTmpName6 ); in remove_003()
6432 ( osl::FileBase::E_NOENT == nError1 ) ); in remove_003()
6440 nError1 = ::osl::Directory::remove( aTmpName6 ); in remove_004()
6444 …bExist == sal_True &&(( osl::FileBase::E_NOTDIR == nError1 ) || ( osl::FileBase::E_NOENT == nError… in remove_004()
6451 nError1 = ::osl::Directory::remove( aTmpName3 ); in remove_005()
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()