contentmgmt/cafstreamingsupport/test/tscaf/source/tstaunittest.cpp
branchRCL_3
changeset 43 2f10d260163b
equal deleted inserted replaced
42:eb9b28acd381 43:2f10d260163b
       
     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 // Implements the unit test steps for the Test Streaming Agent.
       
    15 // 
       
    16 //
       
    17 
       
    18 #include "tstaunittest.h"
       
    19 
       
    20 using namespace StreamAccess;
       
    21 
       
    22 CScafTestAgentServer::CScafTestAgentServer(CScafServer& aParent)
       
    23 /**
       
    24  	Constructor.
       
    25  */
       
    26 	:	CScafStep(aParent)
       
    27 	{
       
    28 	SetTestStepName(KScafTestAgentServerStep);
       
    29 	}
       
    30 
       
    31 CScafTestAgentServer::~CScafTestAgentServer()
       
    32 /**
       
    33  	Destructor.
       
    34  */
       
    35 	{
       
    36 	//empty
       
    37 	}
       
    38 
       
    39 TVerdict CScafTestAgentServer::doTestStepL()
       
    40 	{
       
    41 	INFO_PRINTF1(_L("CStaTestAgentServer test"));
       
    42 	__UHEAP_MARK;
       
    43 	
       
    44 	RStaClient sta;
       
    45 	TInt r = sta.Connect();
       
    46 	
       
    47 	if(KErrNone == r)
       
    48 		{
       
    49 		sta.Close();
       
    50 		}
       
    51 	else
       
    52 		{
       
    53 		SetTestStepResult(EFail);
       
    54 		}
       
    55 	
       
    56 	__UHEAP_MARKEND;
       
    57 	return TestStepResult();
       
    58 	}
       
    59