sl@0
|
1 |
/**
|
sl@0
|
2 |
* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
|
sl@0
|
20 |
/**
|
sl@0
|
21 |
@file authentication_TEF0Step.h
|
sl@0
|
22 |
*/
|
sl@0
|
23 |
#if (!defined __AUTHENTICATION_TEF0_STEP_H__)
|
sl@0
|
24 |
#define __AUTHENTICATION_TEF0_STEP_H__
|
sl@0
|
25 |
|
sl@0
|
26 |
/*
|
sl@0
|
27 |
This test tests the functionality of the CAuthentication object. The following
|
sl@0
|
28 |
is tested:
|
sl@0
|
29 |
1. The object is created supplying user name and password as descriptors.
|
sl@0
|
30 |
2. User name and password are checked to make sure they contain expected values.
|
sl@0
|
31 |
3. The object is created supplying a URI containing user name and password.
|
sl@0
|
32 |
4. User name and password are checked to make sure they contain expected values.
|
sl@0
|
33 |
5. The object is tested to make sure that it behaves appropriately for all possible
|
sl@0
|
34 |
types of incomplete URI passed to it.
|
sl@0
|
35 |
*/
|
sl@0
|
36 |
|
sl@0
|
37 |
#include <test/testexecutestepbase.h>
|
sl@0
|
38 |
#include "Te_authentication_TEFSuiteStepBase.h"
|
sl@0
|
39 |
|
sl@0
|
40 |
// Test descriptors
|
sl@0
|
41 |
_LIT8(KUser1, "UserName1");
|
sl@0
|
42 |
_LIT8(KPwd1, "Pwd1");
|
sl@0
|
43 |
_LIT8(KUser2, "UserName2");
|
sl@0
|
44 |
_LIT8(KPwd2, "Pwd2");
|
sl@0
|
45 |
_LIT8(KUriUserInfoComplete, "http://UserName1:Pwd1@www.symbian.com:80/testexample.html");
|
sl@0
|
46 |
_LIT8(KUriUserInfoIncomplete1, "http://UserName1@www.symbian.com:80/testexample.html");
|
sl@0
|
47 |
_LIT8(KUriUserInfoIncomplete2, "http://UserName1:@www.symbian.com:80/testexample.html");
|
sl@0
|
48 |
_LIT8(KUriUserInfoIncomplete3, "http://:Pwd1@www.symbian.com:80/testexample.html");
|
sl@0
|
49 |
_LIT8(KUriUserInfoIncomplete4, "http://:@www.symbian.com:80/testexample.html");
|
sl@0
|
50 |
_LIT8(KUriUserInfoIncomplete5, "http://@www.symbian.com:80/testexample.html");
|
sl@0
|
51 |
_LIT8(KUriNoUserInfo, "http://www.symbian.com:80/testexample.html");
|
sl@0
|
52 |
|
sl@0
|
53 |
// Logging messages
|
sl@0
|
54 |
_LIT(KNameNotRetreivedProperly, "Failed to retreive user name properly");
|
sl@0
|
55 |
_LIT(KPasswordNotRetreivedProperly, "Failed to retreive password properly");
|
sl@0
|
56 |
_LIT(KMethodNotRetreivedProperly, "Failed to retreive method properly");
|
sl@0
|
57 |
_LIT(KFailedToLeaveWithKErrNotFound, "Failed to Leave with KErrNotFound");
|
sl@0
|
58 |
|
sl@0
|
59 |
class CAuthentication_TEF0Step : public CTe_authentication_TEFSuiteStepBase
|
sl@0
|
60 |
{
|
sl@0
|
61 |
public:
|
sl@0
|
62 |
CAuthentication_TEF0Step();
|
sl@0
|
63 |
~CAuthentication_TEF0Step();
|
sl@0
|
64 |
virtual TVerdict doTestStepPreambleL();
|
sl@0
|
65 |
virtual TVerdict doTestStepL();
|
sl@0
|
66 |
virtual TVerdict doTestStepPostambleL();
|
sl@0
|
67 |
};
|
sl@0
|
68 |
|
sl@0
|
69 |
_LIT(KAuthentication_TEF0Step,"authentication_TEF0Step");
|
sl@0
|
70 |
|
sl@0
|
71 |
#endif
|