|
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 SendUSSD |
|
21 */ |
|
22 |
|
23 #ifndef CCSATSENDUSSDFU_H |
|
24 #define CCSATSENDUSSDFU_H |
|
25 |
|
26 #include <test/tefunit.h> |
|
27 |
|
28 #include <etelmm.h> |
|
29 #include <etelmmcs.h> |
|
30 |
|
31 #include "ccsatcomponenttestbase.h" |
|
32 |
|
33 class CCSatSendUSSDFU : public CCSatComponentTestBase |
|
34 { |
|
35 public: |
|
36 // Create a suite of all the tests |
|
37 static CTestSuite* CreateSuiteL(const TDesC& aName); |
|
38 |
|
39 public: |
|
40 // Individual test steps |
|
41 |
|
42 void TestNotifySendUssdPCmd0001L(); |
|
43 void TestNotifySendUssdPCmd0002L(); |
|
44 void TestNotifySendUssdPCmd0004L(); |
|
45 |
|
46 void TestNotifySendUssdPCmd0001bL(); |
|
47 void TestNotifySendUssdPCmd0001cL(); |
|
48 void TestNotifySendUssdPCmd0001dL(); |
|
49 void TestNotifySendUssdPCmd0001eL(); |
|
50 void TestNotifySendUssdPCmd0001fL(); |
|
51 void TestNotifySendUssdPCmd0001gL(); |
|
52 void TestNotifySendUssdPCmd0001hL(); |
|
53 void TestNotifySendUssdPCmd0001iL(); |
|
54 void TestNotifySendUssdPCmd0001jL(); |
|
55 void TestNotifySendUssdPCmd0001kL(); |
|
56 |
|
57 private: |
|
58 |
|
59 void PrepareMockLDataWithExpL(TUint8 aPCmdNumber); |
|
60 |
|
61 static void PrepareTlv( TTlv& aTlv, |
|
62 TUint8 aDataCodingScheme, |
|
63 const TDesC8& aUssdString, |
|
64 const TDesC8& aAlphaIdentifier, |
|
65 TBool aIsAlphaIdentifierUsed = ETrue); |
|
66 |
|
67 static void PrepareTlvWith7BitStr( TTlv& aTlv, |
|
68 const TDesC8& aAlphaIdentifier, |
|
69 TBool aIsAlphaIdentifierUsed = ETrue); |
|
70 |
|
71 void CompleteMockDispatchSatPcmdL( TPtrC8 aCompleteTlv, TInt aError ); |
|
72 |
|
73 void PrepareTerminalResponseMockDataWithExpL(TUint8 aPCmdNumber, |
|
74 TUint8 aDataCodingScheme, |
|
75 const TDesC8& aTextString, |
|
76 RSat::TPCmdResult aGeneralResult = RSat::KSuccess, |
|
77 TUint8 aResultAddInfo = 0, |
|
78 TBool aIsResultAddInfoUsed = ETrue, |
|
79 TInt aErrorForExpect = KErrNone, |
|
80 TBool aUseEmptyText = EFalse); |
|
81 |
|
82 void TerminalResponseL( const TDesC8& aRspPckg, TInt aExpectedError = KErrNone); |
|
83 |
|
84 void DoTestTerminalResponseL(); |
|
85 |
|
86 }; // class CCSatSendUSSDFU |
|
87 |
|
88 #endif // CCSATSENDUSSDFU_H |
|
89 |
|
90 |