|
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 DisplayText |
|
21 */ |
|
22 |
|
23 #ifndef CCSATDISPLAYTEXTFU_H |
|
24 #define CCSATDISPLAYTEXTFU_H |
|
25 |
|
26 #include <test/tefunit.h> |
|
27 |
|
28 #include <etelmm.h> |
|
29 #include <etelmmcs.h> |
|
30 |
|
31 #include "ccsatcomponenttestbase.h" |
|
32 |
|
33 class CCSatDisplayTextFU : 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 TestNotifyDisplayTextPCmd0001L(); |
|
43 void TestNotifyDisplayTextPCmd0001bL(); |
|
44 void TestNotifyDisplayTextPCmd0002L(); |
|
45 void TestNotifyDisplayTextPCmd0004L(); |
|
46 |
|
47 private: |
|
48 |
|
49 void DisplayTextPCmdTlvBegin( |
|
50 TTlv& aTlv, |
|
51 TUint8 aPCmdNumber, |
|
52 TUint8 aCommandQualifier); |
|
53 |
|
54 void TestNotifyDisplayTextSuccessfulL( |
|
55 TUint8 aCommandQualifier, |
|
56 const TDesC8& aTextToDisplay, |
|
57 const RSat::TDisplayTextRspV1& aResp, |
|
58 const TInt aExpResult = KErrNone); |
|
59 |
|
60 void GenerateTerminalResponseL( |
|
61 TUint8 aCommandQualifier, |
|
62 const RSat::TDisplayTextRspV1& aResp, |
|
63 const TInt aExpResult = KErrNone); |
|
64 |
|
65 }; // class CCSatDisplayTextFU |
|
66 |
|
67 #endif // CCSATDISPLAYTEXTFU_H |
|
68 |