contentmgmt/cafstreamingsupport/test/tscaf/source/treferenceagent.cpp
branchRCL_3
changeset 62 a71299154b21
parent 61 641f389e9157
equal deleted inserted replaced
61:641f389e9157 62:a71299154b21
    20 #include "treferenceagent.h"
    20 #include "treferenceagent.h"
    21 #include "stkm.h"
    21 #include "stkm.h"
    22 
    22 
    23 using namespace StreamAccess;
    23 using namespace StreamAccess;
    24 
    24 
       
    25 #ifdef INTERNALLY_ENABLE_UPWARD_DEPENDENCY
    25 const TUint32 KTestSpiBase = 667;
    26 const TUint32 KTestSpiBase = 667;
       
    27 #endif
    26 
    28 
    27 CScafRefAgent::CScafRefAgent(CScafServer& aParent): CScafIpSec(aParent)
    29 CScafRefAgent::CScafRefAgent(CScafServer& aParent): CScafIpSec(aParent)
    28 	{
    30 	{
    29 	SetTestStepName(KScafRefAgent);
    31 	SetTestStepName(KScafRefAgent);
    30 	}
    32 	}
    31 
    33 
    32 
    34 
    33 TVerdict CScafRefAgent::doTestL()
    35 TVerdict CScafRefAgent::doTestL()
    34 	{
    36 	{
       
    37 #ifdef INTERNALLY_ENABLE_UPWARD_DEPENDENCY
    35 	SetTestStepResult(EPass);
    38 	SetTestStepResult(EPass);
    36 	CleanAgentsPrivateFolderL(KSraPrivateFolder());
    39 	CleanAgentsPrivateFolderL(KSraPrivateFolder());
    37 	CopyFile2AgentsPrivateFolderL(iParent.Fs(), KProgramProtectedRo(), KSraPrivateFolder());
    40 	CopyFile2AgentsPrivateFolderL(iParent.Fs(), KProgramProtectedRo(), KSraPrivateFolder());
    38 	
    41 	
    39 	//Create an SDP document object and set the created key stream field object
    42 	//Create an SDP document object and set the created key stream field object
    90 	CallValidateSadbL(KTestSpiBase, sourceAddr, destinationAddr, ETrue);
    93 	CallValidateSadbL(KTestSpiBase, sourceAddr, destinationAddr, ETrue);
    91 	
    94 	
    92 	// Release the allocated memories
    95 	// Release the allocated memories
    93 	CleanupStack::PopAndDestroy(5, protectedStreamDesc);
    96 	CleanupStack::PopAndDestroy(5, protectedStreamDesc);
    94 	CleanupStack::PopAndDestroy(); // sdpDoc
    97 	CleanupStack::PopAndDestroy(); // sdpDoc
       
    98 #endif
    95 	return TestStepResult();	
    99 	return TestStepResult();	
    96 	}
   100 	}