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 …on: set writtenable ", ( ::osl::FileBase::E_None == nError ) || ( ::osl::FileBase::E_NOENT == nErr… in deleteTestFile()
417 nError = ::osl::File::remove( aPathURL ); in deleteTestFile()
418 …n deleteTestFile Function: remove ", ( ::osl::FileBase::E_None == nError ) || ( nError == ::osl::F… 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 …CPPUNIT_ASSERT_MESSAGE( strError, ( ::osl::FileBase::E_None == nError ) || ( nError == ::osl::File… in deleteTestDirectory()
730 ::osl::FileBase::RC nError;
735 nError = ::osl::FileBase::getCanonicalName( aCanURL1, aUStr_ValidURL );
738 ( osl::FileBase::E_None == nError ) && aUStr_ValidURL.equalsIgnoreAsciiCase( aCanURL1 ) );
746 nError = ::osl::FileBase::getCanonicalName( aCanURL1, aUStr_ValidURL );
750 ( osl::FileBase::E_None == nError ) && aUStr_ValidURL.equalsIgnoreAsciiCase( aCanURL1 ) );
756 nError = ::osl::FileBase::getCanonicalName ( aCanURL2, aUStr_ValidURL );
759 ( osl::FileBase::E_None == nError ) && aUStr_ValidURL.equalsIgnoreAsciiCase( aCanURL2 ) );
976 …osl::FileBase::RC nError = FileBase::getAbsoluteFileURL( _suBaseURL, suRelativeURL, suResultURL ); in check_getAbsoluteFileURL() local
978 rtl::OString sError = errorToString(nError); in check_getAbsoluteFileURL()
980 CPPUNIT_ASSERT_MESSAGE( "Assumption is wrong: error number is wrong", nError == _nAssumeError ); in check_getAbsoluteFileURL()
981 if ( nError == ::osl::FileBase::E_None ) in check_getAbsoluteFileURL()
1207 ::osl::FileBase::RC nError; in check_SystemPath_FileURL()
1209 nError = osl::FileBase::getSystemPathFromFileURL( suSource, suStr ); in check_SystemPath_FileURL()
1211 nError = osl::FileBase::getFileURLFromSystemPath( suSource, suStr ); in check_SystemPath_FileURL()
1216 rtl::OString sError = errorToString(nError); in check_SystemPath_FileURL()
1230 nError == _nAssumeError && bStrAreEqual == sal_True ); in check_SystemPath_FileURL()
1234 CPPUNIT_ASSERT_MESSAGE( "Assumption is wrong", nError == _nAssumeError ); in check_SystemPath_FileURL()
1433 … ::osl::FileBase::RC nError = osl::FileBase::getSystemPathFromFileURL( aRelativeURL, aUStr );
1441 CPPUNIT_ASSERT_MESSAGE( suError, ( osl::FileBase::E_None == nError ) && ( sal_True == bOk ) );
1451 ::osl::FileBase::RC nError = osl::FileBase::getSystemPathFromFileURL( aNormalURL, aUStr ); in getSystemPathFromFileURL_004()
1460 CPPUNIT_ASSERT_MESSAGE( suError, ( osl::FileBase::E_None == nError ) && ( sal_True == bOk ) ); in getSystemPathFromFileURL_004()
1472 … ::osl::FileBase::RC nError = osl::FileBase::getSystemPathFromFileURL( aNormalURL, aUStr ); in getSystemPathFromFileURL_005()
1482 CPPUNIT_ASSERT_MESSAGE( suError, ( osl::FileBase::E_None == nError ) && ( sal_True == bOk ) ); in getSystemPathFromFileURL_005()
1630 ::osl::FileBase::RC nError;
1636 nError = FileBase::getTempDirURL( aUStr ); in setUp()
1648 ( osl::FileBase::E_None == nError ) ); in getTempDirURL_001()
3325 ::osl::FileBase::RC nError;
3335 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in setUp()
3336 CPPUNIT_ASSERT( nError == FileBase::E_None ); in setUp()
3341 nError = ::osl::DirectoryItem::get( aTypeURL_Hid, rItem_hidden ); in setUp()
3342 CPPUNIT_ASSERT( nError == FileBase::E_None ); in setUp()
3359 nError = rItem.getFileStatus( rFileStatus ); in getAttributes_001()
3360 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getAttributes_001()
3381 nError = rItem.getFileStatus( rFileStatus ); in getAttributes_002()
3382 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getAttributes_002()
3397 nError = rItem.getFileStatus( rFileStatus ); in getAttributes_003()
3398 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getAttributes_003()
3417 nError = rItem_hidden.getFileStatus( rFileStatus ); in getAttributes_004()
3418 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getAttributes_004()
3428 nError = ::osl::DirectoryItem::get( aUserHiddenFileURL, rItem_hidden ); in getAttributes_004()
3430 CPPUNIT_ASSERT_MESSAGE("get item fail", nError == FileBase::E_None ); in getAttributes_004()
3432 nError = rItem_hidden.getFileStatus( rFileStatus ); in getAttributes_004()
3433 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getAttributes_004()
3455 ::osl::FileBase::RC nError;
3465 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in setUp()
3466 CPPUNIT_ASSERT( nError == FileBase::E_None ); in setUp()
3484 nError = rItem.getFileStatus( rFileStatus ); in getAccessTime_001()
3486 CPPUNIT_ASSERT( sal_True == bOk && nError == FileBase::E_None ); in getAccessTime_001()
3510 ::osl::FileBase::RC nError;
3531 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in getModifyTime_001()
3532 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getModifyTime_001()
3534 nError = rItem.getFileStatus( rFileStatus ); in getModifyTime_001()
3535 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getModifyTime_001()
3564 ::osl::FileBase::RC nError;
3574 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in setUp()
3575 CPPUNIT_ASSERT( nError == FileBase::E_None ); in setUp()
3587 nError = rItem.getFileStatus( rFileStatus ); in getFileSize_001()
3588 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getFileSize_001()
3599 nError = testfile.open( OpenFlag_Write | OpenFlag_Read ); in getFileSize_002()
3600 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError ); in getFileSize_002()
3601 nError = testfile.setSize( TEST_FILE_SIZE ); in getFileSize_002()
3602 CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError ); in getFileSize_002()
3604 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in getFileSize_002()
3605 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getFileSize_002()
3607 nError = rItem.getFileStatus( rFileStatus ); in getFileSize_002()
3608 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getFileSize_002()
3627 ::osl::FileBase::RC nError;
3637 nError = ::osl::DirectoryItem::get( aTypeURL, rItem ); in setUp()
3638 CPPUNIT_ASSERT( nError == FileBase::E_None ); in setUp()
3650 nError = rItem.getFileStatus( rFileStatus ); in getFileName_001()
3651 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getFileName_001()
3671 ::osl::FileBase::RC nError;
3679 nError = ::osl::DirectoryItem::get( aTmpName6, rItem ); in setUp()
3680 CPPUNIT_ASSERT( nError == FileBase::E_None ); in setUp()
3692 nError = rItem.getFileStatus( rFileStatus ); in getFileURL_001()
3693 CPPUNIT_ASSERT( nError == FileBase::E_None ); in getFileURL_001()
3713 ::osl::FileBase::RC nError;
3748 nError = ::osl::DirectoryItem::get( aLnkURL1, rItem ); in getLinkTargetURL_001()
3749 CPPUNIT_ASSERT_MESSAGE( "in getting link file item", nError == FileBase::E_None ); in getLinkTargetURL_001()
3752 nError = rItem.getFileStatus( rFileStatus ); in getLinkTargetURL_001()
3753 CPPUNIT_ASSERT_MESSAGE( "in getting link file status", nError == FileBase::E_None ); in getLinkTargetURL_001()