|
1 // Copyright (c) 2001-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 // |
|
15 |
|
16 #ifndef __COMMON_H__ |
|
17 #define __COMMON_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <e32test.h> |
|
21 // |
|
22 //Constants & macro definitions for te_ppp test harness |
|
23 // |
|
24 |
|
25 #define NIF_IFSERVERMODE _L("Service\\IfServerMode") |
|
26 const TUint KMaxNumArgs = 5; |
|
27 const TUint KMaxMsgLen = 100; // in bytes, since we deal with 8bit (narrow) data |
|
28 |
|
29 //common typedefs |
|
30 typedef TPtrC8 TCommands[KMaxNumArgs]; // container type for parsed control commands |
|
31 typedef TBuf8<KMaxMsgLen> TBuffer; //control link raw data buffer type |
|
32 |
|
33 class CCommonData { |
|
34 public: |
|
35 CCommonData(); |
|
36 |
|
37 //control link constants |
|
38 const TInt KTerminator; //$ symbol |
|
39 const TInt KTerminatorCount; |
|
40 |
|
41 const TPtrC8 KTerminatorStr; |
|
42 const TPtrC KCtrlCommPortName; |
|
43 const TPtrC KCtrlCommPortName4asbt; |
|
44 const TPtrC KCtrlCommPortName4H2; |
|
45 |
|
46 |
|
47 //control command names |
|
48 const TPtrC8 KStartCmd; |
|
49 const TPtrC8 KStopCmd; |
|
50 const TPtrC8 KStartTermCmd; |
|
51 |
|
52 const TUint KMaxCfgIdLength; |
|
53 // |
|
54 const TUint KMaxCmdLen; |
|
55 |
|
56 //const TUint KSlashChar; |
|
57 const TPtrC KModemPortString; |
|
58 const TPtrC KModemCsyString; |
|
59 const TPtrC KModemCommRoleString; |
|
60 const TPtrC KIapIdString; |
|
61 |
|
62 //hardcoded ppp configuration (in normal situation it's in the CommDB) |
|
63 const TBool KPppIsServerMode; |
|
64 const TPtrC KPppCommdbName; |
|
65 const TPtrC KPppPortString; |
|
66 const TPtrC KPppCsyString; |
|
67 const TUint32 KPppCommRole; |
|
68 const TUint32 KPppIapId; |
|
69 const TBool KPppIsLcpExtEnabled; |
|
70 const TBool KPppIsSwCompEnabled; |
|
71 const TBool KPppIsCallbackEnabled; |
|
72 |
|
73 //file paths |
|
74 const TPtrC KTestConfigFilePaths; |
|
75 const TPtrC KTestConfigFileName; |
|
76 const TPtrC KPppIniFullPath; |
|
77 |
|
78 const TPtrC KPppNifFileName; |
|
79 |
|
80 //const TPtrC KPppNifFilePath; |
|
81 |
|
82 //special for the test. Under this section there're values which normally are at commdb |
|
83 const TPtrC KCommDbSectionName; |
|
84 }; |
|
85 |
|
86 #endif //__COMMON_H__ |