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 …ASSERT_TRUE(( ::osl::FileBase::E_None == nError ) || ( ::osl::FileBase::E_NOENT == nError )) << "I… in deleteTestFile()
417 nError = ::osl::File::remove( aPathURL ); in deleteTestFile()
418 …ASSERT_TRUE(( ::osl::FileBase::E_None == nError ) || ( nError == ::osl::FileBase::E_NOENT )) << "I… 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 …EXPECT_TRUE(( ::osl::FileBase::E_None == nError ) || ( nError == ::osl::FileBase::E_NOENT )) << st… 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 EXPECT_TRUE( rc == ::osl::FileBase::E_None ); in checkDirectory()
694 ::osl::FileBase::getSystemPathFromFileURL( filepath, aUStr ); in changeFileMode()
730 ::osl::FileBase::RC nError;
736 nError = ::osl::FileBase::getCanonicalName( aCanURL1, aUStr_ValidURL );
738 …ASSERT_TRUE(( osl::FileBase::E_None == nError ) && aUStr_ValidURL.equalsIgnoreAsciiCase( aCanURL1 …
746 nError = ::osl::FileBase::getCanonicalName( aCanURL1, aUStr_ValidURL );
749 …ASSERT_TRUE(( osl::FileBase::E_None == nError ) && aUStr_ValidURL.equalsIgnoreAsciiCase( aCanURL1 …
755 nError = ::osl::FileBase::getCanonicalName ( aCanURL2, aUStr_ValidURL );
757 …ASSERT_TRUE(( osl::FileBase::E_None == nError ) && aUStr_ValidURL.equalsIgnoreAsciiCase( aCanURL2 …
771 ::osl::FileBase aFileBase;
773 ::osl::FileBase::RC nError;
779 …RL( rtl::OUString const& _suBaseURL, rtl::OString const& _sRelativeURL, ::osl::FileBase::RC _nAss…
809 …::osl::FileBase::RC nError11 = aFileBase.getAbsoluteFileURL( aUserDirectoryURL, aRelURL1, aUStr_A… in TEST_F()
819 …::osl::FileBase::RC nError21 = aFileBase.getAbsoluteFileURL( aUserDirectoryURL, aRelURL2, aUStr_A… in TEST_F()
821 …::osl::FileBase::RC nError31 = aFileBase.getAbsoluteFileURL( aUserDirectoryURL, aRelURL3, aUStr_A… in TEST_F()
823 …::osl::FileBase::RC nError41 = aFileBase.getAbsoluteFileURL( aUserDirectoryURL, aRelURL4, aUStr_A… in TEST_F()
828 ASSERT_TRUE(( ::osl::FileBase::E_None == nError11 ) && ( sal_True == nError12 ) && in TEST_F()
829 … ( ::osl::FileBase::E_None == nError21 ) && ( sal_True == nError22 ) && in TEST_F()
830 … ( ::osl::FileBase::E_None == nError31 ) && ( sal_True == nError32 ) && in TEST_F()
831 …( ::osl::FileBase::E_None == nError41 ) && ( sal_True == nError42 )) << "test for getAbsoluteFileU… in TEST_F()
866 …ASSERT_TRUE(( ::osl::FileBase::E_None == nError ) && ( sal_True == bOk )) << "test for getAbsolute… in TEST_F()
890 ASSERT_TRUE(( ::osl::FileBase::E_INVAL == nError )) << suError; in TEST_F()
920 ASSERT_TRUE(( ::osl::FileBase::E_None == nError ) && ( sal_True == bOk )) << suError.pData; in TEST_F()
923 …RL( rtl::OUString const& _suBaseURL, rtl::OString const& _sRelativeURL, ::osl::FileBase::RC _nAss… in check_getAbsoluteFileURL()
928 …osl::FileBase::RC nError = FileBase::getAbsoluteFileURL( _suBaseURL, suRelativeURL, suResultURL ); in check_getAbsoluteFileURL()
933 if ( nError == ::osl::FileBase::E_None ) in check_getAbsoluteFileURL()
943 … check_getAbsoluteFileURL( aUserDirectoryURL, "relative/file1",::osl::FileBase::E_None, suAssume ); in TEST_F()
948 …check_getAbsoluteFileURL( aUserDirectoryURL, "relative/./file2",::osl::FileBase::E_None, suAssume … in TEST_F()
953 …check_getAbsoluteFileURL( aUserDirectoryURL, "relative/../file3",::osl::FileBase::E_None, suAssume… in TEST_F()
958 …check_getAbsoluteFileURL( aUserDirectoryURL, "././relative/../file4",::osl::FileBase::E_None, suAs… in TEST_F()
968 … check_getAbsoluteFileURL( aUserDirectoryURL, "././relative/.",::osl::FileBase::E_None, suAssume ); in TEST_F()
973 check_getAbsoluteFileURL( aUserDirectoryURL, "./.relative",::osl::FileBase::E_None, suAssume ); in TEST_F()
983 … check_getAbsoluteFileURL( aUserDirectoryURL, "./.a/mydir/..",::osl::FileBase::E_None, suAssume ); in TEST_F()
989 check_getAbsoluteFileURL( aUserDirectoryURL, "tmp//ok",::osl::FileBase::E_None, suAssume ); in TEST_F()
991 check_getAbsoluteFileURL( aUserDirectoryURL, "tmp//ok",::osl::FileBase::E_INVAL, suAssume ); in TEST_F()
1010 check_getAbsoluteFileURL( aUserDirectoryURL, sLnkURL, ::osl::FileBase::E_None, suAssume ); in TEST_F()
1029 check_getAbsoluteFileURL( aUStrBase, "../../mytestfile" , ::osl::FileBase::E_None, suAssume ); in TEST_F()
1048 …void check_SystemPath_FileURL(rtl::OString const& _sSource, ::osl::FileBase::RC _nAssumeError, rtl…
1049 …void checkWNTBehaviour_getSystemPathFromFileURL(rtl::OString const& _sURL, ::osl::FileBase::RC _nA…
1050 …void checkUNXBehaviour_getSystemPathFromFileURL(rtl::OString const& _sURL, ::osl::FileBase::RC _nA…
1051 …void checkWNTBehaviour_getFileURLFromSystemPath(rtl::OString const& _sSysPath, ::osl::FileBase::RC…
1052 …void checkUNXBehaviour_getFileURLFromSystemPath(rtl::OString const& _sSysPath, ::osl::FileBase::RC…
1090 …void SystemPath_FileURL::check_SystemPath_FileURL(rtl::OString const& _sSource, ::osl::FileBase::R… in check_SystemPath_FileURL()
1096 ::osl::FileBase::RC nError; in check_SystemPath_FileURL()
1098 nError = osl::FileBase::getSystemPathFromFileURL( suSource, suStr ); in check_SystemPath_FileURL()
1100 nError = osl::FileBase::getFileURLFromSystemPath( suSource, suStr ); in check_SystemPath_FileURL()
1125 …L::checkWNTBehaviour_getSystemPathFromFileURL(rtl::OString const& _sURL, ::osl::FileBase::RC _nAss… in checkWNTBehaviour_getSystemPathFromFileURL()
1136 …L::checkUNXBehaviour_getSystemPathFromFileURL(rtl::OString const& _sURL, ::osl::FileBase::RC _nAss… in checkUNXBehaviour_getSystemPathFromFileURL()
1147 …heckWNTBehaviour_getFileURLFromSystemPath(rtl::OString const& _sSysPath, ::osl::FileBase::RC _nAss… in checkWNTBehaviour_getFileURLFromSystemPath()
1158 …heckUNXBehaviour_getFileURLFromSystemPath(rtl::OString const& _sSysPath, ::osl::FileBase::RC _nAss… in checkUNXBehaviour_getFileURLFromSystemPath()
1181 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in TEST_F()
1182 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in TEST_F()
1188 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in TEST_F()
1189 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "\\"); in TEST_F()
1195 …checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/"); // LLA: this is may … in TEST_F()
1196 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in TEST_F()
1201 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in TEST_F()
1202 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in TEST_F()
1207 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "a"); in TEST_F()
1208 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "a"); in TEST_F()
1213 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "tmpname"); in TEST_F()
1214 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "tmpname"); in TEST_F()
1219 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, ""); in TEST_F()
1220 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in TEST_F()
1225 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, ""); in TEST_F()
1226 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in TEST_F()
1231 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/tmp"); in TEST_F()
1232 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in TEST_F()
1237 …checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "c:/tmp"); // LLA: this is… in TEST_F()
1238 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in TEST_F()
1243 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/c:/tmp"); in TEST_F()
1244 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "c:\\tmp"); in TEST_F()
1250 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/c|/tmp"); in TEST_F()
1251 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "c:\\tmp"); in TEST_F()
1256 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/tmp/first"); in TEST_F()
1257 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in TEST_F()
1262 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/c:/tmp/first"); in TEST_F()
1263 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "c:\\tmp\\first"); in TEST_F()
1268 …checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/tmp/../second"); // LLA:… in TEST_F()
1269 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in TEST_F()
1274 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/c:/tmp/../second"); in TEST_F()
1275 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "c:\\tmp\\..\\second"); in TEST_F()
1280 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "../tmp"); in TEST_F()
1281 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "..\\tmp"); in TEST_F()
1290 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, expResult ); in TEST_F()
1296 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/tmp/first second"); in TEST_F()
1297 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in TEST_F()
1302 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/c:/tmp/first second"); in TEST_F()
1303 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "c:\\tmp\\first second"); in TEST_F()
1309 checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, ""); in TEST_F()
1310 checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); in TEST_F()
1321 … ::osl::FileBase::RC nError = osl::FileBase::getSystemPathFromFileURL( aRelativeURL, aUStr );
1329 ASSERT_TRUE(( osl::FileBase::E_None == nError ) && ( sal_True == bOk )) << suError;
1339 ::osl::FileBase::RC nError = osl::FileBase::getSystemPathFromFileURL( aNormalURL, aUStr ); in TEST_F()
1348 ASSERT_TRUE(( osl::FileBase::E_None == nError ) && ( sal_True == bOk )) << suError.pData; in TEST_F()
1360 … ::osl::FileBase::RC nError = osl::FileBase::getSystemPathFromFileURL( aNormalURL, aUStr ); in TEST_F()
1370 ASSERT_TRUE(( osl::FileBase::E_None == nError ) && ( sal_True == bOk )) << suError.pData; in TEST_F()
1379 checkUNXBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_None, expResult ); in TEST_F()
1380 checkWNTBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_None, "~/tmp"); in TEST_F()
1385 checkUNXBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_None, "c:/tmp"); in TEST_F()
1386 checkWNTBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_None, "file:///c:/tmp"); in TEST_F()
1391 checkUNXBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_INVAL, ""); in TEST_F()
1392 checkWNTBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_INVAL, ""); in TEST_F()
1397 …checkUNXBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_None, "file:///tmp/first%20s… in TEST_F()
1398 checkWNTBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_INVAL, ""); in TEST_F()
1403 checkUNXBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_INVAL, ""); in TEST_F()
1404 checkWNTBehaviour_getFileURLFromSystemPath(sSysPath, osl::FileBase::E_INVAL, ""); in TEST_F()
1423 ::osl::FileBase::RC nError1, nError2, nError3,nError4;
1432 nError1 = ::osl::FileBase::searchFileURL( aTmpName1, aUserDirectorySys, aUStr ); in TEST_F()
1434 nError2 = ::osl::FileBase::searchFileURL( aCanURL1, aUserDirectorySys, aUStr ); in TEST_F()
1436 nError3 = ::osl::FileBase::searchFileURL( aRelURL4, aUserDirectorySys, aUStr ); in TEST_F()
1438 ASSERT_TRUE(( osl::FileBase::E_NOENT == nError1 ) && in TEST_F()
1439 ( osl::FileBase::E_NOENT == nError2 ) && in TEST_F()
1440 …( osl::FileBase::E_NOENT == nError3 )) << "test for searchFileURL function: system filename/URL fi… in TEST_F()
1446 nError1 = ::osl::FileBase::searchFileURL( aTempDirectorySys, aRootSys, aUStr ); in TEST_F()
1449 nError2 = ::osl::FileBase::searchFileURL( aTempDirectoryURL, aRootSys, aUStr ); in TEST_F()
1452 nError3 = ::osl::FileBase::searchFileURL( aRelURL5, aRootSys, aUStr ); in TEST_F()
1456 nError4 = ::osl::FileBase::searchFileURL( aCanURL4, aUserDirectorySys, aUStr ); in TEST_F()
1460 ASSERT_TRUE(( osl::FileBase::E_None == nError1 ) && in TEST_F()
1461 ( osl::FileBase::E_None == nError2 ) && in TEST_F()
1462 ( osl::FileBase::E_None == nError3 ) && in TEST_F()
1463 ( osl::FileBase::E_None == nError4 ) && in TEST_F()
1474 nError1 = ::osl::FileBase::searchFileURL( aUserDirectoryURL, aSystemPathList, aUStr ); in TEST_F()
1476 ASSERT_TRUE(( osl::FileBase::E_None == nError1 ) && in TEST_F()
1483 nError1 = ::osl::FileBase::searchFileURL( aUserDirectoryURL, aSystemPathList, aUStr ); in TEST_F()
1485 ASSERT_TRUE(( osl::FileBase::E_None == nError1 ) && in TEST_F()
1491 nError1 = ::osl::FileBase::searchFileURL( aUserDirectoryURL, aNullURL, aUStr ); in TEST_F()
1493 ASSERT_TRUE(( osl::FileBase::E_None == nError1 ) && in TEST_F()
1506 ::osl::FileBase::RC nError;
1523 … ASSERT_TRUE(( osl::FileBase::E_None == nError )) << "test for getTempDirURL function: excution"; in TEST_F()
1543 ::osl::FileBase::RC nError1, nError2;
1572 ::osl::File testFile( *pUStr_FileURL ); in TEST_F()
1575 if ( osl::FileBase::E_EXIST == nError2 ) { in TEST_F()
1580 …ASSERT_TRUE(( osl::FileBase::E_None == nError1 ) && ( pHandle != NULL ) && ( osl::FileBase::E_EX… in TEST_F()
1587 ::osl::File testFile( *pUStr_FileURL ); in TEST_F()
1590 ASSERT_TRUE(( osl::FileBase::E_None == nError1 ) && ( pHandle != NULL ) && in TEST_F()
1591 …( osl::FileBase::E_EXIST == nError2 )) << "createTempFile function: create a temp file, but it doe… in TEST_F()
1594 if ( osl::FileBase::E_EXIST == nError2 ) { in TEST_F()
1611 …ASSERT_TRUE(( ::osl::FileBase::E_None == nError1 ) &&( sal_True == bOK )) << "test for createTempF… in TEST_F()
1617 ::osl::File testFile( *pUStr_FileURL ); in TEST_F()
1620 …ASSERT_TRUE(( osl::FileBase::E_None == nError1 ) && ( osl::FileBase::E_EXIST == nError2 ) &&( sal_… in TEST_F()
1642 ::osl::VolumeDevice aVolumeDevice;
1644 ::osl::FileBase::RC nError1, nError2;
1659 ::osl::VolumeDevice aVolumeDevice1;
1661 ASSERT_TRUE(( osl::FileBase::E_None != aVolumeDevice1.automount( ) ) &&
1662 ( osl::FileBase::E_None != aVolumeDevice1.unmount( ) ) &&
1668 ::osl::VolumeInfo aVolumeInfo( VolumeInfoMask_Attributes );
1669 nError1 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo );
1670 ASSERT_TRUE( osl::FileBase::E_None == nError1 );
1672 ::osl::VolumeDevice aVolumeDevice1( aVolumeInfo.getDeviceHandle( ) );
1679 ::osl::VolumeInfo aVolumeInfo( VolumeInfoMask_Attributes );
1680 nError1 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo );
1681 ASSERT_TRUE( osl::FileBase::E_None == nError1 );
1683 ::osl::VolumeDevice aVolumeDevice1 = aVolumeInfo.getDeviceHandle( );
1695 ::osl::VolumeDevice aVolumeDevice;
1697 ::osl::FileBase::RC nError1, nError2;
1713 ::osl::VolumeDevice aVolumeDevice1;
1716 …ASSERT_TRUE(( osl::FileBase::E_INVAL == nError1 )) << "test for automount function: invalid parame…
1721 ::osl::VolumeInfo aVolumeInfo( VolumeInfoMask_Attributes );
1722 nError1 = ::osl::Directory::getVolumeInfo( aVolURL2, aVolumeInfo );
1723 ASSERT_TRUE( osl::FileBase::E_None == nError1 );
1725 ::osl::VolumeDevice aVolumeDevice1( aVolumeInfo.getDeviceHandle( ) );
1728 …ASSERT_TRUE(( osl::FileBase::E_None == nError1 )) << "test for automount function: this test is no…
1749 ::osl::FileBase::RC nError1, nError2;
1751 ::osl::VolumeDevice aVolumeDevice1;
1766 ::osl::VolumeInfo aVolumeInfo( 0 ); in TEST_F()
1767 nError1 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo ); in TEST_F()
1768 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1781 ::osl::VolumeInfo aVolumeInfo( VolumeInfoMask_TotalSpace | in TEST_F()
1784 nError1 = ::osl::Directory::getVolumeInfo( aVolURL4, aVolumeInfo ); in TEST_F()
1785 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1806 ::osl::VolumeInfo aVolumeInfo1( mask1 ); in TEST_F()
1807 nError1 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo1 ); in TEST_F()
1809 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1815 ::osl::VolumeInfo aVolumeInfo2( mask2 ); in TEST_F()
1816 nError2 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo2 ); in TEST_F()
1818 ASSERT_TRUE( osl::FileBase::E_None == nError2 ); in TEST_F()
1833 ::osl::VolumeDevice aVolumeDevice;
1835 ::osl::FileBase::RC nError1, nError2;
1852 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
1853 nError1 = ::osl::Directory::getVolumeInfo( aVolURL4, aVolumeInfo ); in TEST_F()
1854 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1865 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
1866 nError1 = ::osl::Directory::getVolumeInfo( aVolURL4, aVolumeInfo ); in TEST_F()
1867 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1880 ::osl::VolumeDevice aVolumeDevice1; in TEST_F()
1882 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
1883 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
1884 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1887 nError1 = ::osl::Directory::getVolumeInfo( aVolURL2, aVolumeInfo ); in TEST_F()
1888 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1901 ::osl::VolumeDevice aVolumeDevice;
1903 ::osl::FileBase::RC nError1, nError2;
1909 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
1910 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
1911 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1921 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
1922 nError1 = ::osl::Directory::getVolumeInfo( aVolURL4, aVolumeInfo ); in TEST_F()
1923 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1942 ::osl::FileBase::RC nError1, nError2;
1948 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
1949 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
1950 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1959 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
1960 nError1 = ::osl::Directory::getVolumeInfo( aVolURL2, aVolumeInfo ); in TEST_F()
1961 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1974 ::osl::FileBase::RC nError1;
1980 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
1981 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
1982 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1991 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
1992 nError1 = ::osl::Directory::getVolumeInfo( aVolURL6, aVolumeInfo ); in TEST_F()
1993 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2006 ::osl::FileBase::RC nError1;
2012 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2013 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2014 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2023 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2024 nError1 = ::osl::Directory::getVolumeInfo( aVolURL2, aVolumeInfo ); in TEST_F()
2025 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2038 ::osl::FileBase::RC nError1;
2044 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2045 nError1 = ::osl::Directory::getVolumeInfo( aVolURL2, aVolumeInfo ); in TEST_F()
2046 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2055 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2056 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2057 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2070 ::osl::FileBase::RC nError1;
2076 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2077 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2078 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2087 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2088 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2089 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2102 ::osl::FileBase::RC nError1;
2108 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2109 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2110 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2121 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2122 nError1 = ::osl::Directory::getVolumeInfo( aVolURL3, aVolumeInfo ); in TEST_F()
2123 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2149 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2150 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2151 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2171 ::osl::FileBase::RC nError1;
2177 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2178 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2179 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2190 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2191 nError1 = ::osl::Directory::getVolumeInfo( aVolURL3, aVolumeInfo ); in TEST_F()
2192 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2217 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2218 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2219 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2239 ::osl::FileBase::RC nError1;
2245 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2246 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2247 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2258 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2259 nError1 = ::osl::Directory::getVolumeInfo( aVolURL3, aVolumeInfo ); in TEST_F()
2260 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2286 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2287 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2288 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2308 ::osl::FileBase::RC nError1;
2314 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2315 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2316 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2335 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2336 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2337 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2357 ::osl::FileBase::RC nError1;
2363 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2364 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2365 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2377 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2378 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2379 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2400 ::osl::FileBase::RC nError1;
2406 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2407 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2408 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2427 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
2428 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2429 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2450 ::osl::FileBase::RC nError1;
2455 ::osl::VolumeInfo aVolumeInfo( VolumeInfoMask_Attributes ); in TEST_F()
2456 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2457 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2459 ::osl::VolumeDevice aVolumeDevice1( aVolumeInfo.getDeviceHandle( ) ); in TEST_F()
2483 ::osl::FileBase::RC nError1, nError2;
2484 ::osl::DirectoryItem rItem;
2496 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
2498 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
2520 ::osl::FileStatus rFileStatus( FileStatusMask_All ); in TEST_F()
2522 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2530 ::osl::FileStatus rFileStatus( 0 ); in TEST_F()
2532 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2546 ::osl::Directory *pDir;
2547 ::osl::DirectoryItem rItem_file, rItem_link;
2559 ::osl::FileBase::RC nError1 = pDir->open( ); in SetUp()
2560 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
2562 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
2567 ::osl::FileBase::RC nError1 = pDir->close( ); in TearDown()
2569 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << errorToStr(nError1).pData; in TearDown()
2576 void check_FileStatus(::osl::FileStatus const& _aStatus) in check_FileStatus()
2618 ::osl::FileStatus rFileStatus( mask ); in TEST_F()
2619 ::osl::FileBase::RC nError1 = rItem_file.getFileStatus( rFileStatus ); in TEST_F()
2620 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2633 ::osl::FileStatus rFileStatus( mask_file ); in TEST_F()
2634 ::osl::FileBase::RC nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem_file ); in TEST_F()
2637 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << errorToStr(nError1).pData; in TEST_F()
2676 ::osl::Directory testDirectory( aTmpName3 ); in TEST_F()
2677 ::osl::FileBase::RC nError1 = testDirectory.open( ); in TEST_F()
2682 if (::osl::FileBase::E_None == nError1) { in TEST_F()
2684 ::osl::FileStatus rFileStatus( mask_link ); in TEST_F()
2711 ::osl::FileStatus rFileStatus_all( mask_file_all ); in TEST_F()
2712 ::osl::FileBase::RC nError1 = rItem_file.getFileStatus( rFileStatus_all ); in TEST_F()
2713 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2720 ::osl::FileStatus rFileStatus_val( mask_file_val ); in TEST_F()
2722 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2737 ::osl::FileBase::RC nError1, nError2;
2739 ::osl::DirectoryItem m_aItem_1, m_aItem_2, m_aVolumeItem, m_aFifoItem;
2740 ::osl::DirectoryItem m_aLinkItem, m_aSocketItem, m_aSpecialItem;
2757 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "open aTmpName3 failed!"; in SetUp()
2760 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "get first item failed!"; in SetUp()
2763 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "get second item failed!"; in SetUp()
2779 void check_FileType(osl::FileStatus const& _rFileStatus ) in check_FileType()
2788 osl::FileStatus::Type eType = _rFileStatus.getFileType( ); in check_FileType()
2793 bOK = ( eType == osl::FileStatus::Regular ); in check_FileType()
2798 bOK = ( eType == ::osl::FileStatus::Directory ); in check_FileType()
2810 ::osl::FileStatus rFileStatus( FileStatusMask_Type | FileStatusMask_FileName ); in TEST_F()
2812 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "getFileStatus failed"; in TEST_F()
2819 ::osl::FileStatus rFileStatus( FileStatusMask_Type | FileStatusMask_FileName ); in TEST_F()
2822 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2830 ::osl::FileStatus rFileStatus( FileStatusMask_Type ); in TEST_F()
2832 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2836 osl::FileStatus::Type eType = rFileStatus.getFileType( ); in TEST_F()
2838 …ASSERT_TRUE(( eType == ::osl::FileStatus::Volume )) << "test for getFileType function: Volume, it … in TEST_F()
2855 ::osl::FileBase::getFileURLFromSystemPath( aFifoSys, aFifoURL ); in TEST_F()
2857 nError1 = ::osl::DirectoryItem::get( aFifoURL, m_aFifoItem ); in TEST_F()
2858 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "get item failed!"; in TEST_F()
2861 ::osl::FileStatus rFileStatus( FileStatusMask_Type ); in TEST_F()
2863 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "get Status failed!"; in TEST_F()
2866 nError1 = ::osl::File::remove( aFifoURL ); in TEST_F()
2867 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "remove file failed!"; in TEST_F()
2871 osl::FileStatus::Type eType = rFileStatus.getFileType( ); in TEST_F()
2873 …ASSERT_TRUE(( eType == ::osl::FileStatus::Fifo )) << "test for getFileType function: Fifo, Solaris… in TEST_F()
2925 nError1 = ::osl::DirectoryItem::get( aTypeURL2, m_aSpecialItem ); in TEST_F()
2926 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2929 ::osl::FileStatus rFileStatus( FileStatusMask_Type ); in TEST_F()
2931 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2935 osl::FileStatus::Type eType = rFileStatus.getFileType( ); in TEST_F()
2938 …ASSERT_TRUE(( eType == ::osl::FileStatus::Special )) << "test for getFileType function: Special, S… in TEST_F()
2951 ::osl::FileBase::RC nError;
2952 ::osl::DirectoryItem rItem, rItem_hidden;
2961 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in SetUp()
2967 nError = ::osl::DirectoryItem::get( aTypeURL_Hid, rItem_hidden ); in SetUp()
2984 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in TEST_F()
3004 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in TEST_F()
3019 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in TEST_F()
3037 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in TEST_F()
3048 nError = ::osl::DirectoryItem::get( aUserHiddenFileURL, rItem_hidden ); in TEST_F()
3051 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in TEST_F()
3067 ::osl::FileBase::RC nError;
3068 ::osl::DirectoryItem rItem;
3077 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in SetUp()
3095 ::osl::FileStatus rFileStatus( FileStatusMask_AccessTime ); in TEST_F()
3117 ::osl::FileBase::RC nError;
3118 ::osl::DirectoryItem rItem;
3136 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in TEST_F()
3138 ::osl::FileStatus rFileStatus( FileStatusMask_ModifyTime ); in TEST_F()
3164 ::osl::FileBase::RC nError;
3165 ::osl::DirectoryItem rItem;
3174 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in SetUp()
3186 ::osl::FileStatus rFileStatus( FileStatusMask_FileSize ); in TEST_F()
3197 ::osl::File testfile( aTypeURL ); in TEST_F()
3199 ASSERT_TRUE( ::osl::FileBase::E_None == nError ); in TEST_F()
3201 ASSERT_TRUE( ::osl::FileBase::E_None == nError ); in TEST_F()
3203 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in TEST_F()
3205 ::osl::FileStatus rFileStatus( FileStatusMask_FileSize ); in TEST_F()
3221 ::osl::FileBase::RC nError;
3222 ::osl::DirectoryItem rItem;
3231 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in SetUp()
3243 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in TEST_F()
3260 ::osl::FileBase::RC nError;
3261 ::osl::DirectoryItem rItem;
3268 nError = ::osl::DirectoryItem::get( aTmpName6, rItem ); in SetUp()
3280 ::osl::FileStatus rFileStatus( FileStatusMask_FileURL ); in TEST_F()
3297 ::osl::FileBase::RC nError;
3298 ::osl::DirectoryItem rItem;
3333 nError = ::osl::DirectoryItem::get( aLnkURL1, rItem ); in TEST_F()
3336 ::osl::FileStatus rFileStatus( FileStatusMask_LinkTargetURL ); in TEST_F()
3391 ::osl::File testFile( aTmpName4 ); in TEST_F()
3393 ::osl::FileBase::RC nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3394 ::osl::FileBase::RC nError2 = testFile.close( ); in TEST_F()
3395 …ASSERT_TRUE(( ::osl::FileBase::E_None == nError1 ) && ( ::osl::FileBase::E_None == nError2 )) << "… in TEST_F()
3400 ::osl::File testFile( aTmpName5 ); in TEST_F()
3404 ::osl::FileBase::RC nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3405 ::osl::FileBase::RC nError2 = testFile.write( buffer, 30, nCount ); in TEST_F()
3408 …ASSERT_TRUE(( ::osl::FileBase::E_None == nError1 ) && ( ::osl::FileBase::E_None == nError2 )) << "… in TEST_F()
3418 ::osl::FileBase::RC nError1, nError2, nError3;
3440 ::osl::File testFile( aTmpName4 ); in TEST_F()
3444 ASSERT_TRUE(::osl::FileBase::E_None == nError2) << "close error"; in TEST_F()
3446 … ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "test for open function: open a regular file"; in TEST_F()
3451 ::osl::File testFile( aTmpName3 ); in TEST_F()
3460 ::osl::File testFile( aCanURL1 ); in TEST_F()
3471 ::osl::File testFile( aTestFile ); in TEST_F()
3486 ::osl::File testFile( aTmpName4 ); in TEST_F()
3495 ::osl::File testFile( aCanURL1 ); in TEST_F()
3502 ::osl::FileBase::RC nError4 = testFile.setPos( Pos_Absolut, 0 ); in TEST_F()
3503 ASSERT_TRUE( ::osl::FileBase::E_None == nError4 ); in TEST_F()
3506 ::osl::FileBase::RC nError5 = testFile.close( ); in TEST_F()
3507 ASSERT_TRUE( ::osl::FileBase::E_None == nError5 ); in TEST_F()
3508 ::osl::FileBase::RC nError6 = testFile.remove( aCanURL1 ); in TEST_F()
3509 ASSERT_TRUE( ::osl::FileBase::E_None == nError6 ); in TEST_F()
3511 ASSERT_TRUE(( ::osl::FileBase::E_None == nError1 ) && in TEST_F()
3512 ( ::osl::FileBase::E_None == nError2 ) && in TEST_F()
3513 ( ::osl::FileBase::E_None == nError3 ) && in TEST_F()
3525 ::osl::FileBase::RC nError1, nError2, nError3;
3546 ::osl::File testFile( aTmpName4 ); in TEST_F()
3549 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3553 …ASSERT_TRUE(::osl::FileBase::E_None == nError2) << "test for close function: close a regular file"; in TEST_F()
3558 ::osl::File testFile( aTmpName4 ); in TEST_F()
3561 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3567 ASSERT_TRUE(( ::osl::FileBase::E_None == nError2 ) && in TEST_F()
3568 …( ::osl::FileBase::E_None != nError3 )) << "test for close function: manipulate a file after it ha… in TEST_F()
3578 ::osl::FileBase::RC nError1;
3590 ::osl::File testFile( aTmpName4 ); in SetUp()
3593 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3595 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3597 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3610 ::osl::File testFile( aTmpName4 ); in TEST_F()
3614 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3616 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3618 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3620 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3627 ::osl::File testFile( aTmpName4 ); in TEST_F()
3631 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3633 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3635 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3637 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3639 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3646 ::osl::File testFile( aTmpName4 ); in TEST_F()
3650 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3653 ASSERT_TRUE(::osl::FileBase::E_INVAL == nError1) << "should return error"; in TEST_F()
3656 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3658 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3660 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3672 ::osl::FileBase::RC nError1;
3684 ::osl::File testFile( aTmpName4 ); in SetUp()
3687 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3689 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3691 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3704 ::osl::File testFile( aTmpName4 ); in TEST_F()
3708 ASSERT_TRUE( ::osl::FileBase::E_INVAL == nError1 ); in TEST_F()
3711 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3714 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3716 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3719 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3731 ::osl::FileBase::RC nError1;
3743 ::osl::File testFile( aTmpName4 ); in SetUp()
3746 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3748 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3750 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3763 ::osl::File testFile( aTmpName4 ); in TEST_F()
3769 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3772 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3774 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3777 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3784 ::osl::File testFile( aTmpName4 ); in TEST_F()
3790 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3793 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3798 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3800 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3803 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3806 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3818 ::osl::FileBase::RC nError1;
3830 ::osl::File testFile( aTmpName4 ); in SetUp()
3833 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3835 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3837 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3850 ::osl::File testFile( aTmpName4 ); in TEST_F()
3857 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3861 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3865 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3867 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3870 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3877 ::osl::File testFile( aTmpName4 ); in TEST_F()
3884 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3888 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3892 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3894 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3897 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3936 ::osl::FileBase::RC nError1;
3948 ::osl::File testFile( aTmpName4 ); in SetUp()
3951 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3953 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3955 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3968 ::osl::File testFile( aTmpName4 ); in TEST_F()
3974 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3977 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3979 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3982 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3989 ::osl::File testFile( aTmpName4 ); in TEST_F()
3995 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3998 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4000 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4002 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4005 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4017 ::osl::FileBase::RC nError1;
4037 ::osl::File testFile( aTmpName6 ); in TEST_F()
4042 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4046 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4049 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4052 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4054 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4057 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4071 ::osl::FileBase::RC nError1;
4083 ::osl::File testFile( aTmpName6 ); in SetUp()
4090 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4095 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4099 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4111 ::osl::File testFile( aTmpName6 ); in TEST_F()
4114 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4116 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4118 ASSERT_TRUE(( ::osl::FileBase::E_None == nError1 ) && in TEST_F()
4124 ::osl::File testFile( aTmpName6 ); in TEST_F()
4129 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4133 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4136 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4149 ::osl::FileBase::RC nError1;
4161 ::osl::File testFile( aTmpName4 ); in SetUp()
4164 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4166 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4168 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4181 ::osl::File testFile( aTmpName6 ); in TEST_F()
4184 nError1 = ::osl::File::copy( aTmpName4, aTmpName6 ); in TEST_F()
4185 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4190 …ASSERT_TRUE(::osl::FileBase::E_EXIST == nError1) << "test for copy function: copy file to upper di… in TEST_F()
4196 nError1 = ::osl::File::copy( aTmpName4, aTmpName3 ); in TEST_F()
4198 …ASSERT_TRUE(( ::osl::FileBase::E_ISDIR == nError1 ) ||( ::osl::FileBase::E_ACCES == nError1 )) << … in TEST_F()
4204 nError1 = ::osl::File::copy( aTmpName4, aTmpName7 ); in TEST_F()
4206 nError1 = ::osl::FileBase::E_ACCES; /// for Windows, c:/ is writtenable any way. in TEST_F()
4209 …ASSERT_TRUE(::osl::FileBase::E_ACCES == nError1) << "test for copy function: copy to an illigal pl… in TEST_F()
4215 nError1 = ::osl::File::copy( aTmpName6, aTmpName4 ); in TEST_F()
4217 …ASSERT_TRUE(::osl::FileBase::E_NOENT == nError1) << "test for copy function: copy a not exist file… in TEST_F()
4223 nError1 = ::osl::File::copy( aTmpName6, aSysPath1 ); in TEST_F()
4225 …ASSERT_TRUE(::osl::FileBase::E_INVAL == nError1) << "test for copy function: copy a file using sys… in TEST_F()
4236 nError1 = ::osl::File::copy( aTmpName6, aTmpName4 ); in TEST_F()
4246 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4256 …ASSERT_TRUE(::osl::FileBase::E_INVAL == nError1) << "test for copy function: source file is link f… in TEST_F()
4267 ::osl::FileBase::RC nError1, nError2;
4279 ::osl::File testFile( aTmpName4 ); in SetUp()
4282 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4284 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4286 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4300 nError1 = ::osl::File::move( aTmpName4, aCanURL1 ); in TEST_F()
4301 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4303 ::osl::File testFile( aCanURL1 ); in TEST_F()
4307 …ASSERT_TRUE(::osl::FileBase::E_EXIST == nError2) << "test for move function: rename file to anothe… in TEST_F()
4313 nError1 = ::osl::File::move( aTmpName4, aTmpName3 ); in TEST_F()
4315 …ASSERT_TRUE(( ::osl::FileBase::E_ACCES == nError1 || ::osl::FileBase::E_ISDIR == nError1 ) ||( ::o… in TEST_F()
4321 nError1 = ::osl::File::move( aTmpName4, aTmpName7 ); in TEST_F()
4323 nError1 = ::osl::FileBase::E_ACCES; /// for Windows, c:/ is writtenable any way. in TEST_F()
4327 …ASSERT_TRUE(::osl::FileBase::E_ACCES == nError1) << "test for move function: move to an illigal pl… in TEST_F()
4333 nError1 = ::osl::File::move( aTmpName6, aTmpName4 ); in TEST_F()
4335 …ASSERT_TRUE(::osl::FileBase::E_NOENT == nError1) << "test for move function: move a not exist file… in TEST_F()
4341 nError1 = ::osl::File::move( aTmpName6, aSysPath1 ); in TEST_F()
4343 …ASSERT_TRUE(::osl::FileBase::E_INVAL == nError1) << "test for move function: move a file using sys… in TEST_F()
4350 nError1 = ::osl::File::move( aTmpName6, aTmpName4 ); in TEST_F()
4352 nError2 = ::osl::File::move( aTmpName4, aTmpName6 ); in TEST_F()
4357 nError1 = ::osl::FileBase::E_NOTDIR; in TEST_F()
4358 nError2 = ::osl::FileBase::E_ISDIR; in TEST_F()
4360 …ASSERT_TRUE(::osl::FileBase::E_NOTDIR == nError1 && ::osl::FileBase::E_ISDIR == nError2) << "test … in TEST_F()
4368 nError1 = ::osl::File::move( aTmpName3, aTmpName8 ); in TEST_F()
4370 nError2 = ::osl::Directory::create( aTmpName8 ); in TEST_F()
4371 ::osl::File::move( aTmpName8, aTmpName3 ); in TEST_F()
4374 ASSERT_TRUE((::osl::FileBase::E_None == nError1 ) && in TEST_F()
4375 …(::osl::FileBase::E_EXIST == nError2 )) << "test for move function: move a directory to an exist f… in TEST_F()
4381 …ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "oldpath and newpath are not on the same filesy… in TEST_F()
4395 nError1 = ::osl::File::move( aTmpName3, newName ); in TEST_F()
4400 …ASSERT_TRUE(::osl::FileBase::E_None != nError1) << "test for move function: move a directory to it… in TEST_F()
4411 ::osl::FileBase::RC nError1, nError2;
4423 ::osl::File testFile( aTmpName4 ); in SetUp()
4426 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4428 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4430 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4444 nError1 = ::osl::File::remove( aTmpName4 ); in TEST_F()
4446 ::osl::File testFile( aTmpName4 ); in TEST_F()
4449 ASSERT_TRUE(( ::osl::FileBase::E_None == nError1 ) && in TEST_F()
4450 … ( ::osl::FileBase::E_EXIST != nError2 )) << "test for remove function: remove a file"; in TEST_F()
4456 nError1 = ::osl::File::remove( aTmpName6 ); in TEST_F()
4458 …ASSERT_TRUE(( ::osl::FileBase::E_NOENT == nError1 )) << "test for remove function: remove a file n… in TEST_F()
4464 nError1 = ::osl::File::remove( aSysPath2 ); in TEST_F()
4466 …ASSERT_TRUE(( ::osl::FileBase::E_INVAL == nError1 )) << "test for remove function: removing a file… in TEST_F()
4472 nError1 = ::osl::File::remove( aTmpName3 ); in TEST_F()
4474 …ASSERT_TRUE(( ::osl::FileBase::E_ISDIR == nError1 ) || ( ::osl::FileBase::E_ACCES == nError1 )) <<… in TEST_F()
4484 ::osl::FileBase::RC nError1, nError2;
4485 ::osl::DirectoryItem rItem, rItem_hidden;
4507 …nError2 = ::osl::File::setAttributes( aTmpName6, Attribute_ReadOnly | Attribute_GrpRead | Attribut… in TEST_F()
4509 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4512 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in TEST_F()
4520 nError2 = ::osl::File::setAttributes( aTmpName6, Attribute_ReadOnly ); in TEST_F()
4522 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4525 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in TEST_F()
4546 nError2 = ::osl::File::setAttributes( aTmpName6, Attribute_Hidden); in TEST_F()
4549 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4552 ::osl::FileStatus rFileStatus( FileStatusMask_Attributes ); in TEST_F()
4571 ::osl::FileBase::RC nError1, nError2;
4572 ::osl::DirectoryItem rItem;
4605 nError2 = ::osl::File::setTime( aTmpName6, *pTV_current, *pTV_current, *pTV_current ); in TEST_F()
4609 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4612 ::osl::FileStatus rFileStatus( FileStatusMask_AccessTime ); in TEST_F()
4617 ::osl::FileStatus rFileStatus1( FileStatusMask_CreationTime ); in TEST_F()
4622 ::osl::FileStatus rFileStatus2( FileStatusMask_ModifyTime ); in TEST_F()
4647 ::osl::FileBase::RC nError1, nError2;
4648 ::osl::DirectoryItem rItem;
4670 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4684 …nError2 = ::osl::File::setAttributes( aTmpName6, Attribute_ReadOnly | Attribute_GrpRead | Attribut… in TEST_F()
4711 ::osl::FileBase::RC nError1, nError2;
4730 ::osl::File testFile( aTmpName6 ); in TEST_F()
4731 ::osl::DirectoryItem rItem; //constructor in TEST_F()
4734 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4737 …ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "test for ctors function: initialize a new inst… in TEST_F()
4747 ::osl::FileBase::RC nError1, nError2;
4766 ::osl::DirectoryItem rItem; //constructor in TEST_F()
4768 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4771 ::osl::DirectoryItem copyItem( rItem ); //copy constructor in TEST_F()
4772 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in TEST_F()
4781 ::osl::DirectoryItem rItem; //constructor in TEST_F()
4783 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4786 ::osl::DirectoryItem copyItem; in TEST_F()
4788 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in TEST_F()
4802 ::osl::FileBase::RC nError1, nError2;
4821 ::osl::DirectoryItem rItem; //constructor in TEST_F()
4828 ::osl::DirectoryItem rItem; //constructor in TEST_F()
4830 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4843 ::osl::FileBase::RC nError1, nError2;
4862 ::osl::DirectoryItem rItem; //constructor in TEST_F()
4864 nError2 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4867 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in TEST_F()
4871 ASSERT_TRUE(( ::osl::FileBase::E_None == nError2 ) && in TEST_F()
4877 ::osl::DirectoryItem rItem; in TEST_F()
4879 nError1 = ::osl::DirectoryItem::get( aSysPath1, rItem ); in TEST_F()
4886 ::osl::DirectoryItem rItem; in TEST_F()
4888 nError1 = ::osl::DirectoryItem::get( aTmpName3, rItem ); in TEST_F()
4900 ::osl::FileBase::RC nError1, nError2;
4921 ::osl::DirectoryItem rItem; //constructor in TEST_F()
4923 nError1 = ::osl::DirectoryItem::get( aTmpName4, rItem ); in TEST_F()
4924 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4927 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in TEST_F()
4930 ASSERT_TRUE(( ::osl::FileBase::E_None == nError2 ) && in TEST_F()
4936 ::osl::DirectoryItem rItem; //constructor in TEST_F()
4938 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4941 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in TEST_F()
4944 …ASSERT_TRUE(( ::osl::FileBase::E_INVAL == nError2 )) << "test for getFileStatus function: file not… in TEST_F()
4949 ::osl::DirectoryItem rItem; //constructor in TEST_F()
4951 nError1 = ::osl::DirectoryItem::get( aTmpName3, rItem ); in TEST_F()
4952 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4955 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in TEST_F()
4958 ASSERT_TRUE(( ::osl::FileBase::E_None == nError2 ) && in TEST_F()
4977 ::osl::FileBase::RC nError1, nError2;
4999 ::osl::Directory testDirectory( aTmpName3 ); //constructor in TEST_F()
5003 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5006 ASSERT_TRUE( ::osl::FileBase::E_None == nError2 ); in TEST_F()
5008 ASSERT_TRUE(( ::osl::FileBase::E_None == nError1 ) && in TEST_F()
5009 …( ::osl::FileBase::E_None == nError2 )) << "test for ctors function: create an instance and check … in TEST_F()
5014 ::osl::Directory testDirectory( aTmpName9 ); //constructor in TEST_F()
5018 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5021 ASSERT_TRUE( ::osl::FileBase::E_None == nError2 ); in TEST_F()
5023 ASSERT_TRUE(( ::osl::FileBase::E_None == nError1 ) && in TEST_F()
5024 …( ::osl::FileBase::E_None == nError2 )) << "test for ctors function: relative URL, :-), it is also… in TEST_F()
5034 ::osl::FileBase::RC nError1, nError2;
5055 ::osl::Directory testDirectory( aTmpName3 ); //constructor in TEST_F()
5065 ( ::osl::FileBase::E_None == nError1 ) && in TEST_F()
5066 …( ::osl::FileBase::E_None == nError2 )) << "test for open function: open a directory and check for… in TEST_F()
5071 ::osl::Directory testDirectory( aTmpName6 ); //constructor in TEST_F()
5075 if ( ::osl::FileBase::E_None == nError1 ) in TEST_F()
5078 ASSERT_TRUE( ::osl::FileBase::E_None == nError2 ); in TEST_F()
5081 …ASSERT_TRUE(( ::osl::FileBase::E_NOENT == nError1 )) << "test for open function: open a file that … in TEST_F()
5086 ::osl::Directory testDirectory( aUserDirectorySys ); //constructor in TEST_F()
5090 if ( ::osl::FileBase::E_None == nError1 ) in TEST_F()
5093 ASSERT_TRUE( ::osl::FileBase::E_None == nError2 ); in TEST_F()
5096 …ASSERT_TRUE(( ::osl::FileBase::E_INVAL == nError1 )) << "test for open function: using system path… in TEST_F()
5101 ::osl::Directory testDirectory( aTmpName4 ); //constructor in TEST_F()
5105 if ( ::osl::FileBase::E_None == nError1 ) in TEST_F()
5108 ASSERT_TRUE( ::osl::FileBase::E_None == nError2 ); in TEST_F()
5111 …ASSERT_TRUE(( ::osl::FileBase::E_NOTDIR == nError1 ) || ( ::osl::FileBase::E_ACCES )) << "test for… in TEST_F()
5121 ::osl::FileBase::RC nError1, nError2;
5142 ::osl::Directory testDirectory( aTmpName3 ); //constructor in TEST_F()
5156 ::osl::Directory testDirectory( aTmpName3 ); //constructor in TEST_F()
5171 ::osl::FileBase::RC nError1, nError2;
5190 ::osl::Directory testDirectory( aTmpName3 ); //constructor in TEST_F()
5204 ::osl::Directory testDirectory( aTmpName3 ); //constructor in TEST_F()
5209 …ASSERT_TRUE(( ::osl::FileBase::E_BADF == nError1 )) << "test for isOpen function: close a not open… in TEST_F()
5219 ::osl::FileBase::RC nError1, nError2;
5220 ::osl::DirectoryItem rItem;
5247 ::osl::Directory testDirectory( aTmpName3 ); //constructor in TEST_F()
5251 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5254 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5263 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5266 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in TEST_F()
5270 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5276 ASSERT_TRUE(( ::osl::FileBase::E_None == nError2 ) && in TEST_F()
5282 ::osl::Directory testDirectory( aTmpName6 ); //constructor in TEST_F()
5287 …ASSERT_TRUE(( ::osl::FileBase::E_NOENT == nError1 )) << "test for reset function: reset a non exis… in TEST_F()
5293 ::osl::Directory testDirectory( aTmpName4 ); //constructor in TEST_F()
5298 …ASSERT_TRUE(( ::osl::FileBase::E_NOTDIR == nError1 ) || ( ::osl::FileBase::E_NOENT == nError1 )) <… in TEST_F()
5303 ::osl::Directory testDirectory( aUserDirectorySys ); //constructor in TEST_F()
5308 …ASSERT_TRUE(( ::osl::FileBase::E_INVAL == nError1 )) << "test for reset function: use a system pat… in TEST_F()
5318 ::osl::FileBase::RC nError1, nError2;
5319 ::osl::DirectoryItem rItem;
5347 ::osl::Directory testDirectory( aTmpName3 ); //constructor in TEST_F()
5351 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5358 ::osl::FileStatus rFileStatus( FileStatusMask_FileName ); in TEST_F()
5363 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5365 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5378 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5385 ::osl::Directory testDirectory( aTmpName3 ); //constructor in TEST_F()
5388 …ASSERT_TRUE(( ::osl::FileBase::E_INVAL == nError1 )) << "test for getNextItem function: retrieve a… in TEST_F()
5393 ::osl::Directory testDirectory( aTmpName3 ); //constructor in TEST_F()
5397 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5406 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5408 …ASSERT_TRUE(( ::osl::FileBase::E_NOENT == nError2 )) << "test for getNextItem function: retrieve 4… in TEST_F()
5426 ::osl::Directory testDirectory( aTmpName3 ); in TEST_F()
5434 if (::osl::FileBase::E_None == nError1) { in TEST_F()
5435 ::osl::FileStatus rFileStatus( FileStatusMask_FileName | FileStatusMask_Type ); in TEST_F()
5462 ::osl::FileBase::RC nError1, nError2;
5467 void checkValidMask(osl::VolumeInfo const& _aVolumeInfo, sal_Int32 _nMask) in checkValidMask()
5476 ASSERT_TRUE(( osl::FileBase::E_None == nError1 ) && in checkValidMask()
5533 ::osl::VolumeInfo aVolumeInfo( _nMask ); in checkVolumeInfo()
5535 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in checkVolumeInfo()
5589 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
5597 nError1 = ::osl::Directory::getVolumeInfo( aRootSys, aVolumeInfo ); in TEST_F()
5599 …ASSERT_TRUE(( osl::FileBase::E_INVAL == nError1 )) << "test for getVolumeInfo function: use system… in TEST_F()
5605 ::osl::VolumeInfo aVolumeInfo( mask ); in TEST_F()
5607 nError1 = ::osl::Directory::getVolumeInfo( aTmpName3, aVolumeInfo ); in TEST_F()
5611 …ASSERT_TRUE(( osl::FileBase::E_NOENT == nError1 )) << "test for getVolumeInfo function: non-existe… in TEST_F()
5622 ::osl::FileBase::RC nError1, nError2;
5628 nError1 = ::osl::Directory::create( aTmpName3 ); in TEST_F()
5630 nError2 = ::osl::Directory::create( aTmpName3 ); in TEST_F()
5634 ASSERT_TRUE(( osl::FileBase::E_None == nError1 ) && in TEST_F()
5635 …( osl::FileBase::E_EXIST== nError2 )) << "test for create function: create a directory and check i… in TEST_F()
5641 nError1 = ::osl::Directory::create( aTmpName7 ); in TEST_F()
5643 nError1 = osl::FileBase::E_ACCES; /// in Windows, you can create directory in c:/ any way. in TEST_F()
5647 …ASSERT_TRUE(( osl::FileBase::E_ACCES == nError1 )) << "test for create function: create a director… in TEST_F()
5653 nError1 = ::osl::Directory::create( aSysPath1 ); in TEST_F()
5655 …ASSERT_TRUE(( osl::FileBase::E_INVAL == nError1 )) << "test for create function: create a director… in TEST_F()
5665 ::osl::FileBase::RC nError1, nError2;
5671 nError1 = ::osl::Directory::create( aTmpName3 ); in TEST_F()
5672 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5674 nError1 = ::osl::Directory::remove( aTmpName3 ); in TEST_F()
5676 ::osl::Directory rDirectory( aTmpName3 ); in TEST_F()
5679 ASSERT_TRUE(( osl::FileBase::E_None == nError1 ) && in TEST_F()
5680 …( osl::FileBase::E_NOENT == nError2 )) << "test for remove function: remove a directory and check … in TEST_F()
5686 nError1 = ::osl::Directory::create( aTmpName3 ); in TEST_F()
5687 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5689 nError1 = ::osl::Directory::remove( aSysPath3 ); in TEST_F()
5691 ::osl::Directory rDirectory( aTmpName3 ); in TEST_F()
5693 if ( osl::FileBase::E_NOENT != nError2 ) in TEST_F()
5694 ::osl::Directory::remove( aTmpName3 ); in TEST_F()
5696 …ASSERT_TRUE(( osl::FileBase::E_INVAL == nError1 )) << "test for remove function: remove a director… in TEST_F()
5702 nError1 = ::osl::Directory::remove( aTmpName6 ); in TEST_F()
5704 …ASSERT_TRUE(( osl::FileBase::E_NOENT == nError1 )) << "test for remove function: try to remove a n… in TEST_F()
5712 nError1 = ::osl::Directory::remove( aTmpName6 ); in TEST_F()
5715 …ASSERT_TRUE(bExist == sal_True &&(( osl::FileBase::E_NOTDIR == nError1 ) || ( osl::FileBase::E_NOE… in TEST_F()
5722 nError1 = ::osl::Directory::remove( aTmpName3 ); in TEST_F()
5730 ASSERT_TRUE(( osl::FileBase::E_EXIST == nError1 )) << suError.pData; in TEST_F()
5732 ASSERT_TRUE(( osl::FileBase::E_NOTEMPTY == nError1 )) << suError.pData; in TEST_F()