|
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 SAT. |
|
15 // |
|
16 |
|
17 |
|
18 |
|
19 /** |
|
20 @file The TEFUnit header file which tests the SetUpEventList |
|
21 */ |
|
22 |
|
23 #ifndef CCSATSETUPEVENTLISTFU_H |
|
24 #define CCSATSETUPEVENTLISTFU_H |
|
25 |
|
26 #include <test/tmockltsydata.h> |
|
27 |
|
28 #include "ccsatcomponenttestbase.h" |
|
29 |
|
30 class CCSatSetUpEventListFU : public CCSatComponentTestBase |
|
31 { |
|
32 public: |
|
33 // Create a suite of all the tests |
|
34 static CTestSuite* CreateSuiteL(const TDesC& aName); |
|
35 |
|
36 public: |
|
37 // Individual test steps |
|
38 |
|
39 void TestNotifySetUpEventListPCmd0001L(); |
|
40 void TestNotifySetUpEventListPCmd0002L(); |
|
41 void TestNotifySetUpEventListPCmd0004L(); |
|
42 void TestEventDownload0001L(); |
|
43 |
|
44 void TestNotifySetUpEventListPCmd0001bL(); |
|
45 void TestNotifySetUpEventListPCmd0001cL(); |
|
46 void TestNotifySetUpEventListPCmd0001dL(); |
|
47 void TestNotifySetUpEventListPCmd0001eL(); |
|
48 void TestNotifySetUpEventListPCmd0001fL(); |
|
49 void TestNotifySetUpEventListPCmd0001gL(); |
|
50 void TestNotifySetUpEventListPCmd0001hL(); |
|
51 void TestNotifySetUpEventListPCmd0001iL(); |
|
52 void TestNotifySetUpEventListPCmd0001jL(); |
|
53 |
|
54 private: |
|
55 void PrepareMockLDataWithExpL(TUint8 aCommand); |
|
56 |
|
57 static void PrepareTlv( TTlv& aTlv, |
|
58 const TUint8* aEventList, |
|
59 TUint8 aNumberOfEvents); |
|
60 |
|
61 void CompleteMockDispatchSatPcmdL( TPtrC8 aCompleteTlv, TInt aError ); |
|
62 |
|
63 void PrepareTerminalResponseMockDataWithExpL(TUint8 aPCmdNumber, |
|
64 RSat::TPCmdResult aGeneralResult, |
|
65 const TDesC8& aResultAddInfo, |
|
66 TInt aErrorForExpect = KErrNone); |
|
67 |
|
68 void TerminalResponseL( const TDesC8& aRspPckg, TInt aExpectedError = KErrNone); |
|
69 |
|
70 void PrepareAndCallEventDownloadL(const TUint8 aEvent); |
|
71 |
|
72 void PrepareAndCallEventDownloadL(const TUint8 aEvent, |
|
73 const RSat* aClientSat, |
|
74 TBool aIsUnsolicited, |
|
75 TInt aErrorForExpect); |
|
76 |
|
77 |
|
78 |
|
79 void EnvelopeFromTsyL(const TUint8 aEvent, TBool aIsEnvelopeSent = ETrue); |
|
80 |
|
81 void CompleteMTCallL(TUint8 aTransactionId, |
|
82 TDesC8* aAddress, |
|
83 TDesC8* aSubAddress, |
|
84 TBool aIsEnvelopeSent = ETrue); |
|
85 |
|
86 void CompleteCallConnectedL(TUint8 aTransactionId, |
|
87 TBool aNearEnd, |
|
88 TBool aIsEnvelopeSent); |
|
89 |
|
90 void CompleteCallDisconnectedL(TUint8 aTransactionId, |
|
91 TBool aNearEnd, |
|
92 TDesC8* aCause, |
|
93 TBool aIsEnvelopeSent); |
|
94 |
|
95 void CompleteLocationStatusL(TUint8 aLocationStatus, |
|
96 TDes8& aCountryCode, |
|
97 TUint16 aLocationAreaCode, |
|
98 TUint16 aCellId, |
|
99 TBool aIsEnvelopeSent); |
|
100 |
|
101 void CompleteAccessTechnologyChangeL(TUint8 aAccTechChange, |
|
102 TBool aIsEnvelopeSent); |
|
103 |
|
104 void DoTestTerminalResponseL(); |
|
105 |
|
106 |
|
107 }; // class CCSatSetUpEventListFU |
|
108 |
|
109 #endif // CCSATSETUPEVENTLISTFU_H |
|
110 |