idlefw/tsrc/sapidataplugin/mt_sapidataplugin/mt_sapidataplugin.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 __MT_SAPIDATAPLUGIN_H__
       
    19 #define __MT_SAPIDATAPLUGIN_H__
       
    20 
       
    21 //  EXTERNAL INCLUDES
       
    22 #include <digia/eunit/ceunittestsuiteclass.h>
       
    23 
       
    24 //  FORWARD DECLARATIONS
       
    25 class CAiCpsCommandBuffer;
       
    26 class CSapiDataPlugin;
       
    27 class Observer;
       
    28 
       
    29 #ifndef NONSHARABLE_CLASS
       
    30 #define NONSHARABLE_CLASS(x) class x
       
    31 #endif
       
    32 
       
    33 //  CLASS DEFINITION
       
    34 /**
       
    35  *
       
    36  * EUnitWizard generated test class.
       
    37  *
       
    38  */
       
    39 NONSHARABLE_CLASS( MT_SapiDataPlugin )
       
    40     : public CEUnitTestSuiteClass
       
    41 {
       
    42 public:     // Constructors and destructors
       
    43 
       
    44     /**
       
    45      * Two phase construction
       
    46      */
       
    47     static MT_SapiDataPlugin* NewL();
       
    48 
       
    49     /**
       
    50      * Two phase constructor
       
    51      */
       
    52     static MT_SapiDataPlugin* NewLC();
       
    53 
       
    54     /**
       
    55      * Destructor
       
    56      */
       
    57     ~MT_SapiDataPlugin();
       
    58 
       
    59 private:    // Constructors and destructors
       
    60 
       
    61     MT_SapiDataPlugin();
       
    62 
       
    63     void ConstructL();
       
    64 
       
    65 private:    // New methods
       
    66 
       
    67     /**
       
    68      * Called everytime at first
       
    69      * to prepare plugin for test
       
    70      */
       
    71     void SetupL();
       
    72 
       
    73     /**
       
    74      * Called everytime to deconstruct the plugin
       
    75      */
       
    76     void Teardown();
       
    77 
       
    78     /**
       
    79      * Tests Stop and Resume
       
    80      */
       
    81     void TestActivity();
       
    82 
       
    83     /**
       
    84      * Tests if SuspendL pass
       
    85      */
       
    86     void TestSuspendL();
       
    87 
       
    88     /**
       
    89      * Tests property information from/to plugin
       
    90      */
       
    91     void TestPropertyL();
       
    92 
       
    93     /**
       
    94      * Test publishing 
       
    95      */
       
    96     void TestPublishL();
       
    97     
       
    98     /**
       
    99      * Test command buffer
       
   100      */
       
   101     void TestCommandBuffer();
       
   102 
       
   103 private:    // Data
       
   104 
       
   105     EUNIT_DECLARE_TEST_TABLE;
       
   106 
       
   107     CSapiDataPlugin*        iPlugin;
       
   108     Observer*               iContentObserver;
       
   109     CAiCpsCommandBuffer*    iCommandBuffer;
       
   110 };
       
   111 
       
   112 #endif      //  __MT_SAPIDATAPLUGIN_H__
       
   113 
       
   114 // End of file