24
|
1 |
// Copyright (c) 2005-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 |
//
|
|
15 |
|
|
16 |
#ifndef __TE_SIM_TESTSTEP_BASE__
|
|
17 |
#define __TE_SIM_TESTSTEP_BASE__
|
|
18 |
|
|
19 |
#include <test/testexecutestepbase.h>
|
|
20 |
|
|
21 |
#include <e32base.h>
|
|
22 |
#include <etelpckt.h>
|
|
23 |
|
|
24 |
#include <e32test.h>
|
|
25 |
#include <c32comm.h>
|
|
26 |
#include <e32keys.h>
|
|
27 |
#include <f32file.h>
|
|
28 |
|
|
29 |
#include <etel.h>
|
|
30 |
#include <etelmm.h>
|
|
31 |
#include <etelmmerr.h>
|
|
32 |
#include <mmretrieve.h>
|
|
33 |
#include <pcktcs.h>
|
|
34 |
#include <etelqos.h>
|
|
35 |
#include <etelsat.h>
|
|
36 |
#include "SimTsy.h"
|
|
37 |
#include <satcs.h>
|
|
38 |
#include "Te_SimConstants.h"
|
|
39 |
#include "Simlog.h"
|
|
40 |
|
|
41 |
|
|
42 |
class CTestConfig;
|
|
43 |
class CTestConfigSection;
|
|
44 |
class CSimPhone;
|
|
45 |
|
|
46 |
#define CHECKPOINTL(code,expected,msg){\
|
|
47 |
if((code)!=(expected)){\
|
|
48 |
INFO_PRINTF1(msg);\
|
|
49 |
SetTestStepResult(EFail);\
|
|
50 |
User::Leave(KErrGeneral);\
|
|
51 |
}\
|
|
52 |
}
|
|
53 |
#define CHECKPOINT_EXL(boolexpr,msg){\
|
|
54 |
if(!(boolexpr)){\
|
|
55 |
INFO_PRINTF1(msg);\
|
|
56 |
SetTestStepResult(EFail);\
|
|
57 |
User::Leave(KErrGeneral);\
|
|
58 |
}\
|
|
59 |
}
|
|
60 |
|
|
61 |
_LIT(KSimtsyName,"SIM");
|
|
62 |
|
|
63 |
class CSimTestsTestStepBase : public CTestStep
|
|
64 |
{
|
|
65 |
public:
|
|
66 |
virtual TVerdict doTestStepPreambleL();
|
|
67 |
virtual TVerdict doTestStepPostambleL();
|
|
68 |
|
|
69 |
protected:
|
|
70 |
void SetTestNumberL(TInt aTestNumber);
|
|
71 |
void CreateConfigFileL(const TDesC& aConfigFileName);
|
|
72 |
void DeleteConfigFileL();
|
|
73 |
|
|
74 |
protected:
|
|
75 |
RTelServer iTelServer;
|
|
76 |
RMobilePhone iPhone;
|
|
77 |
|
|
78 |
private:
|
|
79 |
CActiveScheduler* iActiveScheduler;
|
|
80 |
};
|
|
81 |
|
|
82 |
class CPhBkAndPacketTestsTestStepBase : public CTestStep
|
|
83 |
{
|
|
84 |
public:
|
|
85 |
virtual TVerdict doTestStepPreambleL();
|
|
86 |
virtual TVerdict doTestStepPostambleL();
|
|
87 |
|
|
88 |
protected:
|
|
89 |
void SetTestNumberL(TInt aTestNumber);
|
|
90 |
void CreateConfigFileL(const TDesC& aConfigFileName);
|
|
91 |
void WaitWithTimeout(TRequestStatus& aStatus, TInt aNumberOfMicroSeconds);
|
|
92 |
void SignalSimTsyToReduceTimerL(TInt aTimerEventId = ETimerIdAllTimers);
|
|
93 |
|
|
94 |
protected:
|
|
95 |
RTelServer iTelServer;
|
|
96 |
RMobilePhone iPhone;
|
|
97 |
};
|
|
98 |
|
|
99 |
class CSimUSimRel6TestsTestStepBase : public CTestStep
|
|
100 |
{
|
|
101 |
public:
|
|
102 |
virtual TVerdict doTestStepPreambleL();
|
|
103 |
virtual TVerdict doTestStepPostambleL();
|
|
104 |
const CTestConfigSection* CfgFile(); // < Accessor function for the configuration file.
|
|
105 |
const CTestConfigSection* DefaultCfgFile(); // < Accessor function for the default configuration file.
|
|
106 |
void TestSmartCardAuthenticate();
|
|
107 |
protected:
|
|
108 |
void SetTestNumberL(TInt aTestNumber);
|
|
109 |
void CreateConfigFileL(const TDesC& aConfigFileName);
|
|
110 |
void DeleteConfigFileL();
|
|
111 |
|
|
112 |
protected:
|
|
113 |
RTelServer iTelServer;
|
|
114 |
|
|
115 |
public:
|
|
116 |
CActiveScheduler* iActiveScheduler;
|
|
117 |
RMobilePhone iPhone;
|
|
118 |
RFs iFs; //< Connection to file server for config file access
|
|
119 |
CTestConfig* iConfigFile; //< Pointer to the Configuration file reader
|
|
120 |
TBuf8<KMaxName> iSectionName;
|
|
121 |
CArrayFixFlat<RMobilePhone::TMobilePhoneMessageWaitingV8>* iMessageWaiting; //< Array containing the Message Waiting Indicators
|
|
122 |
CArrayFixFlat<RMobilePhone::TMobilePhoneVoicemailIdsV8>* iVoiceMailIds; //< Array containing MailBox Numbers
|
|
123 |
CArrayFixFlat<RMobilePhone::TUsimWlanDataV8>* iWlanData; //< Array containing Wlan Data.
|
|
124 |
CArrayFixFlat<RMobilePhone::TWlanSIDV8>* iWlanSid;
|
|
125 |
CArrayFixFlat<RMobilePhone::TMobilePreferredNetworkEntryV3>* iPreferredNetworks;
|
|
126 |
CMobilePhoneStoredWlanSIDList* iWlanList;
|
|
127 |
CMobilePhoneStoredNetworkList* iNetworkList;
|
|
128 |
};
|
|
129 |
|
|
130 |
#endif // __TE_SIM_TESTSTEP_BASE__
|