idlefw/tsrc/framework/ut_aifw/ut_aiecomobserver/inc/ut_aiecomobserver.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 CAiEcomObserver
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _UT_AIECOMOBSERVER_H
       
    20 #define _UT_AIECOMOBSERVER_H
       
    21 
       
    22 // System includes
       
    23 #include <e32base.h>
       
    24 #include <digia/eunit/ceunittestsuiteclass.h>
       
    25 
       
    26 // User includes 
       
    27 #include "aiecomobserver.h"
       
    28 
       
    29 // Forward declarations
       
    30 class CActiveSchedulerWait;
       
    31 
       
    32 // Clas declaration
       
    33 NONSHARABLE_CLASS( UT_AiEcomObserver ) : public CEUnitTestSuiteClass,
       
    34     public MAiEcomObserver
       
    35     {
       
    36 public:
       
    37     // Constructors and destructors
       
    38 
       
    39     /**
       
    40      * Two phase construction
       
    41      */
       
    42     static UT_AiEcomObserver* NewL();
       
    43 
       
    44     /**
       
    45      * Two phase construction
       
    46      */    
       
    47     static UT_AiEcomObserver* NewLC();
       
    48     
       
    49     /**
       
    50      * Destructor
       
    51      */
       
    52     ~UT_AiEcomObserver();
       
    53 
       
    54 private: 
       
    55     // Constructors and destructors
       
    56 
       
    57     UT_AiEcomObserver();
       
    58     
       
    59     void ConstructL();
       
    60 
       
    61 private:
       
    62     // from MAiEcomObserver
       
    63     
       
    64     /**
       
    65      * @see MAiEcomObserver
       
    66      */    
       
    67     void NotifyEcomRegistryChanged();
       
    68         
       
    69 private:    
       
    70     // New methods
       
    71 
       
    72     void SetupL();        
       
    73     void Teardown();
       
    74     
       
    75     void TestStartObserveL();
       
    76     void TestAddObserverL();
       
    77     void TestNotifyObserverL();
       
    78                 
       
    79 private:    
       
    80     // data
       
    81 
       
    82     EUNIT_DECLARE_TEST_TABLE;
       
    83     
       
    84     CActiveSchedulerWait* iWait;        
       
    85     TBool iNotificationReceived;
       
    86     };
       
    87 
       
    88 #endif //  _UT_AIECOMOBSERVER_H
       
    89 
       
    90 // End of file