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_SIMPACKET_TESTSTEP_BASE__
|
|
17 |
#define __TE_SIMPACKET_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 <mmretrieve.h>
|
|
32 |
#include <pcktcs.h>
|
|
33 |
#include <etelqos.h>
|
|
34 |
#include <etelsat.h>
|
|
35 |
#include <pcktlist.h>
|
|
36 |
#include "SimTsy.h"
|
|
37 |
|
|
38 |
_LIT(KSimtsyName,"SIM");
|
|
39 |
|
|
40 |
class CSimPacketTestStepBase : public CTestStep
|
|
41 |
{
|
|
42 |
public:
|
|
43 |
virtual TVerdict doTestStepPreambleL();
|
|
44 |
virtual TVerdict doTestStepPostambleL();
|
|
45 |
|
|
46 |
static void CleanUp(TAny *aPtr) ;
|
|
47 |
protected:
|
|
48 |
operator TCleanupItem() ;
|
|
49 |
void TestConfigParamsL(RPacketQoS::TQoSGPRSNegotiated& aArg1, RPacketQoS::TQoSGPRSNegotiated& aArg2) ;
|
|
50 |
void TestConfigParamsL(RPacketContext::TContextConfigGPRS& aArg1, RPacketContext::TContextConfigGPRS& aArg2);
|
|
51 |
void SetSimtsyTestNumberL(TInt aTestNumber);
|
|
52 |
void WaitWithTimeout(TRequestStatus& aStatus, TInt aNumberOfMicroSeconds);
|
|
53 |
|
|
54 |
protected:
|
|
55 |
RTelServer iTelServer;
|
|
56 |
RMobilePhone iPhone;
|
|
57 |
RPacketService iPacketService;
|
|
58 |
RPacketContext iPacketContext[11]; //SIMTSY supports only 11 contexts
|
|
59 |
};
|
|
60 |
|
|
61 |
#endif // __TE_SIMPACKET_TESTSTEP_BASE__
|