testdev/ite/test/com.nokia.testfw.cmdtool.test/test.resource/unittest/several.bld.inf/multiprj/unittest/src/ut_CClass1.cpp
changeset 1 96906a986c3b
equal deleted inserted replaced
0:f1112f777ce9 1:96906a986c3b
       
     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 the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #include "ut_CClass1.h"
       
    19 #include "class1.h"
       
    20 #include <symbianunittestmacros.h>
       
    21 
       
    22 // ---------------------------------------------------------------------------
       
    23 // NewL
       
    24 // ---------------------------------------------------------------------------
       
    25 //
       
    26 UT_CClass1* UT_CClass1::NewL()
       
    27     {
       
    28     UT_CClass1* self = UT_CClass1::NewLC();
       
    29     CleanupStack::Pop( self );
       
    30     return self;
       
    31     }
       
    32 
       
    33 // ---------------------------------------------------------------------------
       
    34 // NewLC
       
    35 // ---------------------------------------------------------------------------
       
    36 //
       
    37 UT_CClass1* UT_CClass1::NewLC()
       
    38     {
       
    39     UT_CClass1* self = new( ELeave )UT_CClass1();
       
    40     CleanupStack::PushL( self );
       
    41     self->ConstructL();
       
    42     return self;
       
    43     }
       
    44 
       
    45 // ---------------------------------------------------------------------------
       
    46 // Constructor
       
    47 // ---------------------------------------------------------------------------
       
    48 //
       
    49 UT_CClass1::UT_CClass1()
       
    50     {
       
    51     }
       
    52 
       
    53 // ---------------------------------------------------------------------------
       
    54 // ConstructL
       
    55 // ---------------------------------------------------------------------------
       
    56 //
       
    57 void UT_CClass1::ConstructL()
       
    58     {
       
    59     BASE_CONSTRUCT
       
    60         ADD_SUT( UT_Constructor_CClass1 )
       
    61         ADD_SUT( UT_Destructor_CClass1 )
       
    62         ADD_SUT( UT_PubFoo1 )
       
    63     
       
    64     // Setup and teardown functions can be changed for each test function
       
    65     // Usually this is not needed, but this is possible.
       
    66     // ADD_SUT_WITH_SETUP_AND_TEARDOWN( SetupL, UT_YouFunc, Teardown )
       
    67     }
       
    68 
       
    69 // ---------------------------------------------------------------------------
       
    70 // Destructor
       
    71 // ---------------------------------------------------------------------------
       
    72 //
       
    73 UT_CClass1::~UT_CClass1()
       
    74     {
       
    75     }
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // SetupL
       
    79 // -----------------------------------------------------------------------------
       
    80 //
       
    81 void UT_CClass1::SetupL()
       
    82     {
       
    83     //iCClass1 = CClass1::NewL(); ??
       
    84     }
       
    85 
       
    86 // -----------------------------------------------------------------------------
       
    87 // Teardown
       
    88 // -----------------------------------------------------------------------------
       
    89 //
       
    90 void UT_CClass1::Teardown()
       
    91     {
       
    92     delete iCClass1;
       
    93     iCClass1 = NULL;
       
    94     }
       
    95 
       
    96 
       
    97 // -----------------------------------------------------------------------------
       
    98 // test CClass1::CClass1 ()
       
    99 // -----------------------------------------------------------------------------
       
   100 //
       
   101 void UT_CClass1::UT_Constructor_CClass1()
       
   102     {
       
   103 	SUT_ASSERT_LEAVE_WITH(_L("test case not implemented"), KErrNotReady);
       
   104     }
       
   105 
       
   106 // -----------------------------------------------------------------------------
       
   107 // test CClass1::~CClass1 ()
       
   108 // -----------------------------------------------------------------------------
       
   109 //
       
   110 void UT_CClass1::UT_Destructor_CClass1()
       
   111     {
       
   112 	SUT_ASSERT_LEAVE_WITH(_L("test case not implemented"), KErrNotReady);
       
   113     }
       
   114 
       
   115 // -----------------------------------------------------------------------------
       
   116 // test CClass1::PubFoo1 ()
       
   117 // -----------------------------------------------------------------------------
       
   118 //
       
   119 void UT_CClass1::UT_PubFoo1()
       
   120     {
       
   121 	SUT_ASSERT_LEAVE_WITH(_L("test case not implemented"), KErrNotReady);
       
   122     }
       
   123