idlefw/tsrc/framework/ut_aifw/ut_aieventhandler/inc/ut_aieventhandler.h
branchRCL_3
changeset 27 2c7f27287390
equal deleted inserted replaced
25:9e077f9a342c 27:2c7f27287390
       
     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: EUnit unit test class for CAiEventHandler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _UT_AIEVENTHANDLER_H
       
    20 #define _UT_AIEVENTHANDLER_H
       
    21 
       
    22 // System includes
       
    23 #include <e32base.h>
       
    24 #include <digia/eunit/ceunittestsuiteclass.h>
       
    25 
       
    26 // User includes 
       
    27 
       
    28 // Forward declarations
       
    29 class CAiUiControllerManager;
       
    30 class CAiPluginFactory;
       
    31 class CAiEventHandler;
       
    32 class CActiveSchedulerWait;
       
    33 class CAiStateManager;
       
    34 // Clas declaration
       
    35 NONSHARABLE_CLASS( UT_AiEventHandler ) : public CEUnitTestSuiteClass    
       
    36     {
       
    37 public:
       
    38     // Constructors and destructors
       
    39 
       
    40     /**
       
    41      * Two phase construction
       
    42      */
       
    43     static UT_AiEventHandler* NewL();
       
    44 
       
    45     /**
       
    46      * Two phase construction
       
    47      */    
       
    48     static UT_AiEventHandler* NewLC();
       
    49     
       
    50     /**
       
    51      * Destructor
       
    52      */
       
    53     ~UT_AiEventHandler();
       
    54 
       
    55 private: 
       
    56     // Constructors and destructors
       
    57 
       
    58     UT_AiEventHandler();
       
    59     
       
    60     void ConstructL();
       
    61 
       
    62        
       
    63 private:    
       
    64     // New methods
       
    65 
       
    66     void SetupL();        
       
    67     void Teardown();
       
    68     
       
    69     void TestHandlePluginEventL();
       
    70     void TestHasMenuItemL();
       
    71     void TestRefreshContentL();
       
    72     void TestSuspendContentL();
       
    73     
       
    74     static void CallBack( TAny* aPtr, TInt aResult );
       
    75 private:    
       
    76     // data
       
    77 
       
    78     EUNIT_DECLARE_TEST_TABLE; 
       
    79     
       
    80     CAiUiControllerManager* iUiMgr;
       
    81     
       
    82     CAiPluginFactory* iFactory;   
       
    83     
       
    84     CAiEventHandler* iHandler;
       
    85     
       
    86     CAiStateManager* iStateManager;
       
    87             
       
    88     CActiveSchedulerWait* iWait;
       
    89     
       
    90     TInt iResult;
       
    91     };
       
    92 
       
    93 #endif //  _UT_AIEVENTHANDLER_H
       
    94 
       
    95 // End of file