|
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 GetInput |
|
21 */ |
|
22 |
|
23 #ifndef CCSATGETINPUTFU_H |
|
24 #define CCSATGETINPUTFU_H |
|
25 |
|
26 #include <test/tefunit.h> |
|
27 |
|
28 #include <etelmm.h> |
|
29 #include <etelmmcs.h> |
|
30 |
|
31 #include "ccsatcomponenttestbase.h" |
|
32 |
|
33 |
|
34 class CCSatGetInputFU : public CCSatComponentTestBase |
|
35 { |
|
36 public: |
|
37 // Create a suite of all the tests |
|
38 static CTestSuite* CreateSuiteL(const TDesC& aName); |
|
39 |
|
40 public: |
|
41 // |
|
42 void TestNotifyGetInputPCmd0001L(); |
|
43 void TestNotifyGetInputPCmd0001bL(); |
|
44 void TestNotifyGetInputPCmd0002L(); |
|
45 void TestNotifyGetInputPCmd0004L(); |
|
46 |
|
47 private: |
|
48 |
|
49 void TestGetInputSuccessfulWithoutTerminalResponseL( |
|
50 TUint8 aPCmdNumber, |
|
51 TUint8 aGetInputQualifier, |
|
52 const TDesC8& aGetInputText, |
|
53 TUint8 aMinRspLength, |
|
54 TUint8 aMaxRspLength); |
|
55 |
|
56 void TestGetInputWithUnsuccessfulTerminalResponseL( |
|
57 TUint8 aPCmdNumber, |
|
58 RSat::TPCmdResult aError, |
|
59 const TDesC& aMeProblemAddInfo = KNullDesC, |
|
60 const TInt aExpResult = KErrNone); |
|
61 |
|
62 void GenerateTerminalResponseL( |
|
63 TUint8 aCommandQualifier, |
|
64 const RSat::TGetInputRspV1& aResp, |
|
65 TUint8 aCodingScheme = K8BitDCS, |
|
66 const TInt aExpResult = KErrNone); |
|
67 |
|
68 }; // // class CCSatGetInputFU |
|
69 |
|
70 #endif // CCSATGETINPUTFU_H |
|
71 |