diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-01-24 15:37:36 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-01-24 15:37:36 +0100 |
commit | 83a5267651a3aff55589612891cee6b1e4c87041 (patch) | |
tree | 7ac02a22bbe49cc0c679b9189306bd25c54eddc5 /sal/qa/osl | |
parent | 82e0266b05dd53d0ce8b12bd5c76ae25872b87a9 (diff) |
dead code in qa
Diffstat (limited to 'sal/qa/osl')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 48 | ||||
-rw-r--r-- | sal/qa/osl/socket/osl_Socket.cxx | 15 | ||||
-rw-r--r-- | sal/qa/osl/socket/osl_Socket2.cxx | 15 | ||||
-rw-r--r-- | sal/qa/osl/socket/osl_StreamSocket.cxx | 28 |
4 files changed, 0 insertions, 106 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index a41c761d26e6..f2ad580670d3 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -2765,52 +2765,6 @@ namespace osl_FileStatus { } -/* - * LLA: removed, m_aSocketItem is wrong initialised. - */ - -// LLA: void getFileType_005() -// LLA: { -// LLA: #if defined ( SOLARIS ) //Socket file may differ in Windows -// LLA: // nError1 = ::osl::DirectoryItem::get( aTypeURL1, m_aSocketItem ); -// LLA: nError1 = ::osl::DirectoryItem::get( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/dev/null")), m_aSocketItem ); -// LLA: printError(nError1); -// LLA: CPPUNIT_ASSERT_MESSAGE("get Socket type file failed", ::osl::FileBase::E_None == nError1 ); -// LLA: -// LLA: //check for File type -// LLA: ::osl::FileStatus rFileStatus( osl_FileStatus_Mask_Type ); -// LLA: -// LLA: nError1 = m_aSocketItem.getFileStatus( rFileStatus ); -// LLA: CPPUNIT_ASSERT_MESSAGE("getFileStatus failed", ::osl::FileBase::E_None == nError1 ); -// LLA: -// LLA: if (rFileStatus.isValid( osl_FileStatus_Mask_Type )) -// LLA: { -// LLA: osl::FileStatus::Type eType = rFileStatus.getFileType(); -// LLA: printFileType(eType); -// LLA: CPPUNIT_ASSERT_MESSAGE( "test for getFileType function: Socket, Solaris version ", -// LLA: ( eType == ::osl::FileStatus::Socket ) ); -// LLA: } -// LLA: #endif -// LLA: } - - -// deprecated since there is a same case Directory::getNextItem_004 -/*#if defined 0 //( UNX ) //( SOLARIS ) //Link file is not defined in Windows - void getFileType_006() - { - nError1 = ::osl::DirectoryItem::get( aTypeURL3, m_aLinkItem ); - CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); - - //check for File type - ::osl::FileStatus rFileStatus( osl_FileStatus_Mask_Type ); - nError1 = m_aLinkItem.getFileStatus( rFileStatus ); - CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); - - CPPUNIT_ASSERT_MESSAGE( "test for getFileType function: Link, UNX version ", - ( ::osl::FileStatus::Link == rFileStatus.getFileType() ) ); - } -#endif */ - void getFileType_007() { #if defined ( SOLARIS ) //Special file is differ in Windows @@ -2837,8 +2791,6 @@ namespace osl_FileStatus CPPUNIT_TEST( getFileType_001 ); CPPUNIT_TEST( getFileType_002 ); CPPUNIT_TEST( getFileType_003 ); - // LLA: CPPUNIT_TEST( getFileType_005 ); - //CPPUNIT_TEST( getFileType_006 ); CPPUNIT_TEST( getFileType_007 ); SAL_CPPUNIT_TEST_SUITE_END(); };// class getFileType diff --git a/sal/qa/osl/socket/osl_Socket.cxx b/sal/qa/osl/socket/osl_Socket.cxx index 1c3b2125e2db..fac6c3128ebc 100644 --- a/sal/qa/osl/socket/osl_Socket.cxx +++ b/sal/qa/osl/socket/osl_Socket.cxx @@ -2484,26 +2484,11 @@ namespace osl_Socket t_print("#setOption_001: getOption is %" SAL_PRIdINT32 " \n", *pGetBuffer); -// LLA: sal_Bool * pbDontTouteSet = ( sal_Bool * )malloc( sizeof ( sal_Bool ) ); -// LLA: *pbDontTouteSet = sal_True; -// LLA: sal_Bool * pbDontTouteGet = ( sal_Bool * )malloc( sizeof ( sal_Bool ) ); -// LLA: *pbDontTouteGet = sal_False; -// LLA: asAcceptorSocket.setOption( osl_Socket_OptionDontRoute, pbDontTouteSet, sizeof ( sal_Bool ) ); -// LLA: asAcceptorSocket.getOption( osl_Socket_OptionDontRoute, pbDontTouteGet, sizeof ( sal_Bool ) ); -// LLA: ::rtl::OUString suError = outputError(::rtl::OUString::valueOf((sal_Int32)*pbDontTouteGet), -// LLA: ::rtl::OUString::valueOf((sal_Int32)*pbDontTouteSet), -// LLA: "test for setOption function: set osl_Socket_OptionDontRoute and then check"); -// LLA: -// LLA: sal_Bool bOK = ( sal_True == *pbDontTouteGet ); -// LLA: free( pbDontTouteSet ); -// LLA: free( pbDontTouteGet ); - CPPUNIT_ASSERT_MESSAGE( "test for setOption function: set option of a socket and then check.", ( sal_True == bOK ) && (sal_True == bOK2) ); free( pbDontRouteSet ); free( pGetBuffer ); -// LLA: CPPUNIT_ASSERT_MESSAGE( suError, sal_True == bOK ); } void setOption_002() diff --git a/sal/qa/osl/socket/osl_Socket2.cxx b/sal/qa/osl/socket/osl_Socket2.cxx index ba2c1d6294fc..040c64493d15 100644 --- a/sal/qa/osl/socket/osl_Socket2.cxx +++ b/sal/qa/osl/socket/osl_Socket2.cxx @@ -1121,26 +1121,11 @@ namespace osl_Socket t_print("#setOption_001: getOption is %" SAL_PRIdINT32 " \n", *pGetBuffer); -// LLA: sal_Bool * pbDontTouteSet = ( sal_Bool * )malloc( sizeof ( sal_Bool ) ); -// LLA: *pbDontTouteSet = sal_True; -// LLA: sal_Bool * pbDontTouteGet = ( sal_Bool * )malloc( sizeof ( sal_Bool ) ); -// LLA: *pbDontTouteGet = sal_False; -// LLA: asAcceptorSocket.setOption( osl_Socket_OptionDontRoute, pbDontTouteSet, sizeof ( sal_Bool ) ); -// LLA: asAcceptorSocket.getOption( osl_Socket_OptionDontRoute, pbDontTouteGet, sizeof ( sal_Bool ) ); -// LLA: ::rtl::OUString suError = outputError(::rtl::OUString::valueOf((sal_Int32)*pbDontTouteGet), -// LLA: ::rtl::OUString::valueOf((sal_Int32)*pbDontTouteSet), -// LLA: "test for setOption function: set osl_Socket_OptionDontRoute and then check"); -// LLA: -// LLA: sal_Bool bOK = ( sal_True == *pbDontTouteGet ); -// LLA: free( pbDontTouteSet ); -// LLA: free( pbDontTouteGet ); - CPPUNIT_ASSERT_MESSAGE( "test for setOption function: set option of a socket and then check.", ( sal_True == bOK ) && (sal_True == bOK2) ); free( pbDontRouteSet ); free( pGetBuffer ); -// LLA: CPPUNIT_ASSERT_MESSAGE( suError, sal_True == bOK ); } void setOption_002() diff --git a/sal/qa/osl/socket/osl_StreamSocket.cxx b/sal/qa/osl/socket/osl_StreamSocket.cxx index 9a9d63b53b12..1d36c3a2549f 100644 --- a/sal/qa/osl/socket/osl_StreamSocket.cxx +++ b/sal/qa/osl/socket/osl_StreamSocket.cxx @@ -1142,34 +1142,6 @@ namespace osl_StreamSocket public: -// LLA: orig void send_recv() -// LLA: orig { -// LLA: orig if ( ifAvailable(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("margritte.germany"))) == sal_True ) -// LLA: orig t_print("margritte is alive ! \n"); -// LLA: orig if ( ifAvailable(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("10.16.66.252"))) == sal_False ) -// LLA: orig { -// LLA: orig t_print("ip 10.16.66.252 is not alive! \n"); -// LLA: orig return; -// LLA: orig } -// LLA: orig ReadSocket2Thread myReadThread; -// LLA: orig myReadThread.create(); -// LLA: orig -// LLA: orig thread_sleep( 2 ); -// LLA: orig // send_Acceptor(); -// LLA: orig send_Connector(); -// LLA: orig -// LLA: orig myReadThread.join(); -// LLA: orig -// LLA: orig // statistics -// LLA: orig sal_uInt32 nLength = myReadThread.getCount(); -// LLA: orig bool bIsOk = myReadThread.isOk(); // check if the values are right. -// LLA: orig -// LLA: orig t_print("Length:=%d\n", nLength); -// LLA: orig t_print(" bIsOk:=%d\n", bIsOk); -// LLA: orig } - - // ----------------------------------------------------------------------------- - // LLA: send_Connector_2_margritte works, it send strings to echo server on margritte // but can not receive anything |