Lines Matching refs:nError1

521 	::osl::FileBase::RC   nError1, nError2;  in checkFile()
526 nError1 = testFile.open ( OpenFlag_Read ); 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()
1423 ::osl::FileBase::RC nError1, nError2, nError3,nError4;
1432 nError1 = ::osl::FileBase::searchFileURL( aTmpName1, aUserDirectorySys, aUStr ); in TEST_F()
1438 ASSERT_TRUE(( osl::FileBase::E_NOENT == nError1 ) && in TEST_F()
1446 nError1 = ::osl::FileBase::searchFileURL( aTempDirectorySys, aRootSys, aUStr ); in TEST_F()
1460 ASSERT_TRUE(( osl::FileBase::E_None == nError1 ) && 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()
1543 ::osl::FileBase::RC nError1, nError2;
1571 nError1 = FileBase::createTempFile( pUStr_DirURL, pHandle, pUStr_FileURL ); 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()
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;
1669 nError1 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo );
1670 ASSERT_TRUE( osl::FileBase::E_None == nError1 );
1680 nError1 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo );
1681 ASSERT_TRUE( osl::FileBase::E_None == nError1 );
1697 ::osl::FileBase::RC nError1, nError2;
1714 nError1 = aVolumeDevice1.automount( );
1716 …ASSERT_TRUE(( osl::FileBase::E_INVAL == nError1 )) << "test for automount function: invalid parame…
1722 nError1 = ::osl::Directory::getVolumeInfo( aVolURL2, aVolumeInfo );
1723 ASSERT_TRUE( osl::FileBase::E_None == nError1 );
1726 nError1 = aVolumeDevice1.unmount( );
1727 nError1 = aVolumeDevice1.automount( );
1728 …ASSERT_TRUE(( osl::FileBase::E_None == nError1 )) << "test for automount function: this test is no…
1749 ::osl::FileBase::RC nError1, nError2;
1767 nError1 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo ); in TEST_F()
1768 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1784 nError1 = ::osl::Directory::getVolumeInfo( aVolURL4, aVolumeInfo ); in TEST_F()
1785 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1807 nError1 = ::osl::Directory::getVolumeInfo( aRootURL, aVolumeInfo1 ); in TEST_F()
1809 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1835 ::osl::FileBase::RC nError1, nError2;
1853 nError1 = ::osl::Directory::getVolumeInfo( aVolURL4, aVolumeInfo ); in TEST_F()
1854 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
1866 nError1 = ::osl::Directory::getVolumeInfo( aVolURL4, aVolumeInfo ); in TEST_F()
1867 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); 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()
1903 ::osl::FileBase::RC nError1, nError2;
1910 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
1911 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); 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;
1949 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
1950 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); 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;
1981 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
1982 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); 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;
2013 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2014 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); 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;
2045 nError1 = ::osl::Directory::getVolumeInfo( aVolURL2, aVolumeInfo ); in TEST_F()
2046 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); 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;
2077 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2078 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); 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;
2109 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2110 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2122 nError1 = ::osl::Directory::getVolumeInfo( aVolURL3, aVolumeInfo ); in TEST_F()
2123 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); 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;
2178 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2179 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2191 nError1 = ::osl::Directory::getVolumeInfo( aVolURL3, aVolumeInfo ); in TEST_F()
2192 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); 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;
2246 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2247 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2259 nError1 = ::osl::Directory::getVolumeInfo( aVolURL3, aVolumeInfo ); in TEST_F()
2260 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); 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;
2315 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2316 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); 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;
2364 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2365 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); 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;
2407 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2408 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); 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;
2456 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in TEST_F()
2457 ASSERT_TRUE( osl::FileBase::E_None == nError1 ); in TEST_F()
2483 ::osl::FileBase::RC nError1, nError2;
2495 nError1 = pDir->open( ); in SetUp()
2496 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
2497 nError1 = pDir->getNextItem( rItem, 0 ); in SetUp()
2498 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
2521 nError1 = rItem.getFileStatus( rFileStatus ); in TEST_F()
2522 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2531 nError1 = rItem.getFileStatus( rFileStatus ); 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()
2561 nError1 = pDir->getNextItem( rItem_file, 1 ); 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()
2635 nError1 = rItem_file.getFileStatus( rFileStatus ); 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()
2681 nError1 = testDirectory.getNextItem( rItem_link, 4 ); 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()
2721 nError1 = rItem_file.getFileStatus( rFileStatus_val ); in TEST_F()
2722 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2737 ::osl::FileBase::RC nError1, nError2;
2756 nError1 = pDir->open( ); in SetUp()
2757 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "open aTmpName3 failed!"; in SetUp()
2759 nError1 = pDir->getNextItem( m_aItem_1, 1 ); in SetUp()
2760 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "get first item failed!"; in SetUp()
2762 nError1 = pDir->getNextItem( m_aItem_2 ); in SetUp()
2763 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "get second item failed!"; in SetUp()
2811 nError1 = m_aItem_1.getFileStatus( rFileStatus ); in TEST_F()
2812 ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "getFileStatus failed"; in TEST_F()
2820 nError1 = m_aItem_2.getFileStatus( rFileStatus ); in TEST_F()
2822 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2831 nError1 = m_aVolumeItem.getFileStatus( rFileStatus ); in TEST_F()
2832 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); 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()
2862 nError1 = m_aFifoItem.getFileStatus( rFileStatus ); 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()
2925 nError1 = ::osl::DirectoryItem::get( aTypeURL2, m_aSpecialItem ); in TEST_F()
2926 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
2930 nError1 = m_aSpecialItem.getFileStatus( rFileStatus ); in TEST_F()
2931 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3393 ::osl::FileBase::RC nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); 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()
3408 …ASSERT_TRUE(( ::osl::FileBase::E_None == nError1 ) && ( ::osl::FileBase::E_None == nError2 )) << "… in TEST_F()
3418 ::osl::FileBase::RC nError1, nError2, nError3;
3442 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3446 … ASSERT_TRUE(::osl::FileBase::E_None == nError1) << "test for open function: open a regular file"; in TEST_F()
3453 nError1 = testFile.open( OpenFlag_Read ); in TEST_F()
3455 …ASSERT_TRUE(( File::E_INVAL == nError1 ) || ( File::E_ACCES == nError1 )) << "test for open functi… in TEST_F()
3462 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3464 ASSERT_TRUE(File::E_NOENT == nError1) << "test for open function: open a non-exist file"; in TEST_F()
3473 nError1 = testFile.open( OpenFlag_Create ); in TEST_F()
3474 sal_Bool bOK = ( File::E_ACCES == nError1 ); in TEST_F()
3488 nError1 = testFile.open( OpenFlag_Create ); in TEST_F()
3490 ASSERT_TRUE(File::E_EXIST == nError1) << "test for open function: create an exist file"; in TEST_F()
3500 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write | OpenFlag_Create ); in TEST_F()
3511 ASSERT_TRUE(( ::osl::FileBase::E_None == nError1 ) && in TEST_F()
3525 ::osl::FileBase::RC nError1, nError2, nError3;
3548 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3549 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3560 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3561 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3578 ::osl::FileBase::RC nError1;
3592 nError1 = testFile.open( OpenFlag_Write ); in SetUp()
3593 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3594 nError1 = testFile.write( pBuffer_Char, sizeof( pBuffer_Char ), nCount_write ); in SetUp()
3595 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3596 nError1 = testFile.close( ); in SetUp()
3597 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3613 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3614 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3615 nError1 = testFile.setPos( Pos_Absolut, 26 ); in TEST_F()
3616 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3617 nError1 = testFile.read( buffer_read, 1, nCount_read ); in TEST_F()
3618 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3619 nError1 = testFile.close( ); in TEST_F()
3620 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3630 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3631 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3632 nError1 = testFile.setPos( Pos_Absolut, sizeof( pBuffer_Char ) - 2 ); in TEST_F()
3633 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3634 nError1 = testFile.setPos( Pos_Current, 0); in TEST_F()
3635 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3636 nError1 = testFile.read( buffer_read, 1, nCount_read ); in TEST_F()
3637 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3638 nError1 = testFile.close( ); in TEST_F()
3639 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3649 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3650 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3652 nError1 = testFile.setPos( Pos_End, -100 ); in TEST_F()
3653 ASSERT_TRUE(::osl::FileBase::E_INVAL == nError1) << "should return error"; in TEST_F()
3655 nError1 = testFile.setPos( Pos_End, -53 ); in TEST_F()
3656 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3657 nError1 = testFile.read( buffer_read, 1, nCount_read ); in TEST_F()
3658 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3659 nError1 = testFile.close( ); in TEST_F()
3660 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3672 ::osl::FileBase::RC nError1;
3686 nError1 = testFile.open( OpenFlag_Write ); in SetUp()
3687 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3688 nError1 = testFile.write( pBuffer_Char, sizeof( pBuffer_Char ), nCount_write ); in SetUp()
3689 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3690 nError1 = testFile.close( ); in SetUp()
3691 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3707 nError1 = testFile.getPos( nFilePointer ); in TEST_F()
3708 ASSERT_TRUE( ::osl::FileBase::E_INVAL == nError1 ); in TEST_F()
3710 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3711 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3713 nError1 = testFile.setPos( Pos_Absolut, 26 ); in TEST_F()
3714 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3715 nError1 = testFile.getPos( nFilePointer ); in TEST_F()
3716 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3718 nError1 = testFile.close( ); in TEST_F()
3719 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3731 ::osl::FileBase::RC nError1;
3745 nError1 = testFile.open( OpenFlag_Write ); in SetUp()
3746 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3747 nError1 = testFile.write( pBuffer_Char, sizeof( pBuffer_Char ), nCount_write ); in SetUp()
3748 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3749 nError1 = testFile.close( ); in SetUp()
3750 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3768 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3769 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3771 nError1 = testFile.setPos( Pos_End, 0 ); in TEST_F()
3772 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3773 nError1 = testFile.isEndOfFile( pEOF ); in TEST_F()
3774 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3776 nError1 = testFile.close( ); in TEST_F()
3777 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3789 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3790 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3792 nError1 = testFile.setPos( Pos_Absolut, 0 ); in TEST_F()
3793 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3797 nError1 = testFile.isEndOfFile( pEOF ); in TEST_F()
3798 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3799 nError1 = testFile.setPos( Pos_Current, 1 ); in TEST_F()
3800 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3802 nError1 = testFile.getPos( nFilePointer ); in TEST_F()
3803 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3805 nError1 = testFile.close( ); in TEST_F()
3806 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3818 ::osl::FileBase::RC nError1;
3832 nError1 = testFile.open( OpenFlag_Write ); in SetUp()
3833 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3834 nError1 = testFile.write( pBuffer_Char, sizeof( pBuffer_Char ), nCount_write ); in SetUp()
3835 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3836 nError1 = testFile.close( ); in SetUp()
3837 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3856 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3857 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3860 nError1 = testFile.setSize( 100 ); in TEST_F()
3861 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3864 nError1 = testFile.setPos( Pos_End, 0 ); in TEST_F()
3865 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3866 nError1 = testFile.getPos( nFilePointer ); in TEST_F()
3867 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3869 nError1 = testFile.close( ); in TEST_F()
3870 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3883 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3884 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3887 nError1 = testFile.setSize( 10 ); in TEST_F()
3888 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3891 nError1 = testFile.setPos( Pos_End, 0 ); in TEST_F()
3892 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3893 nError1 = testFile.getPos( nFilePointer ); in TEST_F()
3894 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3896 nError1 = testFile.close( ); in TEST_F()
3897 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3936 ::osl::FileBase::RC nError1;
3950 nError1 = testFile.open( OpenFlag_Write ); in SetUp()
3951 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3952 nError1 = testFile.write( pBuffer_Char, sizeof( pBuffer_Char ), nCount_write ); in SetUp()
3953 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3954 nError1 = testFile.close( ); in SetUp()
3955 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
3973 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3974 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3976 nError1 = testFile.read( buffer_read, 10, nCount_read ); in TEST_F()
3977 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3978 nError1 = testFile.getPos( nFilePointer ); in TEST_F()
3979 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3981 nError1 = testFile.close( ); in TEST_F()
3982 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3994 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
3995 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3997 nError1 = testFile.setPos( Pos_Absolut, 26 ); in TEST_F()
3998 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
3999 nError1 = testFile.read( buffer_read, 26, nCount_read ); in TEST_F()
4000 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4001 nError1 = testFile.getPos( nFilePointer ); in TEST_F()
4002 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4004 nError1 = testFile.close( ); in TEST_F()
4005 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4017 ::osl::FileBase::RC nError1;
4041 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
4042 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4045 nError1 = testFile.write( pBuffer_Char, 10, nCount_write ); in TEST_F()
4046 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4048 nError1 = testFile.getPos( nFilePointer ); in TEST_F()
4049 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4051 nError1 = testFile.setPos( Pos_Absolut, 0 ); in TEST_F()
4052 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4053 nError1 = testFile.read( buffer_read, 10, nCount_read ); in TEST_F()
4054 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4056 nError1 = testFile.close( ); in TEST_F()
4057 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4071 ::osl::FileBase::RC nError1;
4089 nError1 = testFile.open( OpenFlag_Write ); in SetUp()
4090 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4094 nError1 = testFile.write( ppStrSeq[nCount], strlen( ppStrSeq[nCount] ), nCount_write ); in SetUp()
4095 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4098 nError1 = testFile.close( ); in SetUp()
4099 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4113 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
4114 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4115 nError1 = testFile.readLine( aSequence ); 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()
4128 nError1 = testFile.open( OpenFlag_Read | OpenFlag_Write ); in TEST_F()
4129 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4132 nError1 = testFile.readLine( aSequence ); in TEST_F()
4133 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4135 nError1 = testFile.isEndOfFile( pEOF ); in TEST_F()
4136 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4149 ::osl::FileBase::RC nError1;
4163 nError1 = testFile.open( OpenFlag_Write ); in SetUp()
4164 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4165 nError1 = testFile.write( pBuffer_Char, sizeof( pBuffer_Char ), nCount_write ); in SetUp()
4166 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4167 nError1 = testFile.close( ); in SetUp()
4168 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4184 nError1 = ::osl::File::copy( aTmpName4, aTmpName6 ); in TEST_F()
4185 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4187 nError1 = testFile.open( OpenFlag_Create ); 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()
4237 ASSERT_TRUE( nError1 == FileBase::E_None ); in TEST_F()
4245 nError1 = newFile.getPos( nFilePointer ); 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;
4281 nError1 = testFile.open( OpenFlag_Write ); in SetUp()
4282 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4283 nError1 = testFile.write( pBuffer_Char, sizeof( pBuffer_Char ), nCount_write ); in SetUp()
4284 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4285 nError1 = testFile.close( ); 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()
4313 nError1 = ::osl::File::move( aTmpName4, aTmpName3 ); in TEST_F()
4315 …E(( ::osl::FileBase::E_ACCES == nError1 || ::osl::FileBase::E_ISDIR == nError1 ) ||( ::osl::FileBa… 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()
4357 nError1 = ::osl::FileBase::E_NOTDIR; 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()
4374 ASSERT_TRUE((::osl::FileBase::E_None == nError1 ) && 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;
4425 nError1 = testFile.open( OpenFlag_Write ); in SetUp()
4426 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4427 nError1 = testFile.write( pBuffer_Char, sizeof( pBuffer_Char ), nCount_write ); in SetUp()
4428 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4429 nError1 = testFile.close( ); in SetUp()
4430 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in SetUp()
4444 nError1 = ::osl::File::remove( aTmpName4 ); in TEST_F()
4449 ASSERT_TRUE(( ::osl::FileBase::E_None == nError1 ) && 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;
4509 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4510 ASSERT_TRUE( nError1 == FileBase::E_None); in TEST_F()
4513 nError1 = rItem.getFileStatus( rFileStatus ); in TEST_F()
4514 ASSERT_TRUE( nError1 == FileBase::E_None ); in TEST_F()
4522 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4523 ASSERT_TRUE( nError1 == FileBase::E_None); in TEST_F()
4526 nError1 = rItem.getFileStatus( rFileStatus ); in TEST_F()
4527 ASSERT_TRUE( nError1 == FileBase::E_None ); in TEST_F()
4549 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4550 ASSERT_TRUE( nError1 == FileBase::E_None); in TEST_F()
4553 nError1 = rItem.getFileStatus( rFileStatus ); in TEST_F()
4554 ASSERT_TRUE( nError1 == FileBase::E_None ); in TEST_F()
4571 ::osl::FileBase::RC nError1, nError2;
4609 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4610 ASSERT_TRUE(nError1 == FileBase::E_None) << errorToStr( nError1 ).pData; in TEST_F()
4613 nError1 = rItem.getFileStatus( rFileStatus ); in TEST_F()
4614 ASSERT_TRUE(nError1 == FileBase::E_None) << errorToStr( nError1 ).pData; in TEST_F()
4618 nError1 = rItem.getFileStatus( rFileStatus1 ); in TEST_F()
4619 ASSERT_TRUE(nError1 == FileBase::E_None) << errorToStr( nError1 ).pData; in TEST_F()
4623 nError1 = rItem.getFileStatus( rFileStatus2 ); in TEST_F()
4624 ASSERT_TRUE(nError1 == FileBase::E_None) << errorToStr( nError1 ).pData; in TEST_F()
4647 ::osl::FileBase::RC nError1, nError2;
4670 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4671 ASSERT_TRUE( nError1 == FileBase::E_None); in TEST_F()
4680 nError1 = tmp_file.write((void*)buffer, sizeof(buffer), written); in TEST_F()
4681 ASSERT_TRUE(nError1 == FileBase::E_None) << "write failed!"; in TEST_F()
4711 ::osl::FileBase::RC nError1, nError2;
4734 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
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;
4768 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4769 ASSERT_TRUE( FileBase::E_None == nError1 ); in TEST_F()
4773 nError1 = copyItem.getFileStatus( rFileStatus ); in TEST_F()
4774 ASSERT_TRUE( nError1 == FileBase::E_None ); in TEST_F()
4783 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4784 ASSERT_TRUE( FileBase::E_None == nError1 ); in TEST_F()
4789 nError1 = copyItem.getFileStatus( rFileStatus ); in TEST_F()
4790 ASSERT_TRUE( nError1 == FileBase::E_None ); in TEST_F()
4802 ::osl::FileBase::RC nError1, nError2;
4830 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4831 ASSERT_TRUE( FileBase::E_None == nError1 ); in TEST_F()
4843 ::osl::FileBase::RC nError1, nError2;
4868 nError1 = rItem.getFileStatus( rFileStatus ); in TEST_F()
4869 ASSERT_TRUE( nError1 == FileBase::E_None ); in TEST_F()
4879 nError1 = ::osl::DirectoryItem::get( aSysPath1, rItem ); in TEST_F()
4881 …ASSERT_TRUE(FileBase::E_INVAL == nError1) << "test for get function: use a system name instead of … in TEST_F()
4888 nError1 = ::osl::DirectoryItem::get( aTmpName3, rItem ); 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;
4923 nError1 = ::osl::DirectoryItem::get( aTmpName4, rItem ); in TEST_F()
4924 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4938 nError1 = ::osl::DirectoryItem::get( aTmpName6, rItem ); in TEST_F()
4951 nError1 = ::osl::DirectoryItem::get( aTmpName3, rItem ); in TEST_F()
4952 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
4977 ::osl::FileBase::RC nError1, nError2;
5002 nError1 = testDirectory.open( ); in TEST_F()
5003 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5008 ASSERT_TRUE(( ::osl::FileBase::E_None == nError1 ) && in TEST_F()
5017 nError1 = testDirectory.open( ); in TEST_F()
5018 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5023 ASSERT_TRUE(( ::osl::FileBase::E_None == nError1 ) && in TEST_F()
5034 ::osl::FileBase::RC nError1, nError2;
5058 nError1 = testDirectory.open( ); in TEST_F()
5065 ( ::osl::FileBase::E_None == nError1 ) && in TEST_F()
5074 nError1 = testDirectory.open( ); in TEST_F()
5075 if ( ::osl::FileBase::E_None == nError1 ) in TEST_F()
5081 …ASSERT_TRUE(( ::osl::FileBase::E_NOENT == nError1 )) << "test for open function: open a file that … in TEST_F()
5089 nError1 = testDirectory.open( ); in TEST_F()
5090 if ( ::osl::FileBase::E_None == nError1 ) in TEST_F()
5096 …ASSERT_TRUE(( ::osl::FileBase::E_INVAL == nError1 )) << "test for open function: using system path… in TEST_F()
5104 nError1 = testDirectory.open( ); in TEST_F()
5105 if ( ::osl::FileBase::E_None == nError1 ) 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;
5145 nError1 = testDirectory.open( ); in TEST_F()
5171 ::osl::FileBase::RC nError1, nError2;
5193 nError1 = testDirectory.open( ); in TEST_F()
5207 nError1 = testDirectory.close( ); 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;
5250 nError1 = testDirectory.open( ); in TEST_F()
5251 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5253 nError1 = testDirectory.getNextItem( rItem, 1 ); in TEST_F()
5254 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5262 nError1 = testDirectory.getNextItem( rItem, 0 ); in TEST_F()
5263 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5267 nError1 = rItem.getFileStatus( rFileStatus ); in TEST_F()
5269 nError1 = testDirectory.close( ); in TEST_F()
5270 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5285 nError1 = testDirectory.reset( ); in TEST_F()
5287 …ASSERT_TRUE(( ::osl::FileBase::E_NOENT == nError1 )) << "test for reset function: reset a non exis… in TEST_F()
5296 nError1 = testDirectory.reset( ); in TEST_F()
5298 …ASSERT_TRUE(( ::osl::FileBase::E_NOTDIR == nError1 ) || ( ::osl::FileBase::E_NOENT == nError1 )) <… in TEST_F()
5306 nError1 = testDirectory.reset( ); 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;
5350 nError1 = testDirectory.open( ); in TEST_F()
5351 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5362 nError1 = testDirectory.getNextItem( rItem, 2 ); in TEST_F()
5363 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5364 nError1 = rItem.getFileStatus( rFileStatus ); in TEST_F()
5365 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5377 nError1 = testDirectory.close( ); in TEST_F()
5378 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5386 nError1 = testDirectory.getNextItem( rItem ); in TEST_F()
5388 …ASSERT_TRUE(( ::osl::FileBase::E_INVAL == nError1 )) << "test for getNextItem function: retrieve a… in TEST_F()
5396 nError1 = testDirectory.open( ); in TEST_F()
5397 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5405 nError1 = testDirectory.close( ); in TEST_F()
5406 ASSERT_TRUE( ::osl::FileBase::E_None == nError1 ); in TEST_F()
5429 nError1 = testDirectory.open( ); in TEST_F()
5433 nError1 = testDirectory.getNextItem( rItem, 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()
5535 nError1 = ::osl::Directory::getVolumeInfo( aVolURL1, aVolumeInfo ); in checkVolumeInfo()
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()
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()
5634 ASSERT_TRUE(( osl::FileBase::E_None == nError1 ) && 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()
5679 ASSERT_TRUE(( osl::FileBase::E_None == nError1 ) && 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()
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 …(bExist == sal_True &&(( osl::FileBase::E_NOTDIR == nError1 ) || ( osl::FileBase::E_NOENT == nErro… in TEST_F()
5722 nError1 = ::osl::Directory::remove( aTmpName3 ); in TEST_F()
5725 …("test for remove function: try to remove a directory that is not empty.") + errorToStr( nError1 ); 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()