os/ossrv/genericservices/httputils/Test/te_authentication/src/authentication_TEF0Step.h
First public contribution.
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
21 @file authentication_TEF0Step.h
23 #if (!defined __AUTHENTICATION_TEF0_STEP_H__)
24 #define __AUTHENTICATION_TEF0_STEP_H__
27 This test tests the functionality of the CAuthentication object. The following
29 1. The object is created supplying user name and password as descriptors.
30 2. User name and password are checked to make sure they contain expected values.
31 3. The object is created supplying a URI containing user name and password.
32 4. User name and password are checked to make sure they contain expected values.
33 5. The object is tested to make sure that it behaves appropriately for all possible
34 types of incomplete URI passed to it.
37 #include <test/testexecutestepbase.h>
38 #include "Te_authentication_TEFSuiteStepBase.h"
41 _LIT8(KUser1, "UserName1");
43 _LIT8(KUser2, "UserName2");
45 _LIT8(KUriUserInfoComplete, "http://UserName1:Pwd1@www.symbian.com:80/testexample.html");
46 _LIT8(KUriUserInfoIncomplete1, "http://UserName1@www.symbian.com:80/testexample.html");
47 _LIT8(KUriUserInfoIncomplete2, "http://UserName1:@www.symbian.com:80/testexample.html");
48 _LIT8(KUriUserInfoIncomplete3, "http://:Pwd1@www.symbian.com:80/testexample.html");
49 _LIT8(KUriUserInfoIncomplete4, "http://:@www.symbian.com:80/testexample.html");
50 _LIT8(KUriUserInfoIncomplete5, "http://@www.symbian.com:80/testexample.html");
51 _LIT8(KUriNoUserInfo, "http://www.symbian.com:80/testexample.html");
54 _LIT(KNameNotRetreivedProperly, "Failed to retreive user name properly");
55 _LIT(KPasswordNotRetreivedProperly, "Failed to retreive password properly");
56 _LIT(KMethodNotRetreivedProperly, "Failed to retreive method properly");
57 _LIT(KFailedToLeaveWithKErrNotFound, "Failed to Leave with KErrNotFound");
59 class CAuthentication_TEF0Step : public CTe_authentication_TEFSuiteStepBase
62 CAuthentication_TEF0Step();
63 ~CAuthentication_TEF0Step();
64 virtual TVerdict doTestStepPreambleL();
65 virtual TVerdict doTestStepL();
66 virtual TVerdict doTestStepPostambleL();
69 _LIT(KAuthentication_TEF0Step,"authentication_TEF0Step");