|
1 // Copyright (c) 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 Sim |
|
21 */ |
|
22 |
|
23 /** |
|
24 @file |
|
25 @internalAll |
|
26 */ |
|
27 |
|
28 #ifndef CCTSYSATNEGATIVEFU_H_ |
|
29 #define CCTSYSATNEGATIVEFU_H_ |
|
30 |
|
31 #include <test/tefunit.h> |
|
32 |
|
33 #include <etelmm.h> |
|
34 #include <etelmmcs.h> |
|
35 #include <etelsat.h> |
|
36 |
|
37 #include "cctsycomponenttestbase.h" |
|
38 |
|
39 class RSat; |
|
40 |
|
41 class CCTsySatFUNegative : public CCtsyComponentTestBase |
|
42 { |
|
43 public: |
|
44 // Create a suite of all the tests |
|
45 static CTestSuite* CreateSuiteL(const TDesC& aName); |
|
46 ~CCTsySatFUNegative(); |
|
47 |
|
48 public: |
|
49 void TestUnit0001L(); |
|
50 void TestUnit0002L(); |
|
51 void TestUnit0003L(); |
|
52 void TestUnit0004L(); |
|
53 void TestUnit0005L(); |
|
54 void TestUnit0006L(); |
|
55 void TestUnit0007L(); |
|
56 void TestUnit0008L(); |
|
57 void TestUnit0009L(); |
|
58 void TestUnit0010L(); |
|
59 void TestUnit0011L(); |
|
60 void TestUnit0013L(); |
|
61 void TestUnit0014L(); |
|
62 |
|
63 |
|
64 private: |
|
65 void OpenSatL(TUint8 aEnabled = 0x00); |
|
66 void SetupEventListL(TUint8 aPCommandNumber, TUint8 aEvent); |
|
67 void SetupLocalInfoL(TUint16 aAreaCode, TUint16 aCellId, const TDesC8& aOperatorCode, TUint8 aLocationStatus); |
|
68 void GenerateAndWaitForTermRspL(TUint8 aPCmdNumber,TUint8 aTypeOfCommand, TUint8 aCommandQualifier, RSat::TPCmd aRSatTypeOfCommand, RSat::TPCmdResult aGeneralResult, const TDesC8& aRsp, TInt aCompError); |
|
69 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); |
|
70 void GenerateTermRspTlv(RBuf8& buf, TUint8 aPCmdNumber,TUint8 aTypeOfCommand, TUint8 aCommandQualifier,RSat::TPCmdResult aResult, const TDesC8& aGeneralResultAddInfo, const TDesC8& aAdditionalInfo); |
|
71 void RefreshNoTerminalRspL(TUint8 aPCmdNumber, TUint8 aCommandQualifier, TInt aRefreshAllowedCompleteResult); |
|
72 TUint8 TonAndNpi(RMobilePhone::TMobileTON aTon, RMobilePhone::TMobileNPI aNpi); |
|
73 void DoCleanup(); |
|
74 |
|
75 private: |
|
76 //helper class to hold large call control T-Types, this is to prevent tests failing due |
|
77 // to test execute creating the threads for each TEST STEP with insufficient stack |
|
78 class CCallTypeContainer : public CBase |
|
79 { |
|
80 public: |
|
81 CCallTypeContainer(); |
|
82 |
|
83 RSat::TCallControlV6 iCallControl; |
|
84 RSat::TCallControlV6Pckg iCallControlPckg; |
|
85 RSat::TSetUpCallV6 iSetUpCall; |
|
86 RSat::TSetUpCallV6Pckg iSetUpCallPckg; |
|
87 |
|
88 }; |
|
89 |
|
90 private: |
|
91 RSat iSat; |
|
92 CCallTypeContainer* iCallContainer; |
|
93 }; // class CCTsySatFUNegative |
|
94 |
|
95 |
|
96 #endif /* CCTSYSATNEGATIVEFU_H_ */ |