contentmgmt/cafstreamingsupport/test/tscaf/source/treferenceagent.cpp
changeset 66 8873e6835f7b
parent 56 c11c717470d0
child 96 a71299154b21
equal deleted inserted replaced
62:b23410e29e22 66:8873e6835f7b
    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
       
    26 const TUint32 KTestSpiBase = 667;
    25 const TUint32 KTestSpiBase = 667;
    27 #endif
       
    28 
    26 
    29 CScafRefAgent::CScafRefAgent(CScafServer& aParent): CScafIpSec(aParent)
    27 CScafRefAgent::CScafRefAgent(CScafServer& aParent): CScafIpSec(aParent)
    30 	{
    28 	{
    31 	SetTestStepName(KScafRefAgent);
    29 	SetTestStepName(KScafRefAgent);
    32 	}
    30 	}
    33 
    31 
    34 
    32 
    35 TVerdict CScafRefAgent::doTestL()
    33 TVerdict CScafRefAgent::doTestL()
    36 	{
    34 	{
    37 #ifdef INTERNALLY_ENABLE_UPWARD_DEPENDENCY
       
    38 	SetTestStepResult(EPass);
    35 	SetTestStepResult(EPass);
    39 	CleanAgentsPrivateFolderL(KSraPrivateFolder());
    36 	CleanAgentsPrivateFolderL(KSraPrivateFolder());
    40 	CopyFile2AgentsPrivateFolderL(iParent.Fs(), KProgramProtectedRo(), KSraPrivateFolder());
    37 	CopyFile2AgentsPrivateFolderL(iParent.Fs(), KProgramProtectedRo(), KSraPrivateFolder());
    41 	
    38 	
    42 	//Create an SDP document object and set the created key stream field object
    39 	//Create an SDP document object and set the created key stream field object
    93 	CallValidateSadbL(KTestSpiBase, sourceAddr, destinationAddr, ETrue);
    90 	CallValidateSadbL(KTestSpiBase, sourceAddr, destinationAddr, ETrue);
    94 	
    91 	
    95 	// Release the allocated memories
    92 	// Release the allocated memories
    96 	CleanupStack::PopAndDestroy(5, protectedStreamDesc);
    93 	CleanupStack::PopAndDestroy(5, protectedStreamDesc);
    97 	CleanupStack::PopAndDestroy(); // sdpDoc
    94 	CleanupStack::PopAndDestroy(); // sdpDoc
    98 #endif
       
    99 	return TestStepResult();	
    95 	return TestStepResult();	
   100 	}
    96 	}