diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-22 21:20:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 03:38:49 +0000 |
commit | 0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch) | |
tree | 5024cba9f9ea5e3b23ea26025323f6aef39488d0 /sal/qa | |
parent | b81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff) |
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb
Reviewed-on: https://gerrit.libreoffice.org/8182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sal/qa')
39 files changed, 457 insertions, 457 deletions
diff --git a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx index d81c463220a1..1369421c2f9b 100644 --- a/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx +++ b/sal/qa/OStringBuffer/rtl_OStringBuffer.cxx @@ -34,9 +34,9 @@ using ::rtl::OString; // This file contains cppunit tests for the // OString and OStringBuffer classes -//------------------------------------------------------------------------ + // testing constructors -//------------------------------------------------------------------------ + namespace rtl_OStringBuffer { @@ -166,7 +166,7 @@ namespace rtl_OStringBuffer CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + class makeStringAndClear : public CppUnit::TestFixture { @@ -372,7 +372,7 @@ namespace rtl_OStringBuffer }; -// ----------------------------------------------------------------------------- + class getLength : public CppUnit::TestFixture { @@ -505,7 +505,7 @@ namespace rtl_OStringBuffer CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + class getCapacity : public CppUnit::TestFixture { @@ -689,7 +689,7 @@ namespace rtl_OStringBuffer CPPUNIT_TEST( getCapacity_013 ); CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + class ensureCapacity : public CppUnit::TestFixture { @@ -969,7 +969,7 @@ namespace rtl_OStringBuffer CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + class setLength : public CppUnit::TestFixture { @@ -1459,7 +1459,7 @@ namespace rtl_OStringBuffer CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + class csuc : public CppUnit::TestFixture { @@ -1505,7 +1505,7 @@ namespace rtl_OStringBuffer CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + class getStr : public CppUnit::TestFixture { @@ -1551,7 +1551,7 @@ namespace rtl_OStringBuffer CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + class append_001 : public CppUnit::TestFixture { @@ -1960,7 +1960,7 @@ namespace rtl_OStringBuffer CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + class append_002 : public CppUnit::TestFixture { @@ -2347,7 +2347,7 @@ namespace rtl_OStringBuffer #endif CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + class append_003 : public CppUnit::TestFixture { @@ -2733,7 +2733,7 @@ namespace rtl_OStringBuffer CPPUNIT_TEST( append_003_024 ); CPPUNIT_TEST_SUITE_END(); }; -//----------------------------------------------------------------------------- + class append_004 : public CppUnit::TestFixture { @@ -2967,9 +2967,9 @@ namespace rtl_OStringBuffer #endif CPPUNIT_TEST_SUITE_END(); }; -//------------------------------------------------------------------------ + // testing the method append(sal_Char c) -//------------------------------------------------------------------------ + class append_005 : public CppUnit::TestFixture { OString* arrOUS[5]; @@ -5177,7 +5177,7 @@ namespace rtl_OStringBuffer CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 ); CPPUNIT_TEST_SUITE_END(); }; -//------------------------------------------------------------------------ + // testing the method append( sal_Int32 i, sal_Int16 radix=2 ) // where i = large constants // testing the method append( sal_Int32 i, sal_Int16 radix=8 ) @@ -5188,7 +5188,7 @@ namespace rtl_OStringBuffer // where i = large constants // testing the method append( sal_Int32 i, sal_Int16 radix=36 ) // where i = large constants -//------------------------------------------------------------------------ + class append_006_Int32_Bounderies : public CppUnit::TestFixture { OString* arrOUS[5]; @@ -6188,7 +6188,7 @@ namespace rtl_OStringBuffer CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 ); CPPUNIT_TEST_SUITE_END(); }; -//------------------------------------------------------------------------ + // testing the method append( sal_Int32 i, sal_Int16 radix=2 ) // for negative value // testing the method append( sal_Int32 i, sal_Int16 radix=8 ) @@ -6199,7 +6199,7 @@ namespace rtl_OStringBuffer // for negative value // testing the method append( sal_Int32 i, sal_Int16 radix=36 ) // for negative value -//------------------------------------------------------------------------ + class append_006_Int32_Negative : public CppUnit::TestFixture { OString* arrOUS[5]; @@ -8246,9 +8246,9 @@ namespace rtl_OStringBuffer CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 ); CPPUNIT_TEST_SUITE_END(); }; -//------------------------------------------------------------------------ + // testing the method append( sal_Int32 i, sal_Int16 radix ) where radix = -5 -//------------------------------------------------------------------------ + class append_006_Int32_WrongRadix : public CppUnit::TestFixture { OString* arrOUS[5]; @@ -8377,7 +8377,7 @@ namespace rtl_OStringBuffer #endif CPPUNIT_TEST_SUITE_END(); }; -//------------------------------------------------------------------------ + class append_006_Int32_defaultParam : public CppUnit::TestFixture { OString* arrOUS[5]; @@ -8945,13 +8945,13 @@ namespace rtl_OStringBuffer #endif CPPUNIT_TEST_SUITE_END(); }; -//------------------------------------------------------------------------ + // testing the method append( sal_Int64 l, sal_Int16 radix=2 ) // testing the method append( sal_Int64 l, sal_Int16 radix=8 ) // testing the method append( sal_Int64 l, sal_Int16 radix=10 ) // testing the method append( sal_Int64 l, sal_Int16 radix=16 ) // testing the method append( sal_Int64 l, sal_Int16 radix=36 ) -//------------------------------------------------------------------------ + class append_007_Int64 : public CppUnit::TestFixture { OString* arrOUS[5]; @@ -10926,7 +10926,7 @@ namespace rtl_OStringBuffer CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 ); CPPUNIT_TEST_SUITE_END(); }; -//------------------------------------------------------------------------ + // testing the method append( sal_Int64 i, sal_Int16 radix=2 ) // where i = large constants // testing the method append( sal_Int64 i, sal_Int16 radix=8 ) @@ -10937,7 +10937,7 @@ namespace rtl_OStringBuffer // where i = large constants // testing the method append( sal_Int64 i, sal_Int16 radix=36 ) // where i = large constants -//------------------------------------------------------------------------ + class append_007_Int64_Bounderies : public CppUnit::TestFixture { OString* arrOUS[5]; @@ -11937,7 +11937,7 @@ namespace rtl_OStringBuffer CPPUNIT_TEST( append_049 ); CPPUNIT_TEST( append_050 ); CPPUNIT_TEST_SUITE_END(); }; -//------------------------------------------------------------------------ + // testing the method append( sal_Int64 i, sal_Int16 radix=2 ) // for negative value // testing the method append( sal_Int64 i, sal_Int16 radix=8 ) @@ -11948,7 +11948,7 @@ namespace rtl_OStringBuffer // for negative value // testing the method append( sal_Int64 i, sal_Int16 radix=36 ) // for negative value -//------------------------------------------------------------------------ + class append_007_Int64_Negative : public CppUnit::TestFixture { OString* arrOUS[5]; @@ -13998,9 +13998,9 @@ namespace rtl_OStringBuffer CPPUNIT_TEST( append_099 ); CPPUNIT_TEST( append_100 ); CPPUNIT_TEST_SUITE_END(); }; -//------------------------------------------------------------------------ + // testing the method append( sal_Int64 i, sal_Int16 radix ) where radix = -5 -//------------------------------------------------------------------------ + class append_007_Int64_WrongRadix : public CppUnit::TestFixture { OString* arrOUS[5]; @@ -14127,7 +14127,7 @@ namespace rtl_OStringBuffer #endif CPPUNIT_TEST_SUITE_END(); }; -//------------------------------------------------------------------------ + class append_007_Int64_defaultParam : public CppUnit::TestFixture { OString* arrOUS[5]; @@ -14690,9 +14690,9 @@ namespace rtl_OStringBuffer #endif CPPUNIT_TEST_SUITE_END(); }; -//------------------------------------------------------------------------ + // testing the method append( float f ) -//------------------------------------------------------------------------ + class checkfloat : public CppUnit::TestFixture { public: @@ -14710,7 +14710,7 @@ namespace rtl_OStringBuffer return false; } }; -// ----------------------------------------------------------------------------- + class append_008_float : public checkfloat { OString* arrOUS[5]; @@ -15444,9 +15444,9 @@ namespace rtl_OStringBuffer #endif CPPUNIT_TEST_SUITE_END(); }; -//------------------------------------------------------------------------ + // testing the method append( float f ) for negative value -//------------------------------------------------------------------------ + class append_008_Float_Negative : public checkfloat { OString* arrOUS[5]; @@ -16176,9 +16176,9 @@ namespace rtl_OStringBuffer #endif CPPUNIT_TEST_SUITE_END(); }; -//------------------------------------------------------------------------ + // testing the method append( double d ) -//------------------------------------------------------------------------ + class checkdouble : public CppUnit::TestFixture { @@ -16257,9 +16257,9 @@ namespace rtl_OStringBuffer CPPUNIT_TEST_SUITE_END(); }; -//------------------------------------------------------------------------ + // testing the method append( double f ) for negative value -//------------------------------------------------------------------------ + class append_009_Double_Negative : public checkdouble { OString* arrOUS[5]; @@ -16320,7 +16320,7 @@ namespace rtl_OStringBuffer }; } // namespace rtl_OStringBuffer -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::ctors); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::makeStringAndClear); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OStringBuffer::getLength); diff --git a/sal/qa/OStringBuffer/rtl_String_Utils.cxx b/sal/qa/OStringBuffer/rtl_String_Utils.cxx index 1b5cf71c7d0b..592935f16a6b 100644 --- a/sal/qa/OStringBuffer/rtl_String_Utils.cxx +++ b/sal/qa/OStringBuffer/rtl_String_Utils.cxx @@ -77,7 +77,7 @@ sal_Char* cpynstr( sal_Char* dst, const sal_Char* src, sal_uInt32 cnt ) return ( dst ); } -//------------------------------------------------------------------------ + bool cmpstr( const sal_Char* str1, const sal_Char* str2, sal_uInt32 len ) { const sal_Char* pBuf1 = str1; @@ -92,7 +92,7 @@ bool cmpstr( const sal_Char* str1, const sal_Char* str2, sal_uInt32 len ) } return( i == len ); } -//----------------------------------------------------------------------- + bool cmpstr( const sal_Char* str1, const sal_Char* str2 ) { const sal_Char* pBuf1 = str1; @@ -110,7 +110,7 @@ bool cmpstr( const sal_Char* str1, const sal_Char* str2 ) res = false; return (res); } -//------------------------------------------------------------------------ + bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2, sal_uInt32 len ) { const sal_Unicode* pBuf1 = str1; @@ -126,7 +126,7 @@ bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2, sal_uInt32 len ) return( i == len ); } -//----------------------------------------------------------------------- + bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2 ) { const sal_Unicode* pBuf1 = str1; diff --git a/sal/qa/osl/condition/osl_Condition.cxx b/sal/qa/osl/condition/osl_Condition.cxx index 470ffaf4dae4..48e04011e38a 100644 --- a/sal/qa/osl/condition/osl_Condition.cxx +++ b/sal/qa/osl/condition/osl_Condition.cxx @@ -18,9 +18,9 @@ */ -//------------------------------------------------------------------------ + // include files -//------------------------------------------------------------------------ + #include <osl_Condition_Const.h> #include <stdlib.h> @@ -28,9 +28,9 @@ using namespace osl; using namespace rtl; -//------------------------------------------------------------------------ + // helper functions and classes -//------------------------------------------------------------------------ + /** print Boolean value. */ @@ -93,9 +93,9 @@ protected: }; -//------------------------------------------------------------------------ + // test code start here -//------------------------------------------------------------------------ + namespace osl_Condition { @@ -339,18 +339,18 @@ namespace osl_Condition }; // class check -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(osl_Condition::ctors); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Condition::set); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Condition::reset); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Condition::wait); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Condition::check); -// ----------------------------------------------------------------------------- + } // namespace osl_Condition -// ----------------------------------------------------------------------------- + CPPUNIT_PLUGIN_IMPLEMENT(); diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index 48fab3d84afd..b5c5faaf05e8 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -17,9 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -//------------------------------------------------------------------------ + // include files -//------------------------------------------------------------------------ + #include <sal/types.h> #include <rtl/ustring.hxx> #include <rtl/ustrbuf.hxx> @@ -47,9 +47,9 @@ using ::rtl::OUStringToOString; using ::rtl::OString; using ::rtl::OStringToOUString; -//------------------------------------------------------------------------ + // helper functions -//------------------------------------------------------------------------ + /** detailed wrong message. */ @@ -638,18 +638,18 @@ inline ::rtl::OUString getCurrentPID( void ); -//------------------------------------------------------------------------ + // Beginning of the test cases for FileBase class -//------------------------------------------------------------------------ + namespace osl_FileBase { - //--------------------------------------------------------------------- + // testing the method // static inline RC getAbsoluteFileURL( const ::rtl::OUString& ustrBaseDirectoryURL, // const ::rtl::OUString& ustrRelativeFileURL, // ::rtl::OUString& ustrAbsoluteFileURL ) - //--------------------------------------------------------------------- + class getAbsoluteFileURL:public CppUnit::TestFixture { @@ -799,13 +799,13 @@ namespace osl_FileBase deleteTestDirectory( aUStrBase ); deleteTestDirectory( aUStrUpBase ); } - //--------------------------------------------------------------------- + // testing two methods: // static inline RC getSystemPathFromFileURL( const ::rtl::OUString& ustrFileURL, // ::rtl::OUString& ustrSystemPath ) // static RC getFileURLFromSystemPath( const ::rtl::OUString & ustrSystemPath, // ::rtl::OUString & ustrFileURL ); - //--------------------------------------------------------------------- + class SystemPath_FileURL:public CppUnit::TestFixture { //::osl::FileBase aFileBase; @@ -1193,12 +1193,12 @@ namespace osl_FileBase - //--------------------------------------------------------------------- + // testing the method // static inline RC searchFileURL( const ::rtl::OUString& ustrFileName, // const ::rtl::OUString& ustrSearchPath, // ::rtl::OUString& ustrFileURL ) - //--------------------------------------------------------------------- + class searchFileURL:public CppUnit::TestFixture { //::osl::FileBase aFileBase; @@ -1293,10 +1293,10 @@ namespace osl_FileBase };// class searchFileURL - //--------------------------------------------------------------------- + // testing the method // static inline RC getTempDirURL( ::rtl::OUString& ustrTempDirURL ) - //--------------------------------------------------------------------- + class getTempDirURL:public CppUnit::TestFixture { //::osl::FileBase aFileBase; @@ -1338,12 +1338,12 @@ namespace osl_FileBase };// class getTempDirURL - //--------------------------------------------------------------------- + // testing the method // static inline RC createTempFile( ::rtl::OUString* pustrDirectoryURL, // oslFileHandle* pHandle, // ::rtl::OUString* pustrTempFileURL) - //--------------------------------------------------------------------- + class createTempFile:public CppUnit::TestFixture { //::osl::FileBase aFileBase; @@ -1441,7 +1441,7 @@ namespace osl_FileBase CPPUNIT_TEST_SUITE_END(); };// class createTempFile - // ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileBase::getAbsoluteFileURL, "osl_FileBase" ); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileBase::SystemPath_FileURL, "osl_FileBase" ); // CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileBase::getFileURLFromSystemPath, "osl_FileBase" ); @@ -1451,16 +1451,16 @@ namespace osl_FileBase }// namespace osl_FileBase -//------------------------------------------------------------------------ + // Beginning of the test cases for VolumeInfo class -//------------------------------------------------------------------------ + namespace osl_VolumeInfo { - //--------------------------------------------------------------------- + // testing the method // VolumeInfo( sal_uInt32 nMask ): _nMask( nMask ) - //--------------------------------------------------------------------- + class ctors : public CppUnit::TestFixture { ::rtl::OUString aUStr; @@ -1554,10 +1554,10 @@ namespace osl_VolumeInfo };// class ctors - //--------------------------------------------------------------------- + // testing the method // inline sal_Bool isValid( sal_uInt32 nMask ) const - //--------------------------------------------------------------------- + class isValid : public CppUnit::TestFixture { ::osl::VolumeDevice aVolumeDevice; @@ -1633,10 +1633,10 @@ namespace osl_VolumeInfo CPPUNIT_TEST_SUITE_END(); };// class isValid - //--------------------------------------------------------------------- + // testing the method // inline sal_Bool getRemoteFlag() const - //--------------------------------------------------------------------- + class getRemoteFlag : public CppUnit::TestFixture { ::osl::VolumeDevice aVolumeDevice; @@ -1684,10 +1684,10 @@ namespace osl_VolumeInfo CPPUNIT_TEST_SUITE_END(); };// class getRemoteFlag - //--------------------------------------------------------------------- + // testing the method // inline sal_Bool getRemoveableFlag() const - //--------------------------------------------------------------------- + class getRemoveableFlag : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -1725,10 +1725,10 @@ namespace osl_VolumeInfo };// class getRemoveableFlag - //--------------------------------------------------------------------- + // testing the method // inline sal_Bool getCompactDiscFlag() const - //--------------------------------------------------------------------- + class getCompactDiscFlag : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -1766,10 +1766,10 @@ namespace osl_VolumeInfo };// class getCompactDiscFlag - //--------------------------------------------------------------------- + // testing the method // inline sal_Bool getFloppyDiskFlag() const - //--------------------------------------------------------------------- + class getFloppyDiskFlag : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -1807,10 +1807,10 @@ namespace osl_VolumeInfo };// class getFloppyDiskFlag - //--------------------------------------------------------------------- + // testing the method // inline sal_Bool getFixedDiskFlag() const - //--------------------------------------------------------------------- + class getFixedDiskFlag : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -1847,10 +1847,10 @@ namespace osl_VolumeInfo CPPUNIT_TEST_SUITE_END(); };// class getFixedDiskFlag - //--------------------------------------------------------------------- + // testing the method // inline sal_Bool getRAMDiskFlag() const - //--------------------------------------------------------------------- + class getRAMDiskFlag : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -1888,10 +1888,10 @@ namespace osl_VolumeInfo };// class getRAMDiskFlag - //--------------------------------------------------------------------- + // testing the method // inline sal_uInt64 getTotalSpace() const - //--------------------------------------------------------------------- + class getTotalSpace : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -1970,10 +1970,10 @@ namespace osl_VolumeInfo CPPUNIT_TEST_SUITE_END(); };// class getTotalSpace - //--------------------------------------------------------------------- + // testing the method // inline sal_uInt64 getFreeSpace() const - //--------------------------------------------------------------------- + class getFreeSpace : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -2052,10 +2052,10 @@ namespace osl_VolumeInfo CPPUNIT_TEST_SUITE_END(); };// class getFreeSpace - //--------------------------------------------------------------------- + // testing the method // inline sal_uInt64 getUsedSpace() const - //--------------------------------------------------------------------- + class getUsedSpace : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -2136,10 +2136,10 @@ namespace osl_VolumeInfo };// class getUsedSpace - //--------------------------------------------------------------------- + // testing the method // inline sal_uInt32 getMaxNameLength() const - //--------------------------------------------------------------------- + class getMaxNameLength : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -2196,10 +2196,10 @@ namespace osl_VolumeInfo };// class getMaxNameLength - //--------------------------------------------------------------------- + // testing the method // inline sal_uInt32 getMaxPathLength() const - //--------------------------------------------------------------------- + class getMaxPathLength : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -2250,10 +2250,10 @@ namespace osl_VolumeInfo };// class getMaxPathLength - //--------------------------------------------------------------------- + // testing the method // inline ::rtl::OUString getFileSystemName() const - //--------------------------------------------------------------------- + class getFileSystemName : public CppUnit::TestFixture { ::rtl::OUString aUStr; @@ -2311,10 +2311,10 @@ namespace osl_VolumeInfo CPPUNIT_TEST_SUITE_END(); };// class getFileSystemName - //--------------------------------------------------------------------- + // testing the method // inline VolumeDevice getDeviceHandle() const - //--------------------------------------------------------------------- + class getDeviceHandle : public CppUnit::TestFixture { ::rtl::OUString aUStr; @@ -2342,7 +2342,7 @@ namespace osl_VolumeInfo };// class getDeviceHandle - // ----------------------------------------------------------------------------- + /*CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_VolumeInfo::ctors, "osl_VolumeInfo" ); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_VolumeInfo::isValid, "osl_VolumeInfo" ); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_VolumeInfo::getRemoteFlag, "osl_VolumeInfo" ); @@ -2362,16 +2362,16 @@ namespace osl_VolumeInfo -//------------------------------------------------------------------------ + // Beginning of the test cases for VolumeDevice class -//------------------------------------------------------------------------ + namespace osl_FileStatus { - //--------------------------------------------------------------------- + // testing the method // FileStatus( sal_uInt32 nMask ): _nMask( nMask ) - //--------------------------------------------------------------------- + class ctors : public CppUnit::TestFixture { ::rtl::OUString aUStr; @@ -2440,10 +2440,10 @@ namespace osl_FileStatus };// class ctors - //--------------------------------------------------------------------- + // testing the method // inline sal_Bool isValid( sal_uInt32 nMask ) const - //--------------------------------------------------------------------- + class isValid : public CppUnit::TestFixture { ::rtl::OUString aUStr; @@ -2643,10 +2643,10 @@ namespace osl_FileStatus };// class ctors - //--------------------------------------------------------------------- + // testing the method // inline Type getFileType() const - //--------------------------------------------------------------------- + class getFileType : public CppUnit::TestFixture { ::rtl::OUString aUStr; @@ -2774,10 +2774,10 @@ namespace osl_FileStatus CPPUNIT_TEST_SUITE_END(); };// class getFileType - //--------------------------------------------------------------------- + // testing the method // inline sal_uInt64 getAttributes() const - //--------------------------------------------------------------------- + class getAttributes : public CppUnit::TestFixture { ::rtl::OUString aTypeURL, aTypeURL_Hid; @@ -2904,10 +2904,10 @@ namespace osl_FileStatus CPPUNIT_TEST_SUITE_END(); };// class getAttributes - //--------------------------------------------------------------------- + // testing the method // inline TimeValue getAccessTime() const - //--------------------------------------------------------------------- + class getAccessTime : public CppUnit::TestFixture { ::rtl::OUString aTypeURL; @@ -2960,10 +2960,10 @@ namespace osl_FileStatus CPPUNIT_TEST_SUITE_END(); };// class getAccessTime - //--------------------------------------------------------------------- + // testing the method // inline TimeValue getModifyTime() const - //--------------------------------------------------------------------- + class getModifyTime : public CppUnit::TestFixture { ::rtl::OUString aTypeURL; @@ -3016,10 +3016,10 @@ namespace osl_FileStatus };// class getModifyTime - //--------------------------------------------------------------------- + // testing the method // inline sal_uInt64 getFileSize() const - //--------------------------------------------------------------------- + class getFileSize : public CppUnit::TestFixture { ::rtl::OUString aTypeURL; @@ -3082,10 +3082,10 @@ namespace osl_FileStatus CPPUNIT_TEST_SUITE_END(); };// class getFileSize - //--------------------------------------------------------------------- + // testing the method // inline ::rtl::OUString getFileName() const - //--------------------------------------------------------------------- + class getFileName : public CppUnit::TestFixture { ::rtl::OUString aTypeURL; @@ -3127,10 +3127,10 @@ namespace osl_FileStatus CPPUNIT_TEST_SUITE_END(); };// class getFileName - //--------------------------------------------------------------------- + // testing the method // inline ::rtl::OUString getFileURL() const - //--------------------------------------------------------------------- + class getFileURL : public CppUnit::TestFixture { ::rtl::OUString aTypeURL; @@ -3171,10 +3171,10 @@ namespace osl_FileStatus CPPUNIT_TEST_SUITE_END(); };// class getFileURL - //--------------------------------------------------------------------- + // testing the method // inline ::rtl::OUString getLinkTargetURL() const - //--------------------------------------------------------------------- + class getLinkTargetURL : public CppUnit::TestFixture { ::rtl::OUString aTypeURL; @@ -3243,7 +3243,7 @@ namespace osl_FileStatus CPPUNIT_TEST_SUITE_END(); };// class getLinkTargetURL - // ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileStatus::ctors, "osl_FileStatus" ); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileStatus::isValid, "osl_FileStatus" ); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileStatus::getFileType, "osl_FileStatus" ); @@ -3258,15 +3258,15 @@ namespace osl_FileStatus -//------------------------------------------------------------------------ + // Beginning of the test cases for File class -//------------------------------------------------------------------------ + namespace osl_File { - //--------------------------------------------------------------------- + // testing the method // File( const ::rtl::OUString& ustrFileURL ) - //--------------------------------------------------------------------- + class ctors : public CppUnit::TestFixture { // ::osl::FileBase::RC nError1; @@ -3318,10 +3318,10 @@ namespace osl_File CPPUNIT_TEST_SUITE_END(); };// class ctors - //--------------------------------------------------------------------- + // testing the method // inline RC open( sal_uInt32 uFlags ) - //--------------------------------------------------------------------- + class open : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2, nError3; @@ -3443,10 +3443,10 @@ namespace osl_File CPPUNIT_TEST_SUITE_END(); };// class open - //--------------------------------------------------------------------- + // testing the method // inline RC close() - //--------------------------------------------------------------------- + class close : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2, nError3; @@ -3508,10 +3508,10 @@ namespace osl_File };// class close - //--------------------------------------------------------------------- + // testing the method // inline RC setPos( sal_uInt32 uHow, sal_Int64 uPos ) - //--------------------------------------------------------------------- + class setPos : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -3613,10 +3613,10 @@ namespace osl_File CPPUNIT_TEST_SUITE_END(); };// class setPos - //--------------------------------------------------------------------- + // testing the method // inline RC getPos( sal_uInt64& uPos ) - //--------------------------------------------------------------------- + class getPos : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -3679,10 +3679,10 @@ namespace osl_File };// class getPos - //--------------------------------------------------------------------- + // testing the method // inline RC isEndOfFile( sal_Bool *pIsEOF ) - //--------------------------------------------------------------------- + class isEndOfFile : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -3774,10 +3774,10 @@ namespace osl_File };// class isEndOfFile - //--------------------------------------------------------------------- + // testing the method // inline RC setSize( sal_uInt64 uSize ) - //--------------------------------------------------------------------- + class setSize : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -3874,10 +3874,10 @@ namespace osl_File };// class setSize - //--------------------------------------------------------------------- + // testing the method // inline RC read( void *pBuffer, sal_uInt64 uBytesRequested, sal_uInt64& rBytesRead ) - //--------------------------------------------------------------------- + class read : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -3963,10 +3963,10 @@ namespace osl_File CPPUNIT_TEST_SUITE_END(); };// class read - //--------------------------------------------------------------------- + // testing the method // inline RC write(const void *pBuffer, sal_uInt64 uBytesToWrite, sal_uInt64& rBytesWritten) - //--------------------------------------------------------------------- + class write : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -4023,10 +4023,10 @@ namespace osl_File CPPUNIT_TEST_SUITE_END(); };// class write - //--------------------------------------------------------------------- + // testing the method // inline RC readLine( ::rtl::ByteSequence& aSeq ) - //--------------------------------------------------------------------- + class readLine : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -4136,10 +4136,10 @@ namespace osl_File CPPUNIT_TEST_SUITE_END(); };// class readLine - //--------------------------------------------------------------------- + // testing the method // inline static RC copy( const ::rtl::OUString& ustrSourceFileURL, const ::rtl::OUString& ustrDestFileURL ) - //--------------------------------------------------------------------- + class copy : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -4271,10 +4271,10 @@ namespace osl_File CPPUNIT_TEST_SUITE_END(); };// class copy - //--------------------------------------------------------------------- + // testing the method // inline static RC move( const ::rtl::OUString& ustrSourceFileURL, const ::rtl::OUString& ustrDestFileURL ) - //--------------------------------------------------------------------- + class move : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2; @@ -4433,10 +4433,10 @@ namespace osl_File };// class move - //--------------------------------------------------------------------- + // testing the method // inline static RC remove( const ::rtl::OUString& ustrFileURL ) - //--------------------------------------------------------------------- + class remove : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2; @@ -4519,10 +4519,10 @@ namespace osl_File };// class remove - //--------------------------------------------------------------------- + // testing the method // inline static RC setAttributes( const ::rtl::OUString& ustrFileURL, sal_uInt64 uAttributes ) - //--------------------------------------------------------------------- + class setAttributes : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2; @@ -4611,14 +4611,14 @@ namespace osl_File };// class setAttributes - //--------------------------------------------------------------------- + // testing the method // inline static RC setTime( // const ::rtl::OUString& ustrFileURL, // const TimeValue& rCreationTime, // const TimeValue& rLastAccessTime, // const TimeValue& rLastWriteTime ) - //--------------------------------------------------------------------- + class setTime : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2; @@ -4699,10 +4699,10 @@ namespace osl_File CPPUNIT_TEST_SUITE_END(); };// class setTime - //--------------------------------------------------------------------- + // testing the method // inline static RC sync() - //--------------------------------------------------------------------- + class sync : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2; @@ -4761,7 +4761,7 @@ namespace osl_File CPPUNIT_TEST_SUITE_END(); };// class setTime - // ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_File::ctors, "osl_File" ); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_File::open, "osl_File" ); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_File::close, "osl_File" ); @@ -4784,15 +4784,15 @@ namespace osl_File }// namespace osl_File -//------------------------------------------------------------------------ + // Beginning of the test cases for DirectoryItem class -//------------------------------------------------------------------------ + namespace osl_DirectoryItem { - //--------------------------------------------------------------------- + // testing the method // DirectoryItem(): _pData( NULL ) - //--------------------------------------------------------------------- + class ctors : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -4831,10 +4831,10 @@ namespace osl_DirectoryItem CPPUNIT_TEST_SUITE_END(); };// class ctors - //--------------------------------------------------------------------- + // testing the method // DirectoryItem( const DirectoryItem& rItem ): _pData( rItem._pData) - //--------------------------------------------------------------------- + class copy_assin_Ctors : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -4894,10 +4894,10 @@ namespace osl_DirectoryItem CPPUNIT_TEST_SUITE_END(); };// class copy_assin_Ctors - //--------------------------------------------------------------------- + // testing the method // inline sal_Bool is() - //--------------------------------------------------------------------- + class is : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -4943,10 +4943,10 @@ namespace osl_DirectoryItem CPPUNIT_TEST_SUITE_END(); };// class is - //--------------------------------------------------------------------- + // testing the method // static inline RC get( const ::rtl::OUString& ustrFileURL, DirectoryItem& rItem ) - //--------------------------------------------------------------------- + class get : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2; @@ -5010,10 +5010,10 @@ namespace osl_DirectoryItem CPPUNIT_TEST_SUITE_END(); };// class get - //--------------------------------------------------------------------- + // testing the method // inline RC getFileStatus( FileStatus& rStatus ) - //--------------------------------------------------------------------- + class getFileStatus : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2; @@ -5099,15 +5099,15 @@ namespace osl_DirectoryItem CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_DirectoryItem::getFileStatus, "osl_DirectoryItem" ); }// namespace osl_DirectoryItem -//------------------------------------------------------------------------ + // Beginning of the test cases for Directory class -//------------------------------------------------------------------------ + namespace osl_Directory { - //--------------------------------------------------------------------- + // testing the method // Directory( const ::rtl::OUString& strPath ): _pData( 0 ), _aPath( strPath ) - //--------------------------------------------------------------------- + class ctors : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2; @@ -5169,10 +5169,10 @@ namespace osl_Directory CPPUNIT_TEST_SUITE_END(); };// class ctors - //--------------------------------------------------------------------- + // testing the method // inline RC open() - //--------------------------------------------------------------------- + class open : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2; @@ -5268,10 +5268,10 @@ namespace osl_Directory CPPUNIT_TEST_SUITE_END(); };// class open - //--------------------------------------------------------------------- + // testing the method // inline sal_Bool isOpen() { return _pData != NULL; }; - //--------------------------------------------------------------------- + class isOpen : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2; @@ -5326,10 +5326,10 @@ namespace osl_Directory CPPUNIT_TEST_SUITE_END(); };// class isOpen - //--------------------------------------------------------------------- + // testing the method // inline RC close() - //--------------------------------------------------------------------- + class close : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2; @@ -5383,10 +5383,10 @@ namespace osl_Directory CPPUNIT_TEST_SUITE_END(); };// class close - //--------------------------------------------------------------------- + // testing the method // inline RC reset() - //--------------------------------------------------------------------- + class reset : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2; @@ -5499,10 +5499,10 @@ namespace osl_Directory CPPUNIT_TEST_SUITE_END(); };// class reset - //--------------------------------------------------------------------- + // testing the method // inline RC getNextItem( DirectoryItem& rItem, sal_uInt32 nHint = 0 ) - //--------------------------------------------------------------------- + class getNextItem : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2; @@ -5670,10 +5670,10 @@ namespace osl_Directory CPPUNIT_TEST_SUITE_END(); };// class getNextItem - //--------------------------------------------------------------------- + // testing the method // inline static RC getVolumeInfo( const ::rtl::OUString& ustrDirectoryURL, VolumeInfo& rInfo ) - //--------------------------------------------------------------------- + class getVolumeInfo : public CppUnit::TestFixture { ::osl::FileBase::RC nError1; @@ -5849,10 +5849,10 @@ namespace osl_Directory };// class getVolumeInfo - //--------------------------------------------------------------------- + // testing the method // inline static RC create( const ::rtl::OUString& ustrDirectoryURL ) - //--------------------------------------------------------------------- + class create : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2; @@ -5928,10 +5928,10 @@ namespace osl_Directory CPPUNIT_TEST_SUITE_END(); };// class create - //--------------------------------------------------------------------- + // testing the method // inline static RC remove( const ::rtl::OUString& ustrDirectoryURL ) - //--------------------------------------------------------------------- + class remove : public CppUnit::TestFixture { ::osl::FileBase::RC nError1, nError2; @@ -6249,7 +6249,7 @@ namespace osl_Directory }; // class createPath - // ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION( osl_Directory::ctors ); CPPUNIT_TEST_SUITE_REGISTRATION( osl_Directory::open ); CPPUNIT_TEST_SUITE_REGISTRATION( osl_Directory::isOpen ); diff --git a/sal/qa/osl/file/osl_old_test_file.cxx b/sal/qa/osl/file/osl_old_test_file.cxx index d46a8c6fa5ca..172ff028d372 100644 --- a/sal/qa/osl/file/osl_old_test_file.cxx +++ b/sal/qa/osl/file/osl_old_test_file.cxx @@ -38,7 +38,7 @@ namespace osl_test_file { -// ----------------------------------------------------------------------------- + class oldtestfile : public CppUnit::TestFixture { @@ -144,10 +144,10 @@ void oldtestfile::test_file_004() } // namespace osl_test_file -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION( osl_test_file::oldtestfile); -// ----------------------------------------------------------------------------- + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sal/qa/osl/module/osl_Module.cxx b/sal/qa/osl/module/osl_Module.cxx index 1ffb63cb5bd0..84e851e6bc30 100644 --- a/sal/qa/osl/module/osl_Module.cxx +++ b/sal/qa/osl/module/osl_Module.cxx @@ -18,9 +18,9 @@ */ -//------------------------------------------------------------------------ + // include files -//------------------------------------------------------------------------ + #include <osl_Module_Const.h> using namespace osl; @@ -28,9 +28,9 @@ using namespace osl; using ::rtl::OUString; using ::rtl::OUStringToOString; using ::rtl::OString; -//------------------------------------------------------------------------ + // helper functions and classes -//------------------------------------------------------------------------ + /** print Boolean value. */ @@ -143,9 +143,9 @@ inline void deleteTestFile( const ::rtl::OUString filename ) } -//------------------------------------------------------------------------ + // test code start here -//------------------------------------------------------------------------ + namespace osl_Module { @@ -449,7 +449,7 @@ namespace osl_Module CPPUNIT_TEST_SUITE_END( ); }; // class getFunctionSymbol -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(osl_Module::ctors); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Module::getUrlFromAddress); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Module::load); @@ -458,11 +458,11 @@ CPPUNIT_TEST_SUITE_REGISTRATION(osl_Module::is); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Module::getSymbol); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Module::optr_oslModule); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Module::getFunctionSymbol); -// ----------------------------------------------------------------------------- + } // namespace osl_Module -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/osl/mutex/osl_Mutex.cxx b/sal/qa/osl/mutex/osl_Mutex.cxx index 1e26c62ae85e..096de9c9b8c9 100644 --- a/sal/qa/osl/mutex/osl_Mutex.cxx +++ b/sal/qa/osl/mutex/osl_Mutex.cxx @@ -17,9 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -//------------------------------------------------------------------------ + // include files -//------------------------------------------------------------------------ + #include <sal/types.h> #include "cppunit/TestAssert.h" #include "cppunit/TestFixture.h" @@ -30,9 +30,9 @@ using namespace osl; using namespace rtl; -//------------------------------------------------------------------------ + // helper functions -//------------------------------------------------------------------------ + /** print a UNI_CODE String. */ @@ -76,9 +76,9 @@ namespace ThreadHelper } -//------------------------------------------------------------------------ + // Beginning of the test cases for osl_Mutex class -//------------------------------------------------------------------------ + /** mutually exclusive data @@ -263,7 +263,7 @@ protected: }; -//-------------------------------------------------------------- + namespace osl_Mutex { @@ -548,7 +548,7 @@ namespace osl_Mutex CPPUNIT_TEST_SUITE_END(); }; // class getGlobalMutex -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Mutex::ctor, "osl_Mutex"); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Mutex::acquire, "osl_Mutex"); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Mutex::tryToAcquire, "osl_Mutex"); @@ -557,9 +557,9 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Mutex::getGlobalMutex, "osl_Mutex"); } // namespace osl_Mutex -//------------------------------------------------------------------------ + // Beginning of the test cases for osl_Guard class -//------------------------------------------------------------------------ + class GuardThread : public Thread { @@ -636,14 +636,14 @@ namespace osl_Guard CPPUNIT_TEST_SUITE_END(); }; // class ctor -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Guard::ctor, "osl_Guard"); } // namespace osl_Guard -//------------------------------------------------------------------------ + // Beginning of the test cases for osl_ClearableGuard class -//------------------------------------------------------------------------ + /** Thread for test ClearableGuard */ @@ -673,7 +673,7 @@ protected: } }; -// ----------------------------------------------------------------------------- + namespace osl_ClearableGuard { @@ -777,15 +777,15 @@ namespace osl_ClearableGuard CPPUNIT_TEST_SUITE_END( ); }; // class clear -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_ClearableGuard::ctor, "osl_ClearableGuard" ); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_ClearableGuard::clear, "osl_ClearableGuard" ); } // namespace osl_ClearableGuard -//------------------------------------------------------------------------ + // Beginning of the test cases for osl_ResettableGuard class -//------------------------------------------------------------------------ + /** Thread for test ResettableGuard */ @@ -813,7 +813,7 @@ protected: } }; -// ----------------------------------------------------------------------------- + namespace osl_ResettableGuard { class ctor : public CppUnit::TestFixture @@ -903,7 +903,7 @@ namespace osl_ResettableGuard CPPUNIT_TEST_SUITE_END(); }; // class reset -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(osl_ResettableGuard::ctor); CPPUNIT_TEST_SUITE_REGISTRATION(osl_ResettableGuard::reset); } // namespace osl_ResettableGuard diff --git a/sal/qa/osl/pipe/osl_Pipe.cxx b/sal/qa/osl/pipe/osl_Pipe.cxx index 6e109b7a3c97..58cce66b1b52 100644 --- a/sal/qa/osl/pipe/osl_Pipe.cxx +++ b/sal/qa/osl/pipe/osl_Pipe.cxx @@ -17,9 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -//------------------------------------------------------------------------ + // include files -//------------------------------------------------------------------------ + #include <sal/types.h> #include "cppunit/TestAssert.h" @@ -47,9 +47,9 @@ using ::rtl::OUString; using ::rtl::OUStringToOString; using ::rtl::OString; -//------------------------------------------------------------------------ + // helper functions -//------------------------------------------------------------------------ + /** print Boolean value. */ @@ -118,9 +118,9 @@ inline void printPipeError( ::osl::Pipe aPipe ) -//------------------------------------------------------------------------ + // pipe name and transfer contents -//------------------------------------------------------------------------ + const rtl::OUString aTestPipeName("testpipe2"); const rtl::OUString aTestPipe1("testpipe1"); const rtl::OUString aTestString("Sun Microsystems"); @@ -128,16 +128,16 @@ const rtl::OUString aTestString("Sun Microsystems"); const OString m_pTestString1("Sun Microsystems"); const OString m_pTestString2("test pipe PASS/OK"); -//------------------------------------------------------------------------ + // test code start here -//------------------------------------------------------------------------ + namespace osl_Pipe { -//------------------------------------------------------------------------ + // most return value -1 denote a fail of operation. -//------------------------------------------------------------------------ + #define OSL_PIPE_FAIL -1 /** testing the methods: @@ -623,7 +623,7 @@ namespace osl_Pipe }; // class getHandle -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(osl_Pipe::ctors); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Pipe::is); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Pipe::create); @@ -633,7 +633,7 @@ namespace osl_Pipe CPPUNIT_TEST_SUITE_REGISTRATION(osl_Pipe::close); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Pipe::getError); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Pipe::getHandle); -// ----------------------------------------------------------------------------- + } // namespace osl_Pipe @@ -781,7 +781,7 @@ namespace osl_StreamPipe osl_waitThread(&nTV); } // test read/write & send/recv data to pipe - // ----------------------------------------------------------------------------- + class Pipe_DataSink_Thread : public Thread { @@ -922,11 +922,11 @@ namespace osl_StreamPipe CPPUNIT_TEST_SUITE_END( ); }; // class recv -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(osl_StreamPipe::ctors); //CPPUNIT_TEST_SUITE_REGISTRATION(osl_StreamPipe::assign); CPPUNIT_TEST_SUITE_REGISTRATION(osl_StreamPipe::recv); -// ----------------------------------------------------------------------------- + } // namespace osl_StreamPipe diff --git a/sal/qa/osl/process/osl_Thread.cxx b/sal/qa/osl/process/osl_Thread.cxx index 756df0bf2adb..e13797b475cf 100644 --- a/sal/qa/osl/process/osl_Thread.cxx +++ b/sal/qa/osl/process/osl_Thread.cxx @@ -24,9 +24,9 @@ #include <time.h> #endif -//------------------------------------------------------------------------ + // include files -//------------------------------------------------------------------------ + #include <sal/types.h> #include <rtl/string.hxx> @@ -50,7 +50,7 @@ using namespace osl; using ::rtl::OString; -// ----------------------------------------------------------------------------- + // Small stopwatch class StopWatch { TimeValue t1,t2; // Start and stoptime @@ -155,7 +155,7 @@ double StopWatch::getTenthSec() const return nValue ; } -// ----------------------------------------------------------------------------- + template <class T> class ThreadSafeValue { @@ -179,7 +179,7 @@ public: void release() {m_aMutex.release();} }; -// ----------------------------------------------------------------------------- + namespace ThreadHelper { void thread_sleep_tenth_sec(sal_Int32 _nTenthSec) @@ -266,7 +266,7 @@ public: }; -// ----------------------------------------------------------------------------- + /** Thread which has a flag add 1 every second until 20 */ class OCountThread : public Thread @@ -1867,7 +1867,7 @@ namespace osl_Thread CPPUNIT_TEST_SUITE_END(); }; // class schedule -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Thread::create, "osl_Thread"); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Thread::createSuspended, "osl_Thread"); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Thread::suspend, "osl_Thread"); @@ -1885,7 +1885,7 @@ namespace osl_Thread } // namespace osl_Thread -// ----------------------------------------------------------------------------- + // destroy function when the binding thread terminate void SAL_CALL destroyCallback(void * data) { @@ -2185,7 +2185,7 @@ namespace osl_ThreadData CPPUNIT_TEST_SUITE_END(); }; // class getData -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(osl_ThreadData::ctors); CPPUNIT_TEST_SUITE_REGISTRATION(osl_ThreadData::setData); CPPUNIT_TEST_SUITE_REGISTRATION(osl_ThreadData::getData); diff --git a/sal/qa/osl/process/osl_process.cxx b/sal/qa/osl/process/osl_process.cxx index 5dcd55561884..36ecf045c65a 100644 --- a/sal/qa/osl/process/osl_process.cxx +++ b/sal/qa/osl/process/osl_process.cxx @@ -318,7 +318,7 @@ typedef string_container_t::iterator string_container_iter_t; class exclude : public std::unary_function<std::string, bool> { public: - //------------------------------------------------ + exclude(const string_container_t& exclude_list) { string_container_const_iter_t iter = exclude_list.begin(); @@ -327,7 +327,7 @@ public: exclude_list_.push_back(env_var_name(*iter)); } - //------------------------------------------------ + bool operator() (const std::string& env_var) const { return (exclude_list_.end() != @@ -338,7 +338,7 @@ public: } private: - //------------------------------------------------- + // extract the name from an environment variable // that is given in the form "NAME=VALUE" std::string env_var_name(const std::string& env_var) const @@ -419,7 +419,7 @@ class Test_osl_executeProcess : public CppUnit::TestFixture public: - //------------------------------------------------ + // ctor Test_osl_executeProcess() : env_param_(OUString("-env")), @@ -432,7 +432,7 @@ public: suExecutableFileURL += EXECUTABLE_NAME; } - //------------------------------------------------ + virtual void setUp() { temp_file_path_ = create_temp_file(temp_file_url_); @@ -444,7 +444,7 @@ public: osl::File::remove(temp_file_url_); } - //------------------------------------------------ + OUString create_temp_file(OUString &temp_file_url) { FileBase::RC rc = FileBase::createTempFile(0, 0, &temp_file_url); @@ -457,7 +457,7 @@ public: return temp_file_path; } - //------------------------------------------------ + void read_child_environment(string_container_t* env_container) { OString temp_file_name = OUStringToOString(OUString( @@ -477,7 +477,7 @@ public: tidy_container(*env_container); } - //------------------------------------------------ + // environment of the child process that was // started. The child process writes his // environment into a file @@ -493,7 +493,7 @@ public: (std::equal(child_env.begin(), child_env.end(), parent_env.begin()))); } - //------------------------------------------------ + // compare the equal environment parts and the // different part of the child environment bool compare_merged_environments(const string_container_t& different_env_vars) @@ -563,7 +563,7 @@ public: different_env_size_equals && different_env_content_equals); } - //------------------------------------------------ + // test that parent and child process have the // same environment when osl_executeProcess will // be called with out setting new environment @@ -605,7 +605,7 @@ public: ); } - //------------------------------------------------ + #define ENV1 "PAT=a:\\" #define ENV2 "PATHb=b:\\" #define ENV3 "Patha=c:\\" diff --git a/sal/qa/osl/profile/osl_old_testprofile.cxx b/sal/qa/osl/profile/osl_old_testprofile.cxx index cbc488a39f02..68c8bd3f75e4 100644 --- a/sal/qa/osl/profile/osl_old_testprofile.cxx +++ b/sal/qa/osl/profile/osl_old_testprofile.cxx @@ -27,7 +27,7 @@ #include <osl/profile.h> //================================================================================================== -// ----------------------------------------------------------------------------- + namespace osl_Profile { class oldtests : public CppUnit::TestFixture @@ -76,10 +76,10 @@ void oldtests::test_profile(void) } // namespace osl_Profile -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION( osl_Profile::oldtests ); -// ----------------------------------------------------------------------------- + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sal/qa/osl/security/osl_Security.cxx b/sal/qa/osl/security/osl_Security.cxx index 3e6ddf5261e5..54fb89c7d435 100644 --- a/sal/qa/osl/security/osl_Security.cxx +++ b/sal/qa/osl/security/osl_Security.cxx @@ -17,9 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -//------------------------------------------------------------------------ + // header file -//------------------------------------------------------------------------ + #ifdef WNT #include <windows.h> #undef min @@ -33,9 +33,9 @@ using namespace osl; using namespace rtl; -//------------------------------------------------------------------------ + // helper functions and classes -//------------------------------------------------------------------------ + /** print Boolean value. */ @@ -57,9 +57,9 @@ inline void printUString( const ::rtl::OUString & str ) } -//------------------------------------------------------------------------ + // test code start here -//------------------------------------------------------------------------ + namespace osl_Security { @@ -310,7 +310,7 @@ namespace osl_Security CPPUNIT_TEST_SUITE_END( ); }; // class loginUserOnFileServer -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(osl_Security::ctors); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Security::logonUser); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Security::getUserIdent); @@ -321,7 +321,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(osl_Security::getHandle); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Security::UserProfile); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Security::loginUserOnFileServer); -// ----------------------------------------------------------------------------- + } // namespace osl_Security diff --git a/sal/qa/osl/socket/osl_AcceptorSocket.cxx b/sal/qa/osl/socket/osl_AcceptorSocket.cxx index 30390fd72ac8..5a70fdacf600 100644 --- a/sal/qa/osl/socket/osl_AcceptorSocket.cxx +++ b/sal/qa/osl/socket/osl_AcceptorSocket.cxx @@ -43,9 +43,9 @@ inline sal_Bool SAL_CALL operator== (const SocketAddr & Addr) const; */ -//------------------------------------------------------------------------ + // include files -//------------------------------------------------------------------------ + #include <sal/types.h> #include <cppunit/TestFixture.h> @@ -63,9 +63,9 @@ using ::rtl::OUString; #define IP_PORT_MYPORT4 8885 #define IP_PORT_MYPORT3 8884 -//------------------------------------------------------------------------ + // helper functions -//------------------------------------------------------------------------ + // just used to test socket::close() when accepting class AcceptorThread : public Thread @@ -238,7 +238,7 @@ namespace osl_AcceptorSocket }; // class listen_accept -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(osl_AcceptorSocket::ctors); //CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_AcceptorSocket::operator_assign, "osl_AcceptorSocket"); @@ -246,7 +246,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(osl_AcceptorSocket::listen_accept); } // namespace osl_AcceptorSocket -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/osl/socket/osl_ConnectorSocket.cxx b/sal/qa/osl/socket/osl_ConnectorSocket.cxx index 50f19b19d5af..1765b3d394a1 100644 --- a/sal/qa/osl/socket/osl_ConnectorSocket.cxx +++ b/sal/qa/osl/socket/osl_ConnectorSocket.cxx @@ -43,9 +43,9 @@ inline sal_Bool SAL_CALL operator== (const SocketAddr & Addr) const; */ -//------------------------------------------------------------------------ + // include files -//------------------------------------------------------------------------ + #include <sal/types.h> #include <cppunit/TestFixture.h> @@ -62,9 +62,9 @@ using ::rtl::OUString; #define IP_PORT_FTP 21 #define IP_PORT_MYPORT3 8884 -//------------------------------------------------------------------------ + // helper functions -//------------------------------------------------------------------------ + class CloseSocketThread : public Thread { @@ -242,14 +242,14 @@ namespace osl_ConnectorSocket }; // class connect -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(osl_ConnectorSocket::ctors); CPPUNIT_TEST_SUITE_REGISTRATION(osl_ConnectorSocket::connect); } // namespace osl_ConnectorSocket -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/osl/socket/osl_DatagramSocket.cxx b/sal/qa/osl/socket/osl_DatagramSocket.cxx index 9bfe6234b596..b72a4d289449 100644 --- a/sal/qa/osl/socket/osl_DatagramSocket.cxx +++ b/sal/qa/osl/socket/osl_DatagramSocket.cxx @@ -60,9 +60,9 @@ using ::rtl::OUString; const char * pTestString1 = "test socket"; const char * pTestString2 = " Passed#OK"; -//------------------------------------------------------------------------ + // helper functions -//------------------------------------------------------------------------ + class CloseSocketThread : public Thread { @@ -88,9 +88,9 @@ public: } }; -//------------------------------------------------------------------------ + // tests cases begins here -//------------------------------------------------------------------------ + namespace osl_DatagramSocket { @@ -293,14 +293,14 @@ public: }; // class sendTo_recvFrom -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(osl_DatagramSocket::ctors); CPPUNIT_TEST_SUITE_REGISTRATION(osl_DatagramSocket::sendTo_recvFrom); } // namespace osl_DatagramSocket -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/osl/socket/osl_Socket.cxx b/sal/qa/osl/socket/osl_Socket.cxx index 7f126f6ad24e..f1597a329e14 100644 --- a/sal/qa/osl/socket/osl_Socket.cxx +++ b/sal/qa/osl/socket/osl_Socket.cxx @@ -44,9 +44,9 @@ */ -//------------------------------------------------------------------------ + // include files -//------------------------------------------------------------------------ + #include <sal/types.h> #include <osl_Socket_Const_orig.h> @@ -79,9 +79,9 @@ using ::rtl::OUString; using ::rtl::OUStringToOString; using ::rtl::OString; -//------------------------------------------------------------------------ + // helper functions -//------------------------------------------------------------------------ + /** compare two OUString. */ @@ -450,7 +450,7 @@ public: } }; -// ----------------------------------------------------------------------------- + // Helper functions, to create buffers, check buffers class ValueCheckProvider { @@ -504,7 +504,7 @@ public: }; -// ----------------------------------------------------------------------------- + /** Client Socket Thread, served as a temp little client to communicate with server. */ @@ -647,7 +647,7 @@ public: }; -// ----------------------------------------------------------------------------- + // just used to test socket::close() when accepting class AcceptorThread : public Thread { @@ -726,9 +726,9 @@ public: } }; -//------------------------------------------------------------------------ + // tests cases begins here -//------------------------------------------------------------------------ + namespace osl_SocketAddr { @@ -1468,7 +1468,7 @@ namespace osl_SocketAddr }; // class gettheServicePort -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_SocketAddr::ctors, "osl_SocketAddr"); @@ -2773,7 +2773,7 @@ namespace osl_Socket }; // class getHandle -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_Socket::ctors, "osl_Socket"); @@ -3175,7 +3175,7 @@ protected: CPPUNIT_TEST_SUITE_END(); }; // class isExceptionPending -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_StreamSocket::ctors, "osl_StreamSocket"); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_StreamSocket::send_recv, "osl_StreamSocket"); @@ -3337,7 +3337,7 @@ namespace osl_ConnectorSocket }; // class connect -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_ConnectorSocket::ctors, "osl_ConnectorSocket"); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_ConnectorSocket::connect, "osl_ConnectorSocket"); @@ -3467,7 +3467,7 @@ namespace osl_AcceptorSocket }; // class listen_accept -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_AcceptorSocket::ctors, "osl_AcceptorSocket"); //CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(osl_AcceptorSocket::operator_assign, "osl_AcceptorSocket"); @@ -3677,7 +3677,7 @@ public: }; // class sendTo_recvFrom -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(osl_DatagramSocket::ctors); CPPUNIT_TEST_SUITE_REGISTRATION(osl_DatagramSocket::sendTo_recvFrom); @@ -3685,7 +3685,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(osl_DatagramSocket::sendTo_recvFrom); } // namespace osl_DatagramSocket -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/osl/socket/osl_Socket2.cxx b/sal/qa/osl/socket/osl_Socket2.cxx index 86fdf91ec7ea..f8f005a5371e 100644 --- a/sal/qa/osl/socket/osl_Socket2.cxx +++ b/sal/qa/osl/socket/osl_Socket2.cxx @@ -67,9 +67,9 @@ using ::rtl::OUString; #define IP_PORT_MYPORT8 8896 #define IP_PORT_MYPORT9 8897 -//------------------------------------------------------------------------ + // helper functions -//------------------------------------------------------------------------ + // just used to test socket::close() when accepting class AcceptorThread : public Thread @@ -1411,7 +1411,7 @@ namespace osl_Socket }; // class getHandle -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(osl_Socket::ctors); @@ -1435,7 +1435,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(osl_Socket::getHandle); } // namespace osl_Socket -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/osl/socket/osl_SocketAddr.cxx b/sal/qa/osl/socket/osl_SocketAddr.cxx index 50e6c16743fb..3a64cfc18551 100644 --- a/sal/qa/osl/socket/osl_SocketAddr.cxx +++ b/sal/qa/osl/socket/osl_SocketAddr.cxx @@ -850,7 +850,7 @@ namespace osl_SocketAddr }; // class getFamilyOfSocketAddr -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(osl_SocketAddr::ctors); @@ -870,7 +870,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(osl_SocketAddr::getFamilyOfSocketAddr); } // namespace osl_SocketAddr -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/osl/socket/osl_Socket_tests.cxx b/sal/qa/osl/socket/osl_Socket_tests.cxx index 83b556da1c78..21384786e83b 100644 --- a/sal/qa/osl/socket/osl_Socket_tests.cxx +++ b/sal/qa/osl/socket/osl_Socket_tests.cxx @@ -17,9 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -//------------------------------------------------------------------------ + // include files -//------------------------------------------------------------------------ + #include <sal/types.h> #include <osl_Socket_Const.h> @@ -27,13 +27,13 @@ #include <cppunit/extensions/HelperMacros.h> #include <cppunit/plugin/TestPlugIn.h> #include <osl/socket.hxx> -//------------------------------------------------------------------------ + // helper functions -//------------------------------------------------------------------------ -//------------------------------------------------------------------------ + + // tests cases begins here -//------------------------------------------------------------------------ + namespace osl_Socket { @@ -59,7 +59,7 @@ namespace osl_Socket } -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/osl/socket/osl_StreamSocket.cxx b/sal/qa/osl/socket/osl_StreamSocket.cxx index 42fb7e156e22..0d1e56d40547 100644 --- a/sal/qa/osl/socket/osl_StreamSocket.cxx +++ b/sal/qa/osl/socket/osl_StreamSocket.cxx @@ -62,9 +62,9 @@ using ::rtl::OString; const char * pTestString1 = "test socket"; const char * pTestString2 = " Passed#OK"; -//------------------------------------------------------------------------ + // helper functions -//------------------------------------------------------------------------ + // just used to test socket::close() when accepting class AcceptorThread : public Thread @@ -256,7 +256,7 @@ public: }; -// ----------------------------------------------------------------------------- + // Helper functions, to create buffers, check buffers class ValueCheckProvider { @@ -309,7 +309,7 @@ public: }; -// ----------------------------------------------------------------------------- + /** Client Socket Thread, served as a temp little client to communicate with server. */ @@ -487,7 +487,7 @@ public: } }; -// ----------------------------------------------------------------------------- + namespace osl_StreamSocket { @@ -692,7 +692,7 @@ namespace osl_StreamSocket CPPUNIT_TEST_SUITE_END(); }; // class send_recv -// ----------------------------------------------------------------------------- + class SendClientThread : public Thread { @@ -897,7 +897,7 @@ namespace osl_StreamSocket CPPUNIT_TEST_SUITE_END(); }; // class isExceptionPending -// ----------------------------------------------------------------------------- + /** Client Socket Thread, served as a temp little client to communicate with server. */ @@ -1017,7 +1017,7 @@ namespace osl_StreamSocket }; - // ----------------------------------------------------------------------------- + class justtest : public CppUnit::TestFixture { @@ -1075,7 +1075,7 @@ namespace osl_StreamSocket aSocket.close(); } - // ----------------------------------------------------------------------------- + void send_Connector(rtl::OString const& _sAddr, osl::Condition &/*_aCondition*/ ) { @@ -1178,7 +1178,7 @@ namespace osl_StreamSocket send_Connector_2_margritte(sAddr); } - // ----------------------------------------------------------------------------- + void send_recv() { @@ -1372,7 +1372,7 @@ namespace osl_StreamSocket aSocket.close(); } -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(osl_StreamSocket::ctors); CPPUNIT_TEST_SUITE_REGISTRATION(osl_StreamSocket::send_recv); @@ -1383,7 +1383,7 @@ namespace osl_StreamSocket } // namespace osl_StreamSocket -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/osl/socket/sockethelper.cxx b/sal/qa/osl/socket/sockethelper.cxx index 217cc89afabc..3f822fa46d42 100644 --- a/sal/qa/osl/socket/sockethelper.cxx +++ b/sal/qa/osl/socket/sockethelper.cxx @@ -35,14 +35,14 @@ # define t_print printf #endif -//------------------------------------------------------------------------ + // Ip version definition -//------------------------------------------------------------------------ + #define IP_VER 4 /// currently only IPv4 is considered. -//------------------------------------------------------------------------ + // helper functions -//------------------------------------------------------------------------ + /** compare two OUString. */ diff --git a/sal/qa/rtl/alloc/rtl_alloc.cxx b/sal/qa/rtl/alloc/rtl_alloc.cxx index 6737fdcba39e..2bfa2f52355d 100644 --- a/sal/qa/rtl/alloc/rtl_alloc.cxx +++ b/sal/qa/rtl/alloc/rtl_alloc.cxx @@ -134,7 +134,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(rtl_alloc::Memory); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_alloc::TestZeroMemory); } // namespace rtl_alloc diff --git a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx index f80777b9dc80..4e39fbdf7095 100644 --- a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx +++ b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx @@ -135,7 +135,7 @@ void thread_sleep_tenth_sec(sal_Int32 _nTenthSec) #endif } -// ----------------------------------------------------------------------------- + namespace rtl_Bootstrap { @@ -767,7 +767,7 @@ namespace rtl_Bootstrap } // namespace rtl_Bootstrap -// ----------------------------------------------------------------------------- + static void removeAndCreateFile(rtl::OUString const& _suFileURL, rtl::OString const& _sContent) { @@ -800,7 +800,7 @@ static void removeAndCreateFile(rtl::OUString const& _suFileURL, rtl::OString co OSL_ASSERT(t_fileExist(_suFileURL) == true); } -// ----------------------------------------------------------------------------- + static void create_rtlrc() { rtl::OUString aFileURL(getExecutableDirectory()); @@ -823,7 +823,7 @@ static void create_rtlrc() removeAndCreateFile(aFileURL, sLines); } -// ----------------------------------------------------------------------------- + static void create_testshl2rc() { rtl::OUString aFileURL(getExecutableDirectory()); @@ -862,7 +862,7 @@ static void create_testshl2rc() SAL_CONFIGFILE("rtl")); } -// ----------------------------------------------------------------------------- + static void create_pseudorc() { @@ -880,7 +880,7 @@ static void create_pseudorc() removeAndCreateFile(aFileURL, sLines); } -// ----------------------------------------------------------------------------- + void create_bootstrap_processrc() { rtl::OUString aDirURL(getModulePath()); @@ -896,7 +896,7 @@ void create_bootstrap_processrc() removeAndCreateFile(aDirURL, sLines); } -// ----------------------------------------------------------------------------- + void RegisterAdditionalFunctions(FktRegFuncPtr _pFunc) { diff --git a/sal/qa/rtl/cipher/rtl_cipher.cxx b/sal/qa/rtl/cipher/rtl_cipher.cxx index 18b1f5134577..3c1b51ca4065 100644 --- a/sal/qa/rtl/cipher/rtl_cipher.cxx +++ b/sal/qa/rtl/cipher/rtl_cipher.cxx @@ -27,7 +27,7 @@ #include <rtl/strbuf.hxx> #include <rtl/cipher.h> -// ----------------------------------------------------------------------------- + namespace rtl_cipher { @@ -103,7 +103,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + class createBF : public CppUnit::TestFixture { public: @@ -151,7 +151,7 @@ public: CPPUNIT_TEST(createBF_004); CPPUNIT_TEST_SUITE_END(); }; // class createBF -// ----------------------------------------------------------------------------- + class decode : public CppUnit::TestFixture { public: @@ -288,7 +288,7 @@ public: CPPUNIT_TEST(decode_002); CPPUNIT_TEST_SUITE_END(); }; // class decode -// ----------------------------------------------------------------------------- + class decodeBF : public CppUnit::TestFixture { public: @@ -312,7 +312,7 @@ public: CPPUNIT_TEST(decodeBF_001); CPPUNIT_TEST_SUITE_END(); }; // class decodeBF -// ----------------------------------------------------------------------------- + class destroy : public CppUnit::TestFixture { public: @@ -339,7 +339,7 @@ public: CPPUNIT_TEST(destroy_001); CPPUNIT_TEST_SUITE_END(); }; // class destroy -// ----------------------------------------------------------------------------- + class destroyBF : public CppUnit::TestFixture { public: @@ -368,7 +368,7 @@ public: CPPUNIT_TEST(destroyBF_001); CPPUNIT_TEST_SUITE_END(); }; // class destroyBF -// ----------------------------------------------------------------------------- + class encode : public CppUnit::TestFixture { public: @@ -441,7 +441,7 @@ public: CPPUNIT_TEST(encode_001); CPPUNIT_TEST_SUITE_END(); }; // class encode -// ----------------------------------------------------------------------------- + class encodeBF : public CppUnit::TestFixture { public: @@ -465,7 +465,7 @@ public: CPPUNIT_TEST(encodeBF_001); CPPUNIT_TEST_SUITE_END(); }; // class encodeBF -// ----------------------------------------------------------------------------- + class init : public CppUnit::TestFixture { public: @@ -578,7 +578,7 @@ public: CPPUNIT_TEST(init_004); CPPUNIT_TEST_SUITE_END(); }; // class init -// ----------------------------------------------------------------------------- + class initBF : public CppUnit::TestFixture { public: @@ -605,7 +605,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class initBF -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(rtl_cipher::create); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_cipher::createBF); @@ -621,7 +621,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(rtl_cipher::initBF); } // namespace rtl_cipher -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/rtl/crc32/rtl_crc32.cxx b/sal/qa/rtl/crc32/rtl_crc32.cxx index 3ac869cc4e3a..63e68d73c8c9 100644 --- a/sal/qa/rtl/crc32/rtl_crc32.cxx +++ b/sal/qa/rtl/crc32/rtl_crc32.cxx @@ -159,12 +159,12 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class test -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(rtl_CRC32::test); } // namespace rtl_CRC32 -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/rtl/digest/rtl_digest.cxx b/sal/qa/rtl/digest/rtl_digest.cxx index 3d4353fb2d19..b41929236603 100644 --- a/sal/qa/rtl/digest/rtl_digest.cxx +++ b/sal/qa/rtl/digest/rtl_digest.cxx @@ -62,7 +62,7 @@ rtl::OUString CreateMD5FromString( const rtl::OUString& aMsg ) return rtl::OUString(); } -// ----------------------------------------------------------------------------- + namespace rtl_digest { @@ -151,7 +151,7 @@ public: -// ----------------------------------------------------------------------------- + class createMD5 : public CppUnit::TestFixture { @@ -180,7 +180,7 @@ public: }; // class create -// ----------------------------------------------------------------------------- + class createMD2 : public CppUnit::TestFixture { @@ -208,7 +208,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + class createSHA : public CppUnit::TestFixture { @@ -235,7 +235,7 @@ public: CPPUNIT_TEST(createSHA_001); CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + class createSHA1 : public CppUnit::TestFixture { @@ -262,7 +262,7 @@ public: CPPUNIT_TEST(createSHA1_001); CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + class createHMAC_MD5 : public CppUnit::TestFixture { @@ -289,7 +289,7 @@ public: CPPUNIT_TEST(createHMAC_MD5_001); CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + class createHMAC_SHA1 : public CppUnit::TestFixture { @@ -319,7 +319,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + class queryAlgorithm : public CppUnit::TestFixture { @@ -413,7 +413,7 @@ public: }; // class create -// ----------------------------------------------------------------------------- + class queryLength : public CppUnit::TestFixture { public: @@ -513,7 +513,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + rtl::OString createHex(sal_uInt8 *_pMD5KeyBuffer, sal_uInt32 _nMD5KeyLen) { @@ -531,7 +531,7 @@ rtl::OString createHex(sal_uInt8 *_pMD5KeyBuffer, sal_uInt32 _nMD5KeyLen) } -// ----------------------------------------------------------------------------- + class init : public CppUnit::TestFixture { public: @@ -564,7 +564,7 @@ public: rtl_digest_destroy( handle ); } - // ------------------------------------ + void init_MD2() { rtlDigest handle = rtl_digest_create( rtl_Digest_AlgorithmMD2 ); @@ -755,7 +755,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class init -// ------------------------------------ + rtl::OString getMD5Sum(rtl::OString const& _aMsg ) { @@ -778,7 +778,7 @@ rtl::OString getMD5Sum(rtl::OString const& _aMsg ) return aMD5Sum; } -// ----------------------------------------------------------------------------- + class equalTests : public CppUnit::TestFixture { @@ -792,7 +792,7 @@ public: { } - // ------------------------------------ + void equal_001() { rtl::OString aMsg1 = sSampleString; @@ -804,7 +804,7 @@ public: CPPUNIT_ASSERT_MESSAGE("md5sum must have a length", aMsgMD5Sum1.getLength() == 32 && aMsgMD5Sum2.getLength() == 32 ); CPPUNIT_ASSERT_MESSAGE("source is the same, dest must be also the same", aMsgMD5Sum1.equals(aMsgMD5Sum2) == sal_True); } - // ------------------------------------ + void equal_002() { rtl::OString aMsg1 = sSampleString; @@ -828,7 +828,7 @@ public: }; // class create -// ----------------------------------------------------------------------------- + class digest_MD2 : public CppUnit::TestFixture { public: @@ -841,7 +841,7 @@ public: { } - // ------------------------------------ + void MD2_001() { rtl::OString aMsg1 = sSampleString; @@ -872,7 +872,7 @@ public: CPPUNIT_TEST( MD2_001 ); CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + class digest_MD5 : public CppUnit::TestFixture { public: @@ -884,7 +884,7 @@ public: void tearDown() { } - // ------------------------------------ + void MD5_001() { rtl::OString aMsg1 = sSampleString; @@ -916,7 +916,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + class digest_SHA : public CppUnit::TestFixture { public: @@ -929,7 +929,7 @@ public: { } - // ------------------------------------ + void SHA_001() { rtl::OString aMsg1 = sSampleString; @@ -961,7 +961,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + class digest_SHA1 : public CppUnit::TestFixture { public: @@ -974,7 +974,7 @@ public: { } - // ------------------------------------ + void SHA1_001() { rtl::OString aMsg1 = sSampleString; @@ -1004,7 +1004,7 @@ public: CPPUNIT_TEST( SHA1_001 ); CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + class digest_HMAC_MD5 : public CppUnit::TestFixture { public: @@ -1017,7 +1017,7 @@ public: { } - // ------------------------------------ + void HMAC_MD5_001() { rtl::OString aMsg1 = sSampleString; @@ -1051,7 +1051,7 @@ public: CPPUNIT_TEST( HMAC_MD5_001 ); CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + class digest_HMAC_SHA1 : public CppUnit::TestFixture { public: @@ -1064,7 +1064,7 @@ public: { } - // ------------------------------------ + void HMAC_SHA1_001() { rtl::OString aMsg1 = sSampleString; @@ -1099,7 +1099,7 @@ public: CPPUNIT_TEST( HMAC_SHA1_001 ); CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + class digest_PBKDF2 : public CppUnit::TestFixture { public: @@ -1112,7 +1112,7 @@ public: { } - // ------------------------------------ + rtl::OString /* key */ run_check_PBKDF2(rtl::OString const& _sPassword, bool _bClearSalt, sal_uInt32 _nCount) { sal_uInt32 nKeyLen = RTL_DIGEST_LENGTH_HMAC_SHA1; @@ -1173,7 +1173,7 @@ public: CPPUNIT_TEST( PBKDF2_001 ); CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + class update : public CppUnit::TestFixture { @@ -1301,7 +1301,7 @@ public: CPPUNIT_TEST(updateHMAC_SHA1_000); CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + class get : public CppUnit::TestFixture { @@ -1375,7 +1375,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + class destroy : public CppUnit::TestFixture { public: @@ -1406,7 +1406,7 @@ public: CPPUNIT_TEST(destroy_001); CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(rtl_digest::create); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_digest::createMD2); diff --git a/sal/qa/rtl/doublelock/rtl_doublelocking.cxx b/sal/qa/rtl/doublelock/rtl_doublelocking.cxx index 462a549e7440..169c0d8ab337 100644 --- a/sal/qa/rtl/doublelock/rtl_doublelocking.cxx +++ b/sal/qa/rtl/doublelock/rtl_doublelocking.cxx @@ -17,9 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -//------------------------------------------------------------------------ + // include files -//------------------------------------------------------------------------ + #include <sal/types.h> #include <osl/thread.hxx> @@ -39,7 +39,7 @@ #include <time.h> #endif -// ----------------------------------------------------------------------------- + #define CONST_TEST_STRING "gregorian" namespace { @@ -50,7 +50,7 @@ struct Gregorian : public rtl::StaticWithInit<rtl::OUString, Gregorian> { }; } -// ----------------------------------------------------------------------------- + namespace ThreadHelper { // typedef enum { @@ -81,7 +81,7 @@ namespace ThreadHelper } } -// ----------------------------------------------------------------------------- + /** Simple thread for testing Thread-create. * Just add 1 of value 0, and after running, result is 1. @@ -142,7 +142,7 @@ public: } }; -// ----------------------------------------------------------------------------- + namespace rtl_DoubleLocking { @@ -238,7 +238,7 @@ namespace rtl_DoubleLocking CPPUNIT_TEST(getValue_002); CPPUNIT_TEST_SUITE_END(); }; // class create -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(rtl_DoubleLocking::getValue); } // namespace rtl_DoubleLocking diff --git a/sal/qa/rtl/locale/rtl_locale.cxx b/sal/qa/rtl/locale/rtl_locale.cxx index 85941d9b9e3a..6c7127844f09 100644 --- a/sal/qa/rtl/locale/rtl_locale.cxx +++ b/sal/qa/rtl/locale/rtl_locale.cxx @@ -300,7 +300,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class equals -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(rtl_locale::getDefault); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_locale::setDefault); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_locale::getLanguage); @@ -311,7 +311,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(rtl_locale::equals); } // namespace rtl_locale -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/rtl/logfile/rtl_logfile.cxx b/sal/qa/rtl/logfile/rtl_logfile.cxx index 0f0f311ba8f2..460d001be5fc 100644 --- a/sal/qa/rtl/logfile/rtl_logfile.cxx +++ b/sal/qa/rtl/logfile/rtl_logfile.cxx @@ -93,7 +93,7 @@ inline ::rtl::OUString getCurrentPID( ) } -// ----------------------------------------------------------------------------- + /* * LLA: * check if logfile is create @@ -196,10 +196,10 @@ namespace rtl_logfile } // namespace rtl_logfile -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION( rtl_logfile::logfile); -// ----------------------------------------------------------------------------- + CPPUNIT_PLUGIN_IMPLEMENT(); //~ do some clean up work after all test completed. diff --git a/sal/qa/rtl/ostring/rtl_OString2.cxx b/sal/qa/rtl/ostring/rtl_OString2.cxx index 0ea73cdcbd43..e0fd0a26a40f 100644 --- a/sal/qa/rtl/ostring/rtl_OString2.cxx +++ b/sal/qa/rtl/ostring/rtl_OString2.cxx @@ -198,9 +198,9 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class valueOf -// ----------------------------------------------------------------------------- + // - toDouble (tests) -// ----------------------------------------------------------------------------- + class toDouble : public CppUnit::TestFixture { @@ -351,9 +351,9 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class toDouble -// ----------------------------------------------------------------------------- + // - getToken (tests) -// ----------------------------------------------------------------------------- + class getToken : public CppUnit::TestFixture { @@ -368,7 +368,7 @@ public: { } - // ----------------------------------------------------------------------------- + void getToken_000() { @@ -463,10 +463,10 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class getToken -// ----------------------------------------------------------------------------- + // testing the method replaceAt( sal_Int32 index, sal_Int32 count, // const OString& newStr ) -// ----------------------------------------------------------------------------- + // Developer note: Mindy Liu, 2004-04-23 // stollen from sal/qa/rtl_strings/rtl_OString.cxx @@ -494,7 +494,7 @@ public: sal_Bool bRes = ( expVal->compareTo(aStr1) == 0 ); return bRes; } - // ----------------------------------------------------------------------------- + void replaceAt_001() { @@ -543,7 +543,7 @@ public: }; // class replaceAt -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OString::valueOf); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OString::toDouble); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OString::getToken); @@ -552,7 +552,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(rtl_OString::replaceAt); } // namespace rtl_OString -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/rtl/ostring/rtl_str.cxx b/sal/qa/rtl/ostring/rtl_str.cxx index 6bb2be638fb0..2f871da395ab 100644 --- a/sal/qa/rtl/ostring/rtl_str.cxx +++ b/sal/qa/rtl/ostring/rtl_str.cxx @@ -147,7 +147,7 @@ namespace rtl_str CPPUNIT_TEST_SUITE_END(); }; // class compareIgnoreAsciiCase -// ----------------------------------------------------------------------------- + class shortenedCompareIgnoreAsciiCase_WithLength : public CppUnit::TestFixture { @@ -232,7 +232,7 @@ namespace rtl_str }; // class compare -// ----------------------------------------------------------------------------- + class hashCode : public CppUnit::TestFixture { @@ -286,7 +286,7 @@ namespace rtl_str }; // class compare -// ----------------------------------------------------------------------------- + class indexOfChar : public CppUnit::TestFixture { @@ -333,7 +333,7 @@ namespace rtl_str CPPUNIT_TEST_SUITE_END(); }; // class compare -// ----------------------------------------------------------------------------- + class lastIndexOfChar : public CppUnit::TestFixture { public: @@ -380,7 +380,7 @@ namespace rtl_str }; // class lastIndexOfChar -// ----------------------------------------------------------------------------- + class indexOfStr : public CppUnit::TestFixture { @@ -432,7 +432,7 @@ namespace rtl_str CPPUNIT_TEST(indexOfStr_002); CPPUNIT_TEST_SUITE_END(); }; // class compare -// ----------------------------------------------------------------------------- + class lastIndexOfStr : public CppUnit::TestFixture @@ -497,7 +497,7 @@ namespace rtl_str CPPUNIT_TEST_SUITE_END(); }; // class lastIndexOfStr -// ----------------------------------------------------------------------------- + class replaceChar : public CppUnit::TestFixture { @@ -533,7 +533,7 @@ namespace rtl_str CPPUNIT_TEST_SUITE_END(); }; // class replaceChar -// ----------------------------------------------------------------------------- + class replaceChar_WithLength : public CppUnit::TestFixture { @@ -575,7 +575,7 @@ namespace rtl_str }; // class replaceChar -// ----------------------------------------------------------------------------- + class toAsciiLowerCase : public CppUnit::TestFixture { @@ -647,7 +647,7 @@ namespace rtl_str CPPUNIT_TEST_SUITE_END(); }; // class replaceChar -// ----------------------------------------------------------------------------- + class toAsciiUpperCase : public CppUnit::TestFixture { @@ -720,7 +720,7 @@ namespace rtl_str }; // class replaceChar - // ----------------------------------------------------------------------------- + class trim_WithLength : public CppUnit::TestFixture { @@ -822,7 +822,7 @@ namespace rtl_str CPPUNIT_TEST_SUITE_END(); }; - // ----------------------------------------------------------------------------- + class valueOfChar : public CppUnit::TestFixture { @@ -854,7 +854,7 @@ namespace rtl_str CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(rtl_str::compare); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_str::compareIgnoreAsciiCase); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_str::shortenedCompareIgnoreAsciiCase_WithLength); @@ -878,7 +878,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(rtl_str::valueOfChar); } // namespace rtl_str -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/rtl/ostring/rtl_string.cxx b/sal/qa/rtl/ostring/rtl_string.cxx index bdf50f0441e3..a8b2244217ad 100644 --- a/sal/qa/rtl/ostring/rtl_string.cxx +++ b/sal/qa/rtl/ostring/rtl_string.cxx @@ -60,7 +60,7 @@ namespace rtl_string CPPUNIT_TEST_SUITE_END(); }; // class getLength -// ----------------------------------------------------------------------------- + class newFromString : public CppUnit::TestFixture { @@ -94,7 +94,7 @@ namespace rtl_string CPPUNIT_TEST_SUITE_END(); }; // class newFromString - // ----------------------------------------------------------------------------- + class convertUStringToString : public CppUnit::TestFixture { @@ -166,12 +166,12 @@ namespace rtl_string } // namespace rtl_string -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(rtl_string::getLength); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_string::newFromString); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_string::convertUStringToString); -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/rtl/oustring/rtl_OUString2.cxx b/sal/qa/rtl/oustring/rtl_OUString2.cxx index 2654e3dc0f3e..7e6721160546 100644 --- a/sal/qa/rtl/oustring/rtl_OUString2.cxx +++ b/sal/qa/rtl/oustring/rtl_OUString2.cxx @@ -237,9 +237,9 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class number -//------------------------------------------------------------------------ + // testing the method toDouble() -//------------------------------------------------------------------------ + template<class T> sal_Int16 SAL_CALL checkPrecisionSize() { @@ -977,7 +977,7 @@ void convertToString::test() { } // - string construction & interning (tests) -// ----------------------------------------------------------------------------- + class construction : public CppUnit::TestFixture { public: diff --git a/sal/qa/rtl/oustring/rtl_ustr.cxx b/sal/qa/rtl/oustring/rtl_ustr.cxx index 07b3ba6f22c2..9235a910c7c4 100644 --- a/sal/qa/rtl/oustring/rtl_ustr.cxx +++ b/sal/qa/rtl/oustring/rtl_ustr.cxx @@ -161,7 +161,7 @@ namespace rtl_ustr CPPUNIT_TEST_SUITE_END(); }; // class compareIgnoreAsciiCase -// ----------------------------------------------------------------------------- + class shortenedCompareIgnoreAsciiCase_WithLength : public CppUnit::TestFixture { @@ -246,7 +246,7 @@ namespace rtl_ustr }; // class compare -// // ----------------------------------------------------------------------------- +// // // class hashCode : public CppUnit::TestFixture // { @@ -301,7 +301,7 @@ namespace rtl_ustr // }; // class compare // // -// // ----------------------------------------------------------------------------- +// // class indexOfChar : public CppUnit::TestFixture { @@ -348,7 +348,7 @@ namespace rtl_ustr CPPUNIT_TEST_SUITE_END(); }; // class indexOfChar -// // ----------------------------------------------------------------------------- +// class lastIndexOfChar : public CppUnit::TestFixture { public: @@ -395,7 +395,7 @@ namespace rtl_ustr }; // class lastIndexOfChar -// ----------------------------------------------------------------------------- + class indexOfStr : public CppUnit::TestFixture { @@ -452,7 +452,7 @@ namespace rtl_ustr CPPUNIT_TEST(indexOfStr_002); CPPUNIT_TEST_SUITE_END(); }; // class compare -// ----------------------------------------------------------------------------- + class lastIndexOfStr : public CppUnit::TestFixture @@ -517,7 +517,7 @@ namespace rtl_ustr CPPUNIT_TEST_SUITE_END(); }; // class lastIndexOfStr -// ----------------------------------------------------------------------------- + class replaceChar : public CppUnit::TestFixture { @@ -556,7 +556,7 @@ namespace rtl_ustr CPPUNIT_TEST_SUITE_END(); }; // class replaceChar -// ----------------------------------------------------------------------------- + class replaceChar_WithLength : public CppUnit::TestFixture { @@ -618,7 +618,7 @@ namespace rtl_ustr }; // class replaceChar -// ----------------------------------------------------------------------------- + class toAsciiLowerCase : public CppUnit::TestFixture { @@ -700,7 +700,7 @@ namespace rtl_ustr CPPUNIT_TEST_SUITE_END(); }; // class replaceChar -// ----------------------------------------------------------------------------- + class toAsciiUpperCase : public CppUnit::TestFixture { @@ -778,7 +778,7 @@ namespace rtl_ustr }; // class replaceChar - // ----------------------------------------------------------------------------- + class trim_WithLength : public CppUnit::TestFixture { @@ -887,7 +887,7 @@ namespace rtl_ustr CPPUNIT_TEST_SUITE_END(); }; - // ----------------------------------------------------------------------------- + class valueOfChar : public CppUnit::TestFixture { @@ -1067,7 +1067,7 @@ namespace rtl_ustr CPPUNIT_TEST_SUITE_END(); }; // class ascii_shortenedCompareIgnoreAsciiCase_WithLength -// ----------------------------------------------------------------------------- + class ascii_compareIgnoreAsciiCase_WithLength : public CppUnit::TestFixture { @@ -1133,7 +1133,7 @@ namespace rtl_ustr CPPUNIT_TEST_SUITE_END(); }; // class ascii_compareIgnoreAsciiCase_WithLength -// ----------------------------------------------------------------------------- + class ascii_compare : public CppUnit::TestFixture { @@ -1191,7 +1191,7 @@ namespace rtl_ustr CPPUNIT_TEST_SUITE_END(); }; // class ascii_compare -// ----------------------------------------------------------------------------- + class ascii_compareIgnoreAsciiCase : public CppUnit::TestFixture { @@ -1377,7 +1377,7 @@ namespace rtl_ustr CPPUNIT_TEST_SUITE_END(); }; // class ascii_compareIgnoreAsciiCase -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(rtl_ustr::compare); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_ustr::compareIgnoreAsciiCase); @@ -1409,7 +1409,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(rtl_ustr::ascii_shortenedCompareIgnoreAsciiCase_ } // namespace rtl_ustr -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions("") // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/rtl/random/rtl_random.cxx b/sal/qa/rtl/random/rtl_random.cxx index 93d0769830ad..f9606d4d778f 100644 --- a/sal/qa/rtl/random/rtl_random.cxx +++ b/sal/qa/rtl/random/rtl_random.cxx @@ -394,7 +394,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; // class getBytes -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_REGISTRATION(rtl_random::createPool); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_random::destroyPool); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_random::addBytes); diff --git a/sal/qa/rtl/textenc/rtl_tencinfo.cxx b/sal/qa/rtl/textenc/rtl_tencinfo.cxx index dd1e24490a19..f7917a7f2bc4 100644 --- a/sal/qa/rtl/textenc/rtl_tencinfo.cxx +++ b/sal/qa/rtl/textenc/rtl_tencinfo.cxx @@ -467,7 +467,7 @@ namespace CPPUNIT_TEST_SUITE_END( ); }; - // ----------------------------------------------------------------------------- + class testBestUnix : public CppUnit::TestFixture { diff --git a/sal/qa/rtl/uri/rtl_Uri.cxx b/sal/qa/rtl/uri/rtl_Uri.cxx index f91747326746..e8c4e764b72c 100644 --- a/sal/qa/rtl/uri/rtl_Uri.cxx +++ b/sal/qa/rtl/uri/rtl_Uri.cxx @@ -28,11 +28,11 @@ #include <cppunit/extensions/HelperMacros.h> #include <cppunit/plugin/TestPlugIn.h> -// ----------------------------------------------------------------------------- + namespace Stringtest { - // ----------------------------------------------------------------------------- + class Convert : public CppUnit::TestFixture { diff --git a/sal/qa/rtl/uuid/rtl_Uuid.cxx b/sal/qa/rtl/uuid/rtl_Uuid.cxx index df41381ed549..dc3b60f159b1 100644 --- a/sal/qa/rtl/uuid/rtl_Uuid.cxx +++ b/sal/qa/rtl/uuid/rtl_Uuid.cxx @@ -204,7 +204,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(rtl_Uuid::createUuid); CPPUNIT_TEST_SUITE_REGISTRATION(rtl_Uuid::createNamedUuid); } // namespace rtl_Uuid -// ----------------------------------------------------------------------------- + // this macro creates an empty function, which will called by the RegisterAllFunctions() // to let the user the possibility to also register some functions by hand. diff --git a/sal/qa/systools/test_comtools.cxx b/sal/qa/systools/test_comtools.cxx index 915301943fe9..22069c9acbe7 100644 --- a/sal/qa/systools/test_comtools.cxx +++ b/sal/qa/systools/test_comtools.cxx @@ -228,7 +228,7 @@ namespace test_comtools CPPUNIT_TEST_SUITE_END(); }; -// ----------------------------------------------------------------------------- + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(test_comtools::test_COMReference, "test_comtools"); } // namespace rtl_OUString |