idlefw/tsrc/wrtdataplugin/inc/ut_wrtdataplugin.h
branchRCL_3
changeset 28 053c6c7c14f3
equal deleted inserted replaced
27:2c7f27287390 28:053c6c7c14f3
       
     1 /*
       
     2 * Copyright (c) 2010 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_WRTDATAPLUGIN_H__
       
    19 #define __UT_WRTDATAPLUGIN_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include <digia/eunit/ceunittestsuiteclass.h>
       
    23 #include <digia/eunit/eunitdecorators.h>
       
    24 
       
    25 
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CWrtDataPlugin;
       
    29 class CWrtDataPluginObserver;
       
    30 class CWrtDataObserver;
       
    31 class TAknsItemID;
       
    32 
       
    33 #ifndef NONSHARABLE_CLASS
       
    34 #define NONSHARABLE_CLASS(x) class x
       
    35 #endif
       
    36 
       
    37 
       
    38 // CLASS DEFINITION
       
    39 /**
       
    40  * Generated EUnit test suite class.
       
    41  */
       
    42 NONSHARABLE_CLASS( UT_wrtdataplugin )
       
    43     : public CEUnitTestSuiteClass
       
    44     {
       
    45 public:  // Constructors and destructor
       
    46 
       
    47     static UT_wrtdataplugin* NewL();
       
    48     static UT_wrtdataplugin* NewLC();
       
    49     ~UT_wrtdataplugin();
       
    50 
       
    51 private: // Constructors
       
    52 
       
    53     UT_wrtdataplugin();
       
    54     void ConstructL();
       
    55 
       
    56 private: // New methods
       
    57     
       
    58     void SetupL();
       
    59        
       
    60     void Teardown();
       
    61 
       
    62         // CWrtDataPlugin test cases
       
    63     void TestGetIdL();
       
    64     
       
    65     void TestGetTypeL();
       
    66     
       
    67     void TestRefreshL();
       
    68     
       
    69     void TestIsActive();
       
    70     
       
    71     void TestPublishTextL();
       
    72 
       
    73     void TestPublishImageHandleL();
       
    74 
       
    75     void TestPublishImagePathL();
       
    76     
       
    77     void TestClean();
       
    78 
       
    79     void TestShowLoadingIcon();
       
    80 
       
    81     void TestHideLoadingIcon();    
       
    82     
       
    83     void TestData();
       
    84 
       
    85     void TestNetworkStatus();
       
    86     
       
    87     void TestStartTimer();
       
    88 
       
    89         // CWrtData test cases 
       
    90     void TestConfigureL();
       
    91 
       
    92     void TestRegisterL();
       
    93     
       
    94     void TestUpdatePublisherStatusL();     
       
    95 
       
    96     void TestPublishInitialDataL();
       
    97 
       
    98     void TestPublishDefaultImageL();
       
    99             
       
   100     void TestPublishL();
       
   101     
       
   102     void TestDataRefreshL();
       
   103             
       
   104     void TestExecuteActionL();
       
   105 
       
   106     void TestIsPluginActive();
       
   107 
       
   108     void TestNotifyPublisherL();
       
   109     
       
   110     void TestSetCommandBuffer();
       
   111     
       
   112         // CWrtDataObserver test cases
       
   113     void TestHandleNotifyL();
       
   114     
       
   115 private: // Data
       
   116 
       
   117 
       
   118     CWrtDataPlugin*            iPlugin;
       
   119     CWrtDataPluginObserver*    iContentObserver;
       
   120     CWrtDataObserver*          iDataObserver;
       
   121     EUNIT_DECLARE_TEST_TABLE;
       
   122 
       
   123     };
       
   124 
       
   125 #endif      //  __MT_WRTDATAPLUGIN_H__