phoneapp/phoneuicontrol/tsrc/ut_phonenoteutil/Src/ut_phonenoteutil.h
changeset 78 baacf668fe89
equal deleted inserted replaced
76:cfea66083b62 78:baacf668fe89
       
     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 "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 #ifndef __UT_PHONENOTEUTIL_H__
       
    19 #define __UT_PHONENOTEUTIL_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include <CEUnitTestSuiteClass.h>
       
    23 #include <EUnitDecorators.h>
       
    24 
       
    25 
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CPhoneViewCommandHandleMock;
       
    29 class CCoeEnv;
       
    30 class CPhoneStateMachineGSM;
       
    31 class CPEEngineInfo;
       
    32 class CPhoneMainResourceResolverMock;
       
    33 class CSmcMockContext;
       
    34 class CPhoneStateHandle;
       
    35 class CPhoneMainErrorMessagesHandler;
       
    36 
       
    37 // CLASS DEFINITION
       
    38 /**
       
    39  * Generated EUnit test suite class.
       
    40  */
       
    41 NONSHARABLE_CLASS( ut_phonenoteutil )
       
    42 	: public CEUnitTestSuiteClass
       
    43     {
       
    44     public:  // Constructors and destructor
       
    45 
       
    46         static ut_phonenoteutil* NewL();
       
    47         static ut_phonenoteutil* NewLC();
       
    48         ~ut_phonenoteutil();
       
    49 
       
    50     private: // Constructors
       
    51 
       
    52         ut_phonenoteutil();
       
    53         void ConstructL();
       
    54 
       
    55     private: // New methods
       
    56 
       
    57          void SetupL();
       
    58          void Teardown();
       
    59         
       
    60          void T_ConstructionL();
       
    61          void T_SendGlobalInfoNoteL();
       
    62          void T_SendGlobalWarningNoteL();
       
    63          void T_SendGlobalErrorNoteL();
       
    64          void T_SendGlobalNoteL2();
       
    65          void T_ShowNoteAndQueryL();
       
    66          void T_HandleErrorL();
       
    67          void T_HandleRemoteBusyNoteL();
       
    68         
       
    69 
       
    70     private: // Data
       
    71 
       
    72         CPhoneViewCommandHandleMock* iViewCommandHandle;
       
    73         CPhoneStateHandle* iCPhoneStateHandleMock;
       
    74         CCoeEnv* iCoeEnvMock;
       
    75         CPhoneStateMachineGSM* iStateMachine;
       
    76         CPEEngineInfo* iEngineInfo;
       
    77         CSmcMockContext* iMockContext;
       
    78         CPhoneMainResourceResolverMock* iCPhoneMainResourceResolverMock;
       
    79         CPhoneMainErrorMessagesHandler* iCPhoneMainErrorMessagesHandlerMock;
       
    80         
       
    81         EUNIT_DECLARE_TEST_TABLE;
       
    82 
       
    83     };
       
    84 
       
    85 #endif      //  __UT_PHONENOTEUTIL_H__