equal
deleted
inserted
replaced
14 // Implements the basic test step for the Streaming CAF test harness |
14 // Implements the basic test step for the Streaming CAF test harness |
15 // |
15 // |
16 // |
16 // |
17 |
17 |
18 #include "tscafstep.h" |
18 #include "tscafstep.h" |
19 #ifdef INTERNALLY_ENABLE_UPWARD_DEPENDENCY |
19 #include "sdpconnectionfield.h" |
20 #include <sdpconnectionfield.h> |
20 #include "sdporiginfield.h" |
21 #include <sdporiginfield.h> |
|
22 #endif |
|
23 |
21 |
24 TSdpAttribute::TSdpAttribute() |
22 TSdpAttribute::TSdpAttribute() |
25 { |
23 { |
26 } |
24 } |
27 |
25 |
119 __UHEAP_MARKEND; |
117 __UHEAP_MARKEND; |
120 |
118 |
121 return TestStepResult(); |
119 return TestStepResult(); |
122 } |
120 } |
123 |
121 |
124 #ifdef INTERNALLY_ENABLE_UPWARD_DEPENDENCY |
|
125 // We need this dummy function because TCleanupItem c'tor (see below) does not accept functions without parameters |
122 // We need this dummy function because TCleanupItem c'tor (see below) does not accept functions without parameters |
126 void CloseSdpCodecPool(TAny *) |
123 void CloseSdpCodecPool(TAny *) |
127 { |
124 { |
128 SdpCodecStringPool::Close(); |
125 SdpCodecStringPool::Close(); |
129 } |
126 } |
272 //Add atrributes |
269 //Add atrributes |
273 AddAttributes2SdpL(*sdp, aSdpNum); |
270 AddAttributes2SdpL(*sdp, aSdpNum); |
274 |
271 |
275 return sdp; |
272 return sdp; |
276 } |
273 } |
277 #endif |
|
278 |
274 |
279 CKeyStreamSink* CScafStep::CreateKeyStreamSinkLC(const TDesC& aFileName, const TDesC& aPrivPath) |
275 CKeyStreamSink* CScafStep::CreateKeyStreamSinkLC(const TDesC& aFileName, const TDesC& aPrivPath) |
280 /** |
276 /** |
281 Creates a test key stream sink object. |
277 Creates a test key stream sink object. |
282 @param aFilePath The output file name of the test key stream sink. |
278 @param aFilePath The output file name of the test key stream sink. |
314 /** |
310 /** |
315 Delete the SDP document object and close the codec pool |
311 Delete the SDP document object and close the codec pool |
316 @param aSdp The SDP object which will be deleted. |
312 @param aSdp The SDP object which will be deleted. |
317 */ |
313 */ |
318 { |
314 { |
319 #ifdef INTERNALLY_ENABLE_UPWARD_DEPENDENCY |
|
320 delete reinterpret_cast<CSdpDocument *>(aSdpDoc); |
315 delete reinterpret_cast<CSdpDocument *>(aSdpDoc); |
321 SdpCodecStringPool::Close(); |
316 SdpCodecStringPool::Close(); |
322 #else |
|
323 (void) aSdpDoc; |
|
324 #endif |
|
325 } |
317 } |
326 |
318 |
327 void CScafStep::CopyFile2AgentsPrivateFolderL(RFs& aFs, const TDesC& aFileName, const TDesC& aPrivPath) |
319 void CScafStep::CopyFile2AgentsPrivateFolderL(RFs& aFs, const TDesC& aFileName, const TDesC& aPrivPath) |
328 /** |
320 /** |
329 Copy a test file from Z drive to the private folder of the test agent server. |
321 Copy a test file from Z drive to the private folder of the test agent server. |
354 // Make the file writeable |
346 // Make the file writeable |
355 User::LeaveIfError(fm->Attribs(*fTarget, 0, KEntryAttReadOnly, TTime(0), 0)); |
347 User::LeaveIfError(fm->Attribs(*fTarget, 0, KEntryAttReadOnly, TTime(0), 0)); |
356 CleanupStack::PopAndDestroy(2, fTarget); |
348 CleanupStack::PopAndDestroy(2, fTarget); |
357 } |
349 } |
358 |
350 |
359 #ifdef INTERNALLY_ENABLE_UPWARD_DEPENDENCY |
|
360 void CScafStep::AddAttributes2SdpL(CSdpMediaField& aSdp, TInt aSdpNum) |
351 void CScafStep::AddAttributes2SdpL(CSdpMediaField& aSdp, TInt aSdpNum) |
361 /** |
352 /** |
362 * Add attributes from the instance within the CSdpConfiguration array, where |
353 * Add attributes from the instance within the CSdpConfiguration array, where |
363 * the attribute information is stored, into the SDP object being constructed. |
354 * the attribute information is stored, into the SDP object being constructed. |
364 * @param aSdp The SDP object where the attribute is added. |
355 * @param aSdp The SDP object where the attribute is added. |
402 CleanupStack::Pop(fmtpAttribute); |
393 CleanupStack::Pop(fmtpAttribute); |
403 } |
394 } |
404 CleanupStack::PopAndDestroy(3); |
395 CleanupStack::PopAndDestroy(3); |
405 }//for |
396 }//for |
406 }//End of function |
397 }//End of function |
407 #endif |
|
408 |
398 |
409 void CScafStep::PrintErrorAndLeaveL(TDesC& aKey) |
399 void CScafStep::PrintErrorAndLeaveL(TDesC& aKey) |
410 /** |
400 /** |
411 Prints an error message and then leaves with not found error. |
401 Prints an error message and then leaves with not found error. |
412 @param aKey The name of the key which is not found. |
402 @param aKey The name of the key which is not found. |