idlefw/tsrc/devicestatusplugin/mt_devstaplg/runtimetest.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 10:13:44 +0300
branchRCL_3
changeset 28 053c6c7c14f3
permissions -rw-r--r--
Revision: 201026 Kit: 201033

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/
#include "runtimetest.h"


CRuntimeTest::CRuntimeTest()
	{
	}
CRuntimeTest::~CRuntimeTest()
	{
	delete iName;
	}

void CRuntimeTest::BaseConstructL( const TDesC& aName )
	{
	iName = CreateTestNameL( aName );
	}

const TDesC& CRuntimeTest::Name() const
	{
	return *iName;
	}
HBufC* CRuntimeTest::CreateTestNameL( const TDesC& aName ) const
	{
	HBufC* name = HBufC::NewL( aName.Length() + 200 ); //200 characters for rest of data
	TPtr ptr( name->Des() );
	ptr.Copy( aName );

	ptr.Append( _L("\t") );
	ptr.Append( _L("") );   //class name

	ptr.Append( _L("\t") );
	ptr.Append( _L("") );   //tested method

	ptr.Append( _L("\t") );
	ptr.Append( _L("FUNCTIONALITY") );   //test type


	return name;
	}
//  END OF FILE