sl@0: /** sl@0: * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: /** sl@0: @file authentication_TEF0Step.h sl@0: */ sl@0: #if (!defined __AUTHENTICATION_TEF0_STEP_H__) sl@0: #define __AUTHENTICATION_TEF0_STEP_H__ sl@0: sl@0: /* sl@0: This test tests the functionality of the CAuthentication object. The following sl@0: is tested: sl@0: 1. The object is created supplying user name and password as descriptors. sl@0: 2. User name and password are checked to make sure they contain expected values. sl@0: 3. The object is created supplying a URI containing user name and password. sl@0: 4. User name and password are checked to make sure they contain expected values. sl@0: 5. The object is tested to make sure that it behaves appropriately for all possible sl@0: types of incomplete URI passed to it. sl@0: */ sl@0: sl@0: #include sl@0: #include "Te_authentication_TEFSuiteStepBase.h" sl@0: sl@0: // Test descriptors sl@0: _LIT8(KUser1, "UserName1"); sl@0: _LIT8(KPwd1, "Pwd1"); sl@0: _LIT8(KUser2, "UserName2"); sl@0: _LIT8(KPwd2, "Pwd2"); sl@0: _LIT8(KUriUserInfoComplete, "http://UserName1:Pwd1@www.symbian.com:80/testexample.html"); sl@0: _LIT8(KUriUserInfoIncomplete1, "http://UserName1@www.symbian.com:80/testexample.html"); sl@0: _LIT8(KUriUserInfoIncomplete2, "http://UserName1:@www.symbian.com:80/testexample.html"); sl@0: _LIT8(KUriUserInfoIncomplete3, "http://:Pwd1@www.symbian.com:80/testexample.html"); sl@0: _LIT8(KUriUserInfoIncomplete4, "http://:@www.symbian.com:80/testexample.html"); sl@0: _LIT8(KUriUserInfoIncomplete5, "http://@www.symbian.com:80/testexample.html"); sl@0: _LIT8(KUriNoUserInfo, "http://www.symbian.com:80/testexample.html"); sl@0: sl@0: // Logging messages sl@0: _LIT(KNameNotRetreivedProperly, "Failed to retreive user name properly"); sl@0: _LIT(KPasswordNotRetreivedProperly, "Failed to retreive password properly"); sl@0: _LIT(KMethodNotRetreivedProperly, "Failed to retreive method properly"); sl@0: _LIT(KFailedToLeaveWithKErrNotFound, "Failed to Leave with KErrNotFound"); sl@0: sl@0: class CAuthentication_TEF0Step : public CTe_authentication_TEFSuiteStepBase sl@0: { sl@0: public: sl@0: CAuthentication_TEF0Step(); sl@0: ~CAuthentication_TEF0Step(); sl@0: virtual TVerdict doTestStepPreambleL(); sl@0: virtual TVerdict doTestStepL(); sl@0: virtual TVerdict doTestStepPostambleL(); sl@0: }; sl@0: sl@0: _LIT(KAuthentication_TEF0Step,"authentication_TEF0Step"); sl@0: sl@0: #endif