Lines Matching refs:FileBase

59 inline ::rtl::OString errorToString( const ::osl::FileBase::RC _nError )  in errorToString()
63 case ::osl::FileBase::E_None: in errorToString()
66 case ::osl::FileBase::E_PERM: in errorToString()
69 case ::osl::FileBase::E_NOENT: in errorToString()
72 case ::osl::FileBase::E_EXIST: in errorToString()
75 case ::osl::FileBase::E_ACCES: in errorToString()
78 case ::osl::FileBase::E_INVAL: in errorToString()
81 case ::osl::FileBase::E_NOTDIR: in errorToString()
84 case ::osl::FileBase::E_ISDIR: in errorToString()
87 case ::osl::FileBase::E_BADF: in errorToString()
90 case ::osl::FileBase::E_NOTEMPTY: in errorToString()
100 rtl::OUString errorToStr( ::osl::FileBase::RC const& nError) in errorToStr()
195 inline void printError( const ::osl::FileBase::RC nError ) in printError()
358 …::osl::FileBase::getFileURLFromSystemPath( pathname1, aPathName ); //convert if not full qualified… in concatURL()
375 ::osl::FileBase::RC nError; in createTestFile()
378 …::osl::FileBase::getFileURLFromSystemPath( filename, aPathURL ); //convert if not full qualified U… in createTestFile()
385 if ( ( ::osl::FileBase::E_None != nError ) && ( nError != ::osl::FileBase::E_EXIST )) in createTestFile()
409 ::osl::FileBase::RC nError; in deleteTestFile()
412 …::osl::FileBase::getFileURLFromSystemPath( filename, aPathURL ); //convert if not full qualified U… in deleteTestFile()
415 …ASSERT_TRUE(( ::osl::FileBase::E_None == nError ) || ( ::osl::FileBase::E_NOENT == nError )) << "I… 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()
442 if ( ( ::osl::FileBase::E_None != nError ) && ( nError != ::osl::FileBase::E_EXIST )) in createTestDirectory()
463 ::osl::FileBase::RC nError; in deleteTestDirectory()
466 …::osl::FileBase::getFileURLFromSystemPath( dirname, aPathURL ); //convert if not full qualified URL in deleteTestDirectory()
491 …EXPECT_TRUE(( ::osl::FileBase::E_None == nError ) || ( nError == ::osl::FileBase::E_NOENT )) << st… in deleteTestDirectory()
521 ::osl::FileBase::RC nError1, nError2; in checkFile()
527 if ( ( ::osl::FileBase::E_NOENT != nError1 ) && ( ::osl::FileBase::E_ACCES != nError1 ) ){ in checkFile()
532 if ( ::osl::FileBase::E_None == nError1 ) in checkFile()
537 if ( ::osl::FileBase::E_None == nError1 ) in checkFile()
547 if ( ::osl::FileBase::E_None == nError2 ) in checkFile()
556 EXPECT_TRUE(nError2 == FileBase::E_None) << " in CheckFile() function, close file "; in checkFile()
581 bCheckResult = ( osl::FileBase::E_None == testFile.open( OpenFlag_Read ) ); in ifFileExist()
599 ::osl::FileBase::getSystemPathFromFileURL( str, aUStr ); in ifFileCanWrite()
608 bCheckResult = (osl::FileBase::E_None == testFile.open( OpenFlag_Write )); in ifFileCanWrite()
617 FileBase::RC rc; in checkDirectory()
624 if ( ( ::osl::FileBase::E_NOENT != rc ) && ( ::osl::FileBase::E_ACCES != rc ) ){ in checkDirectory()
628 if ( rc == ::osl::FileBase::E_None ) in checkDirectory()
632 if ( rc == ::osl::FileBase::E_None ) in checkDirectory()
638 if ( ( rc == ::osl::FileBase::E_None ) || ( rc == ::osl::FileBase::E_NOENT ) ) in checkDirectory()
646 if ( ( rc = Directory::create( aUString ) ) == ::osl::FileBase::E_None ) in checkDirectory()
651 EXPECT_TRUE( rc == ::osl::FileBase::E_None ); in checkDirectory()
662 EXPECT_TRUE( rc == 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 …:OUString const& _suBaseURL, rtl::OString const& _sRelativeURL, ::osl::FileBase::RC _nAssumeError…
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 …:OUString const& _suBaseURL, rtl::OString const& _sRelativeURL, ::osl::FileBase::RC _nAssumeError… 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 …WNTBehaviour_getSystemPathFromFileURL(rtl::OString const& _sURL, ::osl::FileBase::RC _nAssumeError… in checkWNTBehaviour_getSystemPathFromFileURL()
1136 …UNXBehaviour_getSystemPathFromFileURL(rtl::OString const& _sURL, ::osl::FileBase::RC _nAssumeError… in checkUNXBehaviour_getSystemPathFromFileURL()
1147 …ehaviour_getFileURLFromSystemPath(rtl::OString const& _sSysPath, ::osl::FileBase::RC _nAssumeError… in checkWNTBehaviour_getFileURLFromSystemPath()
1158 …ehaviour_getFileURLFromSystemPath(rtl::OString const& _sSysPath, ::osl::FileBase::RC _nAssumeError… 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;
1512 nError = FileBase::getTempDirURL( aUStr ); in SetUp()
1523 … ASSERT_TRUE(( osl::FileBase::E_None == nError )) << "test for getTempDirURL function: excution"; in TEST_F()
1543 ::osl::FileBase::RC nError1, nError2;
1571 nError1 = FileBase::createTempFile( pUStr_DirURL, pHandle, 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()
1586 nError1 = FileBase::createTempFile( pUStr_DirURL, pHandle, 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()
1605 nError1 = FileBase::createTempFile( pUStr_DirURL, pHandle, 0 ); in TEST_F()
1611 …ASSERT_TRUE(( ::osl::FileBase::E_None == nError1 ) &&( sal_True == bOK )) << "test for createTempF… in TEST_F()
1615 nError1 = FileBase::createTempFile( pUStr_DirURL, 0, pUStr_FileURL ); in TEST_F()
1620 …ASSERT_TRUE(( osl::FileBase::E_None == nError1 ) && ( osl::FileBase::E_EXIST == nError2 ) &&( sal_… in TEST_F()
1644 ::osl::FileBase::RC nError1, nError2;
1661 ASSERT_TRUE(( osl::FileBase::E_None != aVolumeDevice1.automount( ) ) &&
1662 ( osl::FileBase::E_None != aVolumeDevice1.unmount( ) ) &&
1670 ASSERT_TRUE( osl::FileBase::E_None == nError1 );
1681 ASSERT_TRUE( osl::FileBase::E_None == nError1 );
1697 ::osl::FileBase::RC nError1, nError2;
1716 …ASSERT_TRUE(( osl::FileBase::E_INVAL == nError1 )) << "test for automount function: invalid parame…
1723 ASSERT_TRUE( osl::FileBase::E_None == nError1 );
1728 …ASSERT_TRUE(( osl::FileBase::E_None == nError1 )) << "test for automount function: this test is no…
1749 ::osl::FileBase::RC nError1, nError2;
1768 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1785 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1809 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1818 ASSERT_TRUE( osl::FileBase::E_None == nError2 ); in TEST_F()
1835 ::osl::FileBase::RC nError1, nError2;
1854 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1867 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1884 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1888 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1903 ::osl::FileBase::RC nError1, nError2;
1911 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1923 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1942 ::osl::FileBase::RC nError1, nError2;
1950 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1961 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1974 ::osl::FileBase::RC nError1;
1982 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1993 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2006 ::osl::FileBase::RC nError1;
2014 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2025 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2038 ::osl::FileBase::RC nError1;
2046 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2057 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2070 ::osl::FileBase::RC nError1;
2078 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2089 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2102 ::osl::FileBase::RC nError1;
2110 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2123 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2151 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2171 ::osl::FileBase::RC nError1;
2179 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2192 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2219 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2239 ::osl::FileBase::RC nError1;
2247 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2260 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2288 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2308 ::osl::FileBase::RC nError1;
2316 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2337 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2357 ::osl::FileBase::RC nError1;
2365 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2379 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2400 ::osl::FileBase::RC nError1;
2408 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2429 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2450 ::osl::FileBase::RC nError1;
2457 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2483 ::osl::FileBase::RC nError1, nError2;
2496 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
2498 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
2522 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2532 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
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()
2619 ::osl::FileBase::RC nError1 = rItem_file.getFileStatus( rFileStatus ); in TEST_F()
2620 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); 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()
2677 ::osl::FileBase::RC nError1 = testDirectory.open( ); in TEST_F()
2682 if (::osl::FileBase::E_None == nError1) { 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()
2722 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2737 ::osl::FileBase::RC nError1, nError2;
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()
2812 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "getFileStatus failed"; in TEST_F()
2822 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2832 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2855 ::osl::FileBase::getFileURLFromSystemPath( aFifoSys, aFifoURL ); in TEST_F()
2858 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "get item failed!"; in TEST_F()
2863 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "get Status failed!"; in TEST_F()
2867 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "remove file failed!"; in TEST_F()
2926 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2931 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2951 ::osl::FileBase::RC nError;
2962 ASSERT_TRUE( nError == FileBase::E_None ); in SetUp()
2968 ASSERT_TRUE( nError == FileBase::E_None ); in SetUp()
2986 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3006 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3021 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3039 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3050 ASSERT_TRUE(nError == FileBase::E_None) << "get item fail"; in TEST_F()
3053 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3067 ::osl::FileBase::RC nError;
3078 ASSERT_TRUE( nError == FileBase::E_None ); in SetUp()
3098 ASSERT_TRUE( sal_True == bOk && nError == FileBase::E_None ); in TEST_F()
3117 ::osl::FileBase::RC nError;
3137 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3140 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3164 ::osl::FileBase::RC nError;
3175 ASSERT_TRUE( nError == FileBase::E_None ); in SetUp()
3188 ASSERT_TRUE( nError == FileBase::E_None ); 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()
3204 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3207 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3221 ::osl::FileBase::RC nError;
3232 ASSERT_TRUE( nError == FileBase::E_None ); in SetUp()
3245 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3260 ::osl::FileBase::RC nError;
3269 ASSERT_TRUE( nError == FileBase::E_None ); in SetUp()
3282 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3297 ::osl::FileBase::RC nError;
3334 ASSERT_TRUE(nError == FileBase::E_None) << "in getting link file item"; in TEST_F()
3338 ASSERT_TRUE(nError == FileBase::E_None) << "in getting link file status"; 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()
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;
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()
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;
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()
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;
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()
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()
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()
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;
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()
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;
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()
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()
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;
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()
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()
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;
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()
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()
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;
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;
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()
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()
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;
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()
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()
4198 …ASSERT_TRUE(( ::osl::FileBase::E_ISDIR == nError1 ) ||( ::osl::FileBase::E_ACCES == nError1 )) << … 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()
4217 …ASSERT_TRUE(::osl::FileBase::E_NOENT == nError1) << "test for copy function: copy a not exist file… in TEST_F()
4225 …ASSERT_TRUE(::osl::FileBase::E_INVAL == nError1) << "test for copy function: copy a file using sys… in TEST_F()
4231 FileBase::RC err = tmpFile.open( OpenFlag_Write | OpenFlag_Read ); in TEST_F()
4237 ASSERT_TRUE( nError1 == FileBase::E_None ); 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;
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()
4301 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4307 …ASSERT_TRUE(::osl::FileBase::E_EXIST == nError2) << "test for move function: rename file to anothe… in TEST_F()
4315 …ASSERT_TRUE(( ::osl::FileBase::E_ACCES == nError1 || ::osl::FileBase::E_ISDIR == nError1 ) ||( ::o… 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()
4335 …ASSERT_TRUE(::osl::FileBase::E_NOENT == nError1) << "test for move function: move a not exist file… in TEST_F()
4343 …ASSERT_TRUE(::osl::FileBase::E_INVAL == nError1) << "test for move function: move a file using sys… 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()
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()
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;
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()
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()
4458 …ASSERT_TRUE(( ::osl::FileBase::E_NOENT == nError1 )) << "test for remove function: remove a file n… in TEST_F()
4466 …ASSERT_TRUE(( ::osl::FileBase::E_INVAL == nError1 )) << "test for remove function: removing a file… 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;
4508 ASSERT_TRUE( nError2 == FileBase::E_None); in TEST_F()
4510 ASSERT_TRUE( nError1 == FileBase::E_None); in TEST_F()
4514 ASSERT_TRUE( nError1 == FileBase::E_None ); in TEST_F()
4521 ASSERT_TRUE( nError2 == FileBase::E_None); in TEST_F()
4523 ASSERT_TRUE( nError1 == FileBase::E_None); in TEST_F()
4527 ASSERT_TRUE( nError1 == FileBase::E_None ); in TEST_F()
4548 ASSERT_TRUE( nError2 == FileBase::E_None); in TEST_F()
4550 ASSERT_TRUE( nError1 == FileBase::E_None); in TEST_F()
4554 ASSERT_TRUE( nError1 == FileBase::E_None ); in TEST_F()
4571 ::osl::FileBase::RC nError1, nError2;
4606 ASSERT_TRUE(nError2 == FileBase::E_None) << errorToStr( nError2 ).pData; in TEST_F()
4610 ASSERT_TRUE(nError1 == FileBase::E_None) << errorToStr( nError1 ).pData; in TEST_F()
4614 ASSERT_TRUE(nError1 == FileBase::E_None) << errorToStr( nError1 ).pData; in TEST_F()
4619 ASSERT_TRUE(nError1 == FileBase::E_None) << errorToStr( nError1 ).pData; in TEST_F()
4624 ASSERT_TRUE(nError1 == FileBase::E_None) << errorToStr( nError1 ).pData; in TEST_F()
4647 ::osl::FileBase::RC nError1, nError2;
4671 ASSERT_TRUE( nError1 == FileBase::E_None); in TEST_F()
4674 FileBase::RC err = tmp_file.open(osl_File_OpenFlag_Write ); in TEST_F()
4676 ASSERT_TRUE(err == FileBase::E_None) << "File open failed"; in TEST_F()
4681 ASSERT_TRUE(nError1 == FileBase::E_None) << "write failed!"; in TEST_F()
4685 ASSERT_TRUE( nError2 == FileBase::E_None); in TEST_F()
4689 ASSERT_TRUE(nError2 == FileBase::E_None) << "can not sync to readonly file!"; in TEST_F()
4711 ::osl::FileBase::RC nError1, nError2;
4735 ASSERT_TRUE( FileBase::E_None == nError1 ); 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;
4769 ASSERT_TRUE( FileBase::E_None == nError1 ); in TEST_F()
4774 ASSERT_TRUE( nError1 == FileBase::E_None ); in TEST_F()
4784 ASSERT_TRUE( FileBase::E_None == nError1 ); in TEST_F()
4790 ASSERT_TRUE( nError1 == FileBase::E_None ); in TEST_F()
4802 ::osl::FileBase::RC nError1, nError2;
4831 ASSERT_TRUE( FileBase::E_None == nError1 ); in TEST_F()
4843 ::osl::FileBase::RC nError1, nError2;
4869 ASSERT_TRUE( nError1 == FileBase::E_None ); in TEST_F()
4871 ASSERT_TRUE(( ::osl::FileBase::E_None == nError2 ) && in TEST_F()
4881 …ASSERT_TRUE(FileBase::E_INVAL == nError1) << "test for get function: use a system name instead of … in TEST_F()
4890 … ASSERT_TRUE(FileBase::E_NOENT == nError1) << "test for get function: use a non existed file URL."; in TEST_F()
4900 ::osl::FileBase::RC nError1, nError2;
4924 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4930 ASSERT_TRUE(( ::osl::FileBase::E_None == nError2 ) && in TEST_F()
4944 …ASSERT_TRUE(( ::osl::FileBase::E_INVAL == nError2 )) << "test for getFileStatus function: file not… in TEST_F()
4952 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4958 ASSERT_TRUE(( ::osl::FileBase::E_None == nError2 ) && in TEST_F()
4977 ::osl::FileBase::RC nError1, nError2;
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()
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;
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()
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()
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()
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;
5171 ::osl::FileBase::RC nError1, nError2;
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;
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()
5270 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5276 ASSERT_TRUE(( ::osl::FileBase::E_None == nError2 ) && in TEST_F()
5287 …ASSERT_TRUE(( ::osl::FileBase::E_NOENT == nError1 )) << "test for reset function: reset a non exis… in TEST_F()
5298 …ASSERT_TRUE(( ::osl::FileBase::E_NOTDIR == nError1 ) || ( ::osl::FileBase::E_NOENT == nError1 )) <… 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;
5351 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); 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()
5388 …ASSERT_TRUE(( ::osl::FileBase::E_INVAL == nError1 )) << "test for getNextItem function: retrieve a… 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()
5434 if (::osl::FileBase::E_None == nError1) { in TEST_F()
5462 ::osl::FileBase::RC nError1, nError2;
5476 ASSERT_TRUE(( osl::FileBase::E_None == nError1 ) && in checkValidMask()
5599 …ASSERT_TRUE(( osl::FileBase::E_INVAL == nError1 )) << "test for getVolumeInfo function: use system… 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;
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()
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()
5655 …ASSERT_TRUE(( osl::FileBase::E_INVAL == nError1 )) << "test for create function: create a director… in TEST_F()
5665 ::osl::FileBase::RC nError1, nError2;
5672 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); 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()
5687 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5693 if ( osl::FileBase::E_NOENT != nError2 ) in TEST_F()
5696 …ASSERT_TRUE(( osl::FileBase::E_INVAL == nError1 )) << "test for remove function: remove a director… in TEST_F()
5704 …ASSERT_TRUE(( osl::FileBase::E_NOENT == nError1 )) << "test for remove function: try to remove a n… in TEST_F()
5715 …ASSERT_TRUE(bExist == sal_True &&(( osl::FileBase::E_NOTDIR == nError1 ) || ( osl::FileBase::E_NOE… 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()
5752 FileBase::RC rc = FileBase::getTempDirURL(tmp); in get_test_path()
5754 EXPECT_TRUE(rc == FileBase::E_None) << "Test path creation failed"; in get_test_path()
5851 FileBase::getFileURLFromSystemPath(path, tp_url); in TEST_F()
5853 FileBase::RC rc = Directory::createPath(tp_url); in TEST_F()
5855 …ASSERT_TRUE(rc != FileBase::E_None) << "osl_createDirectoryPath doesn't fail on unused logical dri… in TEST_F()
5867 FileBase::getFileURLFromSystemPath(tp_unc, tp_url);
5869 FileBase::RC rc = Directory::createPath(tp_url);
5871 ASSERT_TRUE(rc == FileBase::E_None) << "osl_createDirectoryPath fails with UNC path";
5879 FileBase::RC rc = Directory::createPath( in TEST_F()
5882 ASSERT_TRUE(rc == FileBase::E_INVAL) << "osl_createDirectoryPath contract broken"; in TEST_F()
5892 FileBase::RC rc = Directory::createPath(tp_url); in TEST_F()
5894 ASSERT_TRUE(rc == FileBase::E_None) << "osl_createDirectoryPath failed"; in TEST_F()
5905 FileBase::RC rc = Directory::createPath(tp_url, observer); in TEST_F()
5908 ASSERT_TRUE((rc == FileBase::E_None) && (nDirs > 0)) << "osl_createDirectoryPath failed"; in TEST_F()