os/ossrv/genericservices/httputils/Test/te_authentication/src/authentication_TEF0Step.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /**
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 
    19 
    20 /**
    21  @file authentication_TEF0Step.h
    22 */
    23 #if (!defined __AUTHENTICATION_TEF0_STEP_H__)
    24 #define __AUTHENTICATION_TEF0_STEP_H__
    25 
    26 /*
    27 	This test tests the functionality of the CAuthentication object. The following 
    28 	is tested:
    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.
    35 */
    36 
    37 #include <test/testexecutestepbase.h>
    38 #include "Te_authentication_TEFSuiteStepBase.h"
    39 
    40 // Test descriptors
    41 _LIT8(KUser1, "UserName1");
    42 _LIT8(KPwd1, "Pwd1");    
    43 _LIT8(KUser2, "UserName2");
    44 _LIT8(KPwd2, "Pwd2");
    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");
    52 
    53 // Logging messages
    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");
    58 
    59 class CAuthentication_TEF0Step : public CTe_authentication_TEFSuiteStepBase
    60 	{
    61 public:
    62 	CAuthentication_TEF0Step();
    63 	~CAuthentication_TEF0Step();
    64 	virtual TVerdict doTestStepPreambleL();
    65 	virtual TVerdict doTestStepL();
    66 	virtual TVerdict doTestStepPostambleL();
    67 	};
    68 
    69 _LIT(KAuthentication_TEF0Step,"authentication_TEF0Step");
    70 
    71 #endif