|
1 // Copyright (c) 2007-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 the License "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 // Defines the common constant definitions for the Streaming CAF test harness |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 @test |
|
22 */ |
|
23 |
|
24 #ifndef TSCAFDEFS_H_ |
|
25 #define TSCAFDEFS_H_ |
|
26 |
|
27 //Names of the test RO files |
|
28 _LIT(KServiceProtectedRo,"roserviceprotected.dr"); |
|
29 _LIT(KProgramProtectedRo,"roprogramprotected.dr"); |
|
30 _LIT(KSimpleRoFileName,"rosimple.dr"); |
|
31 _LIT(KExpiredRoFileName,"roexpired.dr"); |
|
32 _LIT(KRecordableRoFileName,"rorecordable.dr"); |
|
33 _LIT(KPostAcquisitionRoFileName,"postacquisitiontest.dr"); |
|
34 |
|
35 /** The private folder of the Streaming Test Agent. */ |
|
36 _LIT(KStaPrivateFolder,"!:\\private\\1028588b\\"); |
|
37 |
|
38 /** The private folder of the Test Server. */ |
|
39 _LIT(KTestServerPrivateFolder,"!:\\private\\1028588c\\"); |
|
40 |
|
41 /** The private folder of the Reference Test Agent. */ |
|
42 _LIT(KRtaPrivateFolder,"!:\\private\\10205ea5\\"); |
|
43 |
|
44 /** The path where data files live. */ |
|
45 _LIT(KDataFilesPath,"z:\\tcaf\\tscaf\\data\\"); |
|
46 |
|
47 /** The test folder of the Reference Test Agent. */ |
|
48 _LIT(KRtaTestFolder,"!:\\rta\\"); |
|
49 |
|
50 /** Maximum length of the Rights Object's content. */ |
|
51 const TInt KMaxRightsObjectLength = 255; |
|
52 |
|
53 /** Maximum length of a Mime type. */ |
|
54 const TInt KMaxMimeTypeLength = 50; |
|
55 |
|
56 // ******* INI file configuration constants ******* |
|
57 |
|
58 // Out of Memory Test attributes |
|
59 _LIT(KScafConfigOOMTest,"OOMTest"); |
|
60 |
|
61 // Rights object filename attribute |
|
62 _LIT(KScafConfigRoName,"RoName_%d"); |
|
63 |
|
64 // Key Stream Decoder Attribute Identifiers |
|
65 _LIT(KScafConfigIsServiceProtected,"IsServiceProtected%d"); |
|
66 _LIT(KScafConfigIsProgramProtected,"IsProgramProtected%d"); |
|
67 _LIT(KScafConfigCanExport,"CanExport%d"); |
|
68 _LIT(KScafConfigMustProtectIfRecording,"MustProtectIfRecording%d"); |
|
69 _LIT(KScafConfigCanPlay,"CanPlay%d"); |
|
70 _LIT(KScafConfigContentId,"ContentId%d"); |
|
71 _LIT(KScafConfigRightsIssuerUri,"RightsIssuerUri%d"); |
|
72 |
|
73 // Single Process Stream Agent Specific Attributes |
|
74 _LIT(KScafConfigSingleProcessAgent,"SingleProcessAgent%d"); |
|
75 _LIT(KScafConfigPrivateFolderPath,"PrivateFolderPath%d"); |
|
76 |
|
77 // SDP Construction Attributes |
|
78 _LIT(KSdpMedia,"Media%d"); |
|
79 _LIT(KSdpPort,"Port%d"); |
|
80 _LIT(KSdpProtocol,"Protocol%d"); |
|
81 _LIT(KSdpFormat,"Format%d"); |
|
82 _LIT(KSdpConnAddr,"ConnectionAddress%d"); |
|
83 _LIT(KSdpAttributeNum,"AttributeNum%d"); |
|
84 _LIT(KSdpAttributeName,"AttributeName%d%d"); |
|
85 _LIT(KSdpAttributeValue,"AttributeValue%d%d"); |
|
86 _LIT(KSdpAttributeType,"AttributeType%d%d"); |
|
87 |
|
88 // Constants for Media types |
|
89 _LIT(KSdpMediaAudio,"Audio"); |
|
90 _LIT(KSdpMediaVideo,"Video"); |
|
91 _LIT(KSdpMediaData,"Data"); |
|
92 |
|
93 //Constants for Protocol types |
|
94 _LIT(KSdpProtocolUdp,"Udp"); |
|
95 _LIT(KSdpProtocolTcp,"Tcp"); |
|
96 _LIT(KSdpProtocolRtp,"Rtp"); |
|
97 |
|
98 //Whether the output file is created by the test harness |
|
99 //ETrue=Test Harness creates output files |
|
100 //EFalse=The agent creates output files |
|
101 _LIT(KCreateOutputFiles, "CreateOutputFiles"); |
|
102 |
|
103 // ******************************************** |
|
104 |
|
105 #endif /*TSCAFDEFS_H_*/ |