phoneapp/phoneuiutils/tsrc/ut_tphonecmdparamglobalnote/src/ut_tphonecmdparamglobalnote.cpp
changeset 77 2be0b271d017
equal deleted inserted replaced
72:c76a0b1755b9 77:2be0b271d017
       
     1 /*
       
     2 * Copyright (c) 2010 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 This file has been generated with EUnit Pro
       
    20 http://www.sysopendigia.com/qualitykit
       
    21 -----------------------------------------------------------------------------
       
    22 */
       
    23 #include <EUnitMacros.h>
       
    24 #include <EUnitDecorators.h>
       
    25 #include "tphonecmdparamglobalnote.h"
       
    26 #include "ut_tphonecmdparamglobalnote.h"
       
    27 #include "phoneconstants.h"
       
    28 
       
    29 // - Construction -----------------------------------------------------------
       
    30 UT_TPhoneCmdParamGlobalNote* UT_TPhoneCmdParamGlobalNote::NewL()
       
    31     {
       
    32     UT_TPhoneCmdParamGlobalNote* self = UT_TPhoneCmdParamGlobalNote::NewLC();
       
    33     CleanupStack::Pop( self );
       
    34     return self;
       
    35     }
       
    36 
       
    37 UT_TPhoneCmdParamGlobalNote* UT_TPhoneCmdParamGlobalNote::NewLC()
       
    38     {
       
    39     UT_TPhoneCmdParamGlobalNote* self = new( ELeave ) UT_TPhoneCmdParamGlobalNote();
       
    40     CleanupStack::PushL( self );
       
    41     self->ConstructL();
       
    42     return self;
       
    43     }
       
    44 
       
    45 UT_TPhoneCmdParamGlobalNote::~UT_TPhoneCmdParamGlobalNote()
       
    46     {
       
    47     
       
    48     }
       
    49 
       
    50 UT_TPhoneCmdParamGlobalNote::UT_TPhoneCmdParamGlobalNote()
       
    51     {
       
    52     }
       
    53 
       
    54 void UT_TPhoneCmdParamGlobalNote::ConstructL()
       
    55     {
       
    56     CEUnitTestSuiteClass::ConstructL();
       
    57     }
       
    58 
       
    59 // - Test methods -----------------------------------------------------------
       
    60 void UT_TPhoneCmdParamGlobalNote::SetupL(  )
       
    61     {
       
    62     
       
    63     }
       
    64 
       
    65 
       
    66 void UT_TPhoneCmdParamGlobalNote::Teardown(  )
       
    67     {
       
    68 
       
    69     }
       
    70 
       
    71 void UT_TPhoneCmdParamGlobalNote::ut_TimeoutL()
       
    72     {
       
    73     TPhoneCmdParamGlobalNote globalNote;
       
    74     TInt timeout = globalNote.Timeout();
       
    75     EUNIT_ASSERT(timeout == 0);
       
    76     }
       
    77 
       
    78 void UT_TPhoneCmdParamGlobalNote::ut_SetTimeoutL()
       
    79 {
       
    80     TPhoneCmdParamGlobalNote globalNote;
       
    81     globalNote.SetTimeout(KPhoneNoteNoTimeout);
       
    82     EUNIT_ASSERT(globalNote.Timeout() == KPhoneNoteNoTimeout);
       
    83 }
       
    84 
       
    85 EUNIT_BEGIN_TEST_TABLE(
       
    86     UT_TPhoneCmdParamGlobalNote,
       
    87     "Add test suite description here.",
       
    88     "UNIT" )
       
    89 
       
    90 EUNIT_TEST(
       
    91     "",
       
    92     "UT_TPhoneCmdParamGlobalNote",
       
    93     "Timeout",
       
    94     "FUNCTIONALITY",
       
    95     SetupL, ut_TimeoutL, Teardown)
       
    96 
       
    97 EUNIT_TEST(
       
    98     "",
       
    99     "UT_TPhoneCmdParamGlobalNote",
       
   100     "SetTimeout",
       
   101     "FUNCTIONALITY",
       
   102     SetupL, ut_SetTimeoutL, Teardown)
       
   103 
       
   104 EUNIT_END_TEST_TABLE