diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-03 10:00:55 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-03 10:00:55 +0300 |
commit | 335cd830b0bd430d282687df58a91a69dac2c528 (patch) | |
tree | 3d49d43ed0c07d643b9fd081e6eb0522b57851c2 /sal/qa/osl/security/osl_Security.cxx | |
parent | c04f4393f5ec63dbd546b5c503ddc82d9cd2377e (diff) |
Kill superfluous vertical whitespace
Change-Id: I8c37b9ec45836f9c0e2dc0cf232f96f23c7c36d3
Diffstat (limited to 'sal/qa/osl/security/osl_Security.cxx')
-rw-r--r-- | sal/qa/osl/security/osl_Security.cxx | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/sal/qa/osl/security/osl_Security.cxx b/sal/qa/osl/security/osl_Security.cxx index 61a79340ca24..14e339e027ef 100644 --- a/sal/qa/osl/security/osl_Security.cxx +++ b/sal/qa/osl/security/osl_Security.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - // header file #ifdef WNT @@ -32,11 +31,8 @@ using namespace osl; using namespace rtl; - - // helper functions and classes - /** print Boolean value. */ inline void printBool( bool bOk ) @@ -56,11 +52,8 @@ inline void printUString( const ::rtl::OUString & str ) t_print("%s\n", aString.getStr( ) ); } - - // test code start here - namespace osl_Security { @@ -85,7 +78,6 @@ namespace osl_Security CPPUNIT_TEST_SUITE_END( ); }; // class ctors - /** testing the methods: inline sal_Bool SAL_CALL logonUser(const ::rtl::OUString& strName, const ::rtl::OUString& strPasswd); @@ -116,7 +108,6 @@ namespace osl_Security bRes ); } - CPPUNIT_TEST_SUITE( logonUser ); if ( !aStringForward.isEmpty() && aStringForward.indexOf( (sal_Unicode)' ' ) != -1 && ( aStringForward.indexOf( ( sal_Unicode ) ' ' ) == aStringForward.lastIndexOf( ( sal_Unicode ) ' ' ) ) ) /// if user name and passwd are forwarded @@ -131,7 +122,6 @@ namespace osl_Security CPPUNIT_TEST_SUITE_END( ); }; // class logonUser - /** testing the method: inline sal_Bool Security::getUserIdent( rtl::OUString& strIdent) const */ @@ -162,7 +152,6 @@ namespace osl_Security CPPUNIT_TEST_SUITE_END( ); }; // class getUserIdent - /** testing the method: inline sal_Bool SAL_CALL getUserName( ::rtl::OUString& strName) const; */ @@ -195,7 +184,6 @@ namespace osl_Security CPPUNIT_TEST_SUITE_END( ); }; // class getUserName - /** testing the method: inline sal_Bool Security::getConfigDir( rtl::OUString& strDirectory ) const */ @@ -262,7 +250,6 @@ namespace osl_Security CPPUNIT_TEST_SUITE_END( ); }; // class getHandle - class UserProfile : public CppUnit::TestFixture { public: @@ -310,7 +297,6 @@ 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,11 +307,8 @@ CPPUNIT_TEST_SUITE_REGISTRATION(osl_Security::getHandle); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Security::UserProfile); CPPUNIT_TEST_SUITE_REGISTRATION(osl_Security::loginUserOnFileServer); - - } // namespace osl_Security - /* This defines an own TestPlugIn implementation with an own initialize() method that will be called after loading the PlugIn */ @@ -339,7 +322,6 @@ class MyTestPlugInImpl: public CPPUNIT_NS::TestPlugInDefaultImpl const CPPUNIT_NS::PlugInParameters ¶meters ) SAL_OVERRIDE; }; - void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *, const CPPUNIT_NS::PlugInParameters & ) { @@ -355,7 +337,6 @@ void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *, #if ( defined UNX ) /// some initialization work for UNIX OS - struct passwd* pw; CPPUNIT_ASSERT_MESSAGE( "getpwuid: no password entry\n",( pw = getpwuid( getuid() ) ) != NULL ); @@ -383,7 +364,6 @@ void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *, #if defined ( WNT ) /// some initialization work for Windows OS - /// Get the user name, computer name, user home directory. LPTSTR lpszSystemInfo; // pointer to system information string DWORD cchBuff = BUFSIZE; // size of computer or user name @@ -423,7 +403,6 @@ void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *, RegCloseKey(hRegKey); } - /// Get user Security ID: // Create buffers that may be large enough. If a buffer is too small, the count parameter will be set to the size needed. @@ -555,7 +534,6 @@ void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *, delete [] reinterpret_cast<BYTE*>(pSid); delete [] wszDomainName; - /// check if logged in user is administrator: BOOL b; @@ -679,5 +657,4 @@ void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *, CPPUNIT_PLUGIN_EXPORTED_FUNCTION_IMPL( MyTestPlugInImpl ); CPPUNIT_PLUGIN_IMPLEMENT_MAIN(); - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |