mmsharing/mmshavailability/tsrc/ut_availability/src/UT_availability.cpp
changeset 22 496ad160a278
parent 0 f0cf47e981f9
equal deleted inserted replaced
15:ccd8e69b5392 22:496ad160a278
       
     1 /*
       
     2 * Copyright (c) 2004 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 
       
    18 
       
    19 //  CLASS HEADER
       
    20 #include "UT_availability.h"
       
    21 #include "CSipSseTestTls.h"
       
    22 
       
    23 //  EXTERNAL INCLUDES
       
    24 #include <digia/eunit/eunitmacros.h>
       
    25 
       
    26 
       
    27 //  INTERNAL INCLUDES
       
    28 
       
    29 
       
    30 // CONSTRUCTION
       
    31 T_availability* T_availability::NewL()
       
    32     {
       
    33     T_availability* self = T_availability::NewLC();
       
    34     CleanupStack::Pop();
       
    35 
       
    36     return self;
       
    37     }
       
    38 
       
    39 T_availability* T_availability::NewLC()
       
    40     {
       
    41     T_availability* self = new( ELeave ) T_availability();
       
    42     CleanupStack::PushL( self );
       
    43 
       
    44     self->ConstructL();
       
    45 
       
    46     return self;
       
    47     }
       
    48 
       
    49 // Destructor (virtual by CBase)
       
    50 T_availability::~T_availability()
       
    51     {
       
    52     }
       
    53 
       
    54 // Default constructor
       
    55 T_availability::T_availability()
       
    56     {
       
    57     }
       
    58 
       
    59 // Second phase construct
       
    60 void T_availability::ConstructL()
       
    61     {
       
    62     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
       
    63     // It generates the test case table.
       
    64     CEUnitTestSuiteClass::ConstructL();
       
    65     }
       
    66 
       
    67 //  METHODS
       
    68 
       
    69 
       
    70 
       
    71 void T_availability::SetupL(  )
       
    72     {
       
    73     CSipSseTestTls::OpenL();
       
    74     iStorage = CSipSseTestTls::Storage();
       
    75     }
       
    76 
       
    77 void T_availability::Teardown(  )
       
    78     {
       
    79     if ( iStorage )
       
    80         {
       
    81         iStorage->Clear();
       
    82         CSipSseTestTls::Close();
       
    83         iStorage = NULL;
       
    84         }
       
    85     }
       
    86 
       
    87 void T_availability::TestL(  )
       
    88     {
       
    89     EUNIT_ASSERT( EFalse );
       
    90     }
       
    91     
       
    92 void UT_CMusAvaController_StartAvailibilityLL()
       
    93     {
       
    94     
       
    95     }
       
    96   
       
    97 //  TEST TABLE
       
    98 
       
    99 EUNIT_BEGIN_TEST_TABLE(
       
   100     T_availability,
       
   101     "Add test suite description here.",
       
   102     "MODULE" )
       
   103 
       
   104 EUNIT_TEST(
       
   105     "Empty test skeleton",
       
   106     "Add tested class name here",
       
   107     "Add tested function name here",
       
   108     "FUNCTIONALITY",
       
   109     SetupL, TestL, Teardown)
       
   110     
       
   111 
       
   112 EUNIT_END_TEST_TABLE
       
   113 
       
   114 //  END OF FILE