|
1 // Copyright (c) 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 // Contains constants refered in test code |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __CONSTANTS_H__ |
|
19 #define __CONSTANTS_H__ |
|
20 |
|
21 // Constant literals |
|
22 _LIT(KTestPnPManager, "TestPnPManager"); |
|
23 |
|
24 |
|
25 const TInt KMaxLogSize = 1024; |
|
26 const TInt KMaxUriSize = 1024; |
|
27 const TUint KTestTierId = 0x2025D054; |
|
28 const TUint KInvalidTestTierId = 0x2525D025; |
|
29 |
|
30 //Constants |
|
31 _LIT(KDiscovery, "discovery"); |
|
32 _LIT(KDescribe, "describe"); |
|
33 _LIT(KSubscribe, "subscribe"); |
|
34 _LIT(KRegisterAnnouncement, "registernotify"); |
|
35 _LIT(KPublishService, "publishservice"); |
|
36 _LIT(KNotify, "notify"); |
|
37 _LIT(KCancelDiscover, "canceldiscovery"); |
|
38 _LIT(KCancelDescribe, "canceldescribe"); |
|
39 _LIT(KCancelNotify, "cancelnotify"); |
|
40 _LIT(KReadIni, "readini"); |
|
41 _LIT(KDescribeService, "describeservice"); |
|
42 _LIT(KOpenDiscoverer, "opendiscoverer"); |
|
43 _LIT(KOpenPublisher, "openpublisher"); |
|
44 _LIT(KCancelAll, "cancelall"); |
|
45 _LIT(KPositiveCase, "positivecase"); |
|
46 _LIT(KOpenDiscovererFail, "opendiscovererfailed"); |
|
47 _LIT(KOpenPublisherFail, "openpublisherfailed"); |
|
48 |
|
49 //Constant literals -- Discovery response |
|
50 _LIT(KResponseTime, "responsetime"); |
|
51 _LIT(KDescription, "description"); |
|
52 _LIT(KUri, "uri"); |
|
53 _LIT(KServiceType, "servicetype"); |
|
54 _LIT(KOperationType, "operationtype"); |
|
55 _LIT(KUrl, "url"); |
|
56 |
|
57 const TInt KMaxBufLength = 256; |
|
58 |
|
59 |
|
60 _LIT8(KSlash, "/"); |
|
61 _LIT8(KColonSlashSlash, "://"); |
|
62 _LIT8(KColon, ":"); |
|
63 |
|
64 |
|
65 //Panics |
|
66 _LIT(KDescribeTestPanicCategory,"Describe"); |
|
67 _LIT(KDescoveryTestPanicCategory, "Discovery"); |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 #endif //__CONSTANTS_H__ |