testdev/ite/test/com.nokia.testfw.cmdtool.test/test.resource/unittest/several.mmp.in.one.path/SysLibs/unittest/src/ut_CExampleResolver.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_CExampleResolver.h"
       
    19 #include "ExampleResolver.h"
       
    20 #include <symbianunittestmacros.h>
       
    21 
       
    22 // ---------------------------------------------------------------------------
       
    23 // NewL
       
    24 // ---------------------------------------------------------------------------
       
    25 //
       
    26 UT_CExampleResolver* UT_CExampleResolver::NewL()
       
    27     {
       
    28     UT_CExampleResolver* self = UT_CExampleResolver::NewLC();
       
    29     CleanupStack::Pop( self );
       
    30     return self;
       
    31     }
       
    32 
       
    33 // ---------------------------------------------------------------------------
       
    34 // NewLC
       
    35 // ---------------------------------------------------------------------------
       
    36 //
       
    37 UT_CExampleResolver* UT_CExampleResolver::NewLC()
       
    38     {
       
    39     UT_CExampleResolver* self = new( ELeave )UT_CExampleResolver();
       
    40     CleanupStack::PushL( self );
       
    41     self->ConstructL();
       
    42     return self;
       
    43     }
       
    44 
       
    45 // ---------------------------------------------------------------------------
       
    46 // Constructor
       
    47 // ---------------------------------------------------------------------------
       
    48 //
       
    49 UT_CExampleResolver::UT_CExampleResolver()
       
    50     {
       
    51     }
       
    52 
       
    53 // ---------------------------------------------------------------------------
       
    54 // ConstructL
       
    55 // ---------------------------------------------------------------------------
       
    56 //
       
    57 void UT_CExampleResolver::ConstructL()
       
    58     {
       
    59     BASE_CONSTRUCT
       
    60         ADD_SUT( UT_Destructor_CExampleResolver )
       
    61         ADD_SUT( UT_IdentifyImplementationL )
       
    62         ADD_SUT( UT_ListAllL )
       
    63         ADD_SUT( UT_NewL )
       
    64     
       
    65     // Setup and teardown functions can be changed for each test function
       
    66     // Usually this is not needed, but this is possible.
       
    67     // ADD_SUT_WITH_SETUP_AND_TEARDOWN( SetupL, UT_YouFunc, Teardown )
       
    68     }
       
    69 
       
    70 // ---------------------------------------------------------------------------
       
    71 // Destructor
       
    72 // ---------------------------------------------------------------------------
       
    73 //
       
    74 UT_CExampleResolver::~UT_CExampleResolver()
       
    75     {
       
    76     }
       
    77 
       
    78 // -----------------------------------------------------------------------------
       
    79 // SetupL
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 void UT_CExampleResolver::SetupL()
       
    83     {
       
    84     //iCExampleResolver = CExampleResolver::NewL(); ??
       
    85     }
       
    86 
       
    87 // -----------------------------------------------------------------------------
       
    88 // Teardown
       
    89 // -----------------------------------------------------------------------------
       
    90 //
       
    91 void UT_CExampleResolver::Teardown()
       
    92     {
       
    93     delete iCExampleResolver;
       
    94     iCExampleResolver = NULL;
       
    95     }
       
    96 
       
    97 
       
    98 // -----------------------------------------------------------------------------
       
    99 // test CExampleResolver::~CExampleResolver ()
       
   100 // -----------------------------------------------------------------------------
       
   101 //
       
   102 void UT_CExampleResolver::UT_Destructor_CExampleResolver()
       
   103     {
       
   104 	SUT_ASSERT_LEAVE_WITH(_L("test case not implemented"), KErrNotReady);
       
   105     }
       
   106 
       
   107 // -----------------------------------------------------------------------------
       
   108 // test CExampleResolver::IdentifyImplementationL ()
       
   109 // -----------------------------------------------------------------------------
       
   110 //
       
   111 void UT_CExampleResolver::UT_IdentifyImplementationL()
       
   112     {
       
   113 	SUT_ASSERT_LEAVE_WITH(_L("test case not implemented"), KErrNotReady);
       
   114     }
       
   115 
       
   116 // -----------------------------------------------------------------------------
       
   117 // test CExampleResolver::ListAllL ()
       
   118 // -----------------------------------------------------------------------------
       
   119 //
       
   120 void UT_CExampleResolver::UT_ListAllL()
       
   121     {
       
   122 	SUT_ASSERT_LEAVE_WITH(_L("test case not implemented"), KErrNotReady);
       
   123     }
       
   124 
       
   125 // -----------------------------------------------------------------------------
       
   126 // test CExampleResolver::NewL ()
       
   127 // -----------------------------------------------------------------------------
       
   128 //
       
   129 void UT_CExampleResolver::UT_NewL()
       
   130     {
       
   131 	SUT_ASSERT_LEAVE_WITH(_L("test case not implemented"), KErrNotReady);
       
   132     }
       
   133