traceservices/tracefw/integ_test/ost/TEF/te_ostv2integsuite_common/src/te_ctor.cpp
branchRCL_3
changeset 24 cc28652e0254
parent 23 26645d81f48d
child 25 047f208ea78f
equal deleted inserted replaced
23:26645d81f48d 24:cc28652e0254
     1 // Copyright (c) 2007-2010 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 "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 // Test class generating trace data from contructor with/without initialiser list.
       
    15 //
       
    16 
       
    17 #include "te_ctor.h"
       
    18 #include "te_ctorTraces.h"
       
    19 
       
    20 /**
       
    21  * Constructor
       
    22  *
       
    23  * Trace producing constructor with initialiser list.
       
    24  *
       
    25  * Previous versions of the TraceCompiler do not handle initialiser lists correctly.
       
    26  * For such a TC the following code will not compile.
       
    27  */
       
    28 
       
    29 TTestCtor::TTestCtor( TUint32 aArg1, TUint32 aArg2 )
       
    30 :
       
    31     iNum1( aArg1 ),
       
    32     iNum2( aArg2 ),
       
    33     iStr( KTestCtorString )
       
    34     {
       
    35     OstTraceFunctionEntryExt( CTESTCTOR_INITLIST_TRACE, KData1 );
       
    36     }
       
    37 
       
    38 /**
       
    39  * Constructor
       
    40  *
       
    41  * Trace producing constructor without initialiser list.
       
    42  */
       
    43 
       
    44 TTestCtor::TTestCtor( TUint32 aArg1 )
       
    45     {
       
    46     iNum1 =  aArg1;
       
    47     iNum2 = 0;
       
    48     iStr = KTestCtorString;
       
    49 
       
    50     OstTraceFunctionEntryExt( CTESTCTOR_NO_INITLIST_TRACE, KData1 );
       
    51     }