|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // The TEFUnit test suite for EAPAuthentication in the Common TSY. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 */ |
|
21 |
|
22 #include "cctsyeapauthenticationfu.h" |
|
23 #include <etel.h> |
|
24 #include <etelmm.h> |
|
25 #include <et_clsvr.h> |
|
26 #include <ctsy/mmtsy_names.h> |
|
27 #include <ctsy/serviceapi/mmtsy_ipcdefs.h> |
|
28 #include "tmockltsydata.h" |
|
29 #include <ctsy/serviceapi/gsmerror.h> |
|
30 |
|
31 CTestSuite* CCTsyEAPAuthenticationFU::CreateSuiteL(const TDesC& aName) |
|
32 { |
|
33 SUB_SUITE; |
|
34 |
|
35 ADD_TEST_STEP_ISO_CPP(CCTsyEAPAuthenticationFU, TestOpen0001L); |
|
36 |
|
37 END_SUITE; |
|
38 } |
|
39 |
|
40 |
|
41 // |
|
42 // Actual test cases |
|
43 // |
|
44 |
|
45 |
|
46 /** |
|
47 @SYMTestCaseID BA-CTSY-EAP-EO-0001 |
|
48 @SYMComponent telephony_ctsy |
|
49 @SYMTestCaseDesc Test support in CTSY for RMobileSmartCardEap::Open |
|
50 @SYMTestPriority High |
|
51 @SYMTestActions Invokes RMobileSmartCardEap::Open |
|
52 @SYMTestExpectedResults Pass |
|
53 @SYMTestType CT |
|
54 */ |
|
55 void CCTsyEAPAuthenticationFU::TestOpen0001L() |
|
56 { |
|
57 |
|
58 OpenEtelServerL(EUseExtendedError); |
|
59 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
|
60 OpenPhoneL(); |
|
61 |
|
62 RMobileSmartCardEap smartCardEap; |
|
63 RMobilePhone::TAID AID; |
|
64 RMobileSmartCardEap::TEapType eapType; |
|
65 TInt err = smartCardEap.Open(iPhone, AID, eapType); |
|
66 ASSERT_EQUALS(KErrNotSupported, err); |
|
67 |
|
68 AssertMockLtsyStatusL(); |
|
69 CleanupStack::PopAndDestroy(this); |
|
70 |
|
71 } |
|
72 |