24
|
1 |
// Copyright (c) 2008-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 |
// functional unit of the Common TSY Dispatcher.
|
|
15 |
//
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
/**
|
|
20 |
@file The TEFUnit header file which tests the Sat
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef CCTSYSATFU_H
|
|
24 |
#define CCTSYSATFU_H
|
|
25 |
|
|
26 |
#include <test/tefunit.h>
|
|
27 |
|
|
28 |
#include <etelmm.h>
|
|
29 |
#include <etelmmcs.h>
|
|
30 |
#include <etelsat.h>
|
|
31 |
|
|
32 |
#include "cctsycomponenttestbase.h"
|
|
33 |
|
|
34 |
|
|
35 |
class CCTsySatFU : public CCtsyComponentTestBase
|
|
36 |
{
|
|
37 |
public:
|
|
38 |
// Create a suite of all the tests
|
|
39 |
static CTestSuite* CreateSuiteL(const TDesC& aName);
|
|
40 |
|
|
41 |
public:
|
|
42 |
// use-case tests
|
|
43 |
void TestUseCase0001L();
|
|
44 |
void TestUseCase0002L();
|
|
45 |
void TestUseCase0003L();
|
|
46 |
void TestUseCase0004L();
|
|
47 |
void TestUseCase0005L();
|
|
48 |
void TestUseCase0006L();
|
|
49 |
void TestUseCase0007L();
|
|
50 |
void TestUseCase0008L();
|
|
51 |
void TestUseCase0009L();
|
|
52 |
void TestUseCase0010L();
|
|
53 |
|
|
54 |
//other unit tests
|
|
55 |
void TestUnit0001L();
|
|
56 |
void TestUnit0002L();
|
|
57 |
void TestUnit0003L();
|
|
58 |
void TestUnit0004L();
|
|
59 |
void TestUnit0005L();
|
|
60 |
void TestUnit0006L();
|
|
61 |
void TestUnit0007L();
|
|
62 |
void TestUnit0008L();
|
|
63 |
void TestUnit0009L();
|
|
64 |
void TestUnit0010L();
|
|
65 |
void TestUnit0011L();
|
|
66 |
void TestUnit0012L();
|
|
67 |
void TestUnit0013L();
|
|
68 |
void TestUnit0014L();
|
|
69 |
void TestUnit0015L();
|
|
70 |
void TestUnit0016L();
|
|
71 |
void TestUnit0017L();
|
|
72 |
|
|
73 |
private:
|
|
74 |
//helper class to hold large call control T-Types, this is to prevent tests failing due
|
|
75 |
// to test execute creating the threads for each TEST STEP with insufficient stack
|
|
76 |
class CCallTypeContainer : public CBase
|
|
77 |
{
|
|
78 |
public:
|
|
79 |
|
|
80 |
CCallTypeContainer();
|
|
81 |
|
|
82 |
RSat::TCallControlV6 iCallControl;
|
|
83 |
RSat::TCallControlV6Pckg iCallControlPckg;
|
|
84 |
RSat::TSetUpCallV6 iSetUpCall;
|
|
85 |
RSat::TSetUpCallV6Pckg iSetUpCallPckg;
|
|
86 |
RSat::TAlphaId iAlphaId;
|
|
87 |
|
|
88 |
};
|
|
89 |
|
|
90 |
private:
|
|
91 |
void OpenSatL(TUint8 aEnabled = 0x00);
|
|
92 |
void SetupEventListL(TUint8 aPCommandNumber, TUint8 aEvent);
|
|
93 |
void SetupLocalInfoL(TUint16 aAreaCode, TUint16 aCellId, const TDesC8& aOperatorCode, TUint8 aLocationStatus);
|
|
94 |
void WaitForEventDownloadL(RSat::TEventList aEventList, const TDesC8& aEventDownloadEnvelope);
|
|
95 |
void GenerateAndWaitForTermRspL(TUint8 aPCmdNumber,TUint8 aTypeOfCommand, TUint8 aCommandQualifier, RSat::TPCmd aRSatTypeOfCommand, RSat::TPCmdResult aGeneralResult, const TDesC8& aRsp, TInt aCompError);
|
|
96 |
void GenerateAndWaitForTermRspL(TUint8 aPCmdNumber,TUint8 aTypeOfCommand, TUint8 aCommandQualifier, RSat::TPCmd aRSatTypeOfCommand, RSat::TPCmdResult aGeneralResult, const TDesC8& aGeneralResultAddInfo, const TDesC8& aRsp, const TDesC8& aAdditionalInfo, TInt aCompError);
|
|
97 |
void GenerateTermRspTlv(RBuf8& buf, TUint8 aPCmdNumber,TUint8 aTypeOfCommand, TUint8 aCommandQualifier,RSat::TPCmdResult aResult, const TDesC8& aGeneralResultAddInfo, const TDesC8& aAdditionalInfo);
|
|
98 |
void RefreshNoTerminalRspL(TUint8 aPCmdNumber, TUint8 aCommandQualifier, TInt aRefreshAllowedCompleteResult);
|
|
99 |
TUint8 TonAndNpi(RMobilePhone::TMobileTON aTon, RMobilePhone::TMobileNPI aNpi);
|
|
100 |
|
|
101 |
void DoCleanup();
|
|
102 |
private:
|
|
103 |
RSat iSat;
|
|
104 |
|
|
105 |
CCallTypeContainer* iCallContainer;
|
|
106 |
|
|
107 |
}; // class CCTsySatFU
|
|
108 |
|
|
109 |
#endif // CCTSYSATFU_H
|
|
110 |
|