idlefw/tsrc/sapidataplugin/ut_sapidata/ut_sapidata.h
branchRCL_3
changeset 28 053c6c7c14f3
equal deleted inserted replaced
27:2c7f27287390 28:053c6c7c14f3
       
     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 
       
    19 #ifndef __UT_SAPIDATAPLUGIN_H__
       
    20 #define __UT_SAPIDATAPLUGIN_H__
       
    21 
       
    22 //  EXTERNAL INCLUDES
       
    23 #include <digia/eunit/ceunittestsuiteclass.h>
       
    24 #include <msvapi.h>
       
    25 
       
    26 //  INTERNAL INCLUDES
       
    27 
       
    28 //  FORWARD DECLARATIONS
       
    29 class CSapiData;
       
    30 class CSapiDataPlugin;
       
    31 class Observer;
       
    32 
       
    33 #include <e32def.h>
       
    34 #ifndef NONSHARABLE_CLASS
       
    35 #define NONSHARABLE_CLASS(x) class x
       
    36 #endif
       
    37 
       
    38 _LIT( KPublisher,  "publisher" );
       
    39 _LIT( KMtSapiDataPlugin, "mt_sapi_plugin" );
       
    40 _LIT8( KId, "4" );
       
    41 
       
    42 //  CLASS DEFINITION
       
    43 class MTest
       
    44 	{
       
    45 	public:
       
    46 		virtual void GetMenuItemsL();
       
    47 	};
       
    48 /**
       
    49  *
       
    50  * Unit test for the mcspluginhandler
       
    51  *
       
    52  */
       
    53 NONSHARABLE_CLASS( UT_SapiData ) : 
       
    54     public CEUnitTestSuiteClass
       
    55     {
       
    56 public:     // Constructors and destructors
       
    57 
       
    58     /**
       
    59      * Two phase construction
       
    60      */
       
    61     static UT_SapiData* NewL();
       
    62     static UT_SapiData* NewLC();
       
    63     /**
       
    64      * Destructor
       
    65      */
       
    66     ~UT_SapiData();
       
    67 
       
    68 private:    // Constructors and destructors
       
    69 
       
    70     UT_SapiData();
       
    71     void ConstructL();
       
    72 
       
    73 private:    // New methods
       
    74 
       
    75     void SetupL();
       
    76 
       
    77     void Teardown();
       
    78 
       
    79     void TestConfigureL();
       
    80     void TestSetContentIdL();
       
    81     void TestSetStartupReasonL();
       
    82     void TestCreateFilterLC();
       
    83     void TestRefreshL();
       
    84     void TestIsPluginActive();
       
    85     void TestChangePublisherStatusL();
       
    86     void TestTriggerActiveL();
       
    87     void TestUpdatePublisherStatusL();    
       
    88     void TestGetMenuItemsL();
       
    89     void TestCanUpdate();
       
    90     void TestHasMenuItem();
       
    91     void TestRemoveL();
       
    92     
       
    93 private:    // Data
       
    94 
       
    95     CSapiData* iData;
       
    96     
       
    97     CSapiDataPlugin* iPlugin;
       
    98     Observer* iContentObserver;
       
    99     
       
   100     EUNIT_DECLARE_TEST_TABLE;
       
   101     };
       
   102 
       
   103 #endif      //  __UT_SAPIDATAPLUGIN_H__
       
   104 
       
   105 // End of file