equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 #include "runtimetest.h" |
|
18 |
|
19 |
|
20 CRuntimeTest::CRuntimeTest() |
|
21 { |
|
22 } |
|
23 CRuntimeTest::~CRuntimeTest() |
|
24 { |
|
25 delete iName; |
|
26 } |
|
27 |
|
28 void CRuntimeTest::BaseConstructL( const TDesC& aName ) |
|
29 { |
|
30 iName = CreateTestNameL( aName ); |
|
31 } |
|
32 |
|
33 const TDesC& CRuntimeTest::Name() const |
|
34 { |
|
35 return *iName; |
|
36 } |
|
37 HBufC* CRuntimeTest::CreateTestNameL( const TDesC& aName ) const |
|
38 { |
|
39 HBufC* name = HBufC::NewL( aName.Length() + 200 ); //200 characters for rest of data |
|
40 TPtr ptr( name->Des() ); |
|
41 ptr.Copy( aName ); |
|
42 |
|
43 ptr.Append( _L("\t") ); |
|
44 ptr.Append( _L("") ); //class name |
|
45 |
|
46 ptr.Append( _L("\t") ); |
|
47 ptr.Append( _L("") ); //tested method |
|
48 |
|
49 ptr.Append( _L("\t") ); |
|
50 ptr.Append( _L("FUNCTIONALITY") ); //test type |
|
51 |
|
52 |
|
53 return name; |
|
54 } |
|
55 // END OF FILE |