idlefw/tsrc/framework/ut_aifw/ut_aistatemanager/inc/ut_aistatemanager.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 CAiStateManager
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _UT_AISTATEMANAGER_H
       
    20 #define _UT_AISTATEMANAGER_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 CAiStateManager;
       
    32 class CActiveSchedulerWait;
       
    33 class CPeriodic;
       
    34 
       
    35 // Clas declaration
       
    36 NONSHARABLE_CLASS( UT_AiStateManager ) : public CEUnitTestSuiteClass
       
    37     {
       
    38 public:
       
    39     // Constructors and destructors
       
    40 
       
    41     /**
       
    42      * Two phase construction
       
    43      */
       
    44     static UT_AiStateManager* NewL();
       
    45 
       
    46     /**
       
    47      * Two phase construction
       
    48      */    
       
    49     static UT_AiStateManager* NewLC();
       
    50     
       
    51     /**
       
    52      * Destructor
       
    53      */
       
    54     ~UT_AiStateManager();
       
    55 
       
    56 private: 
       
    57     // Constructors and destructors
       
    58 
       
    59     UT_AiStateManager();
       
    60     
       
    61     void ConstructL();
       
    62 
       
    63 private:    
       
    64     // New methods
       
    65 
       
    66     void SetupL();        
       
    67     void Teardown();
       
    68         
       
    69     void TestStateChangeL();
       
    70     void TestLoadAndDestroyPluginL();
       
    71     void TestUpgradePluginL();
       
    72     void NotifyReleasePluginsL();
       
    73     
       
    74     static void CallBack( TAny* aPtr, TInt aResult );
       
    75     static TInt TimerCallBack( TAny* aPtr );
       
    76     
       
    77 private:    
       
    78     // data
       
    79 
       
    80     EUNIT_DECLARE_TEST_TABLE; 
       
    81     
       
    82     CAiUiControllerManager* iUiMgr;
       
    83     CAiPluginFactory* iFactory;
       
    84     CAiStateManager* iMgr;
       
    85     CAiStateManager* iStateManager;
       
    86     CActiveSchedulerWait* iWait;
       
    87     TInt iResult;
       
    88     CPeriodic* iPeriodic;
       
    89     };
       
    90 
       
    91 #endif //  _UT_AISTATEMANAGER_H
       
    92 
       
    93 // End of file