Lines Matching refs:nError
100 rtl::OUString errorToStr( ::osl::FileBase::RC const& nError) in errorToStr() argument
104 suBuf.append( rtl::OStringToOUString(errorToString(nError), RTL_TEXTENCODING_ASCII_US) ); in errorToStr()
195 inline void printError( const ::osl::FileBase::RC nError ) in printError() argument
198 printFileName( errorToStr(nError) ); in printError()
375 ::osl::FileBase::RC nError; in createTestFile()
383 nError = aFile.open( OpenFlag_Read | OpenFlag_Write | OpenFlag_Create ); in createTestFile()
385 if ( ( ::osl::FileBase::E_None != nError ) && ( nError != ::osl::FileBase::E_EXIST )) in createTestFile()
409 ::osl::FileBase::RC nError; 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()
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()
475 nError = ::osl::Directory::remove( aPathURL ); in deleteTestDirectory()
491 …EXPECT_TRUE(( ::osl::FileBase::E_None == nError ) || ( nError == ::osl::FileBase::E_NOENT )) << st… in deleteTestDirectory()
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 …
773 ::osl::FileBase::RC nError;
850 nError = aFileBase.getAbsoluteFileURL( aUserDirectoryURL, aLnkURL1, aUStr_AbsURL ); in TEST_F()
866 …ASSERT_TRUE(( ::osl::FileBase::E_None == nError ) && ( sal_True == bOk )) << "test for getAbsolute… in TEST_F()
881 …nError = aFileBase.getAbsoluteFileURL( aTmpName1, aRelURL1, aUStr_AbsURL ); //base dir invalid… in TEST_F()
890 ASSERT_TRUE(( ::osl::FileBase::E_INVAL == nError )) << suError; in TEST_F()
907 nError = aFileBase.getAbsoluteFileURL( aUStrBase, aUStrRelar, aUStr_AbsURL ); in TEST_F()
920 ASSERT_TRUE(( ::osl::FileBase::E_None == nError ) && ( sal_True == bOk )) << suError.pData; in TEST_F()
928 …osl::FileBase::RC nError = FileBase::getAbsoluteFileURL( _suBaseURL, suRelativeURL, suResultURL ); in check_getAbsoluteFileURL() local
930 rtl::OString sError = errorToString(nError); in check_getAbsoluteFileURL()
932 ASSERT_TRUE(nError == _nAssumeError) << "Assumption is wrong: error number is wrong"; in check_getAbsoluteFileURL()
933 if ( nError == ::osl::FileBase::E_None ) in check_getAbsoluteFileURL()
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()
1105 rtl::OString sError = errorToString(nError); in check_SystemPath_FileURL()
1118 … ASSERT_TRUE(nError == _nAssumeError && bStrAreEqual == sal_True) << "Assumption is wrong"; in check_SystemPath_FileURL()
1122 ASSERT_TRUE(nError == _nAssumeError) << "Assumption is wrong"; in check_SystemPath_FileURL()
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()
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()
2951 ::osl::FileBase::RC nError;
2961 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in SetUp()
2962 ASSERT_TRUE( nError == FileBase::E_None ); in SetUp()
2967 nError = ::osl::DirectoryItem::get( aTypeURL_Hid, rItem_hidden ); in SetUp()
2968 ASSERT_TRUE( nError == FileBase::E_None ); in SetUp()
2985 nError = rItem.getFileStatus( rFileStatus ); in TEST_F()
2986 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3005 nError = rItem.getFileStatus( rFileStatus ); in TEST_F()
3006 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3020 nError = rItem.getFileStatus( rFileStatus ); in TEST_F()
3021 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3038 nError = rItem_hidden.getFileStatus( rFileStatus ); in TEST_F()
3039 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3048 nError = ::osl::DirectoryItem::get( aUserHiddenFileURL, rItem_hidden ); in TEST_F()
3050 ASSERT_TRUE(nError == FileBase::E_None) << "get item fail"; in TEST_F()
3052 nError = rItem_hidden.getFileStatus( rFileStatus ); in TEST_F()
3053 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3067 ::osl::FileBase::RC nError;
3077 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in SetUp()
3078 ASSERT_TRUE( nError == FileBase::E_None ); in SetUp()
3096 nError = rItem.getFileStatus( rFileStatus ); in TEST_F()
3098 ASSERT_TRUE( sal_True == bOk && nError == FileBase::E_None ); in TEST_F()
3117 ::osl::FileBase::RC nError;
3136 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in TEST_F()
3137 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3139 nError = rItem.getFileStatus( rFileStatus ); in TEST_F()
3140 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3164 ::osl::FileBase::RC nError;
3174 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in SetUp()
3175 ASSERT_TRUE( nError == FileBase::E_None ); in SetUp()
3187 nError = rItem.getFileStatus( rFileStatus ); in TEST_F()
3188 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3198 nError = testfile.open( OpenFlag_Write | OpenFlag_Read ); in TEST_F()
3199 ASSERT_TRUE( ::osl::FileBase::E_None == nError ); in TEST_F()
3200 nError = testfile.setSize( TEST_FILE_SIZE ); in TEST_F()
3201 ASSERT_TRUE( ::osl::FileBase::E_None == nError ); in TEST_F()
3203 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in TEST_F()
3204 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3206 nError = rItem.getFileStatus( rFileStatus ); in TEST_F()
3207 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3221 ::osl::FileBase::RC nError;
3231 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in SetUp()
3232 ASSERT_TRUE( nError == FileBase::E_None ); in SetUp()
3244 nError = rItem.getFileStatus( rFileStatus ); in TEST_F()
3245 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3260 ::osl::FileBase::RC nError;
3268 nError = ::osl::DirectoryItem::get( aTmpName6, rItem ); in SetUp()
3269 ASSERT_TRUE( nError == FileBase::E_None ); in SetUp()
3281 nError = rItem.getFileStatus( rFileStatus ); in TEST_F()
3282 ASSERT_TRUE( nError == FileBase::E_None ); in TEST_F()
3297 ::osl::FileBase::RC nError;
3333 nError = ::osl::DirectoryItem::get( aLnkURL1, rItem ); in TEST_F()
3334 ASSERT_TRUE(nError == FileBase::E_None) << "in getting link file item"; in TEST_F()
3337 nError = rItem.getFileStatus( rFileStatus ); in TEST_F()
3338 ASSERT_TRUE(nError == FileBase::E_None) << "in getting link file status"; in TEST_F()