homescreensrv_plat/hs_settings_api/tsrc/inc/mt_hspsconfiguration.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: EUnit test for homescreen settings API, hsps configuration tests
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MT_HSPSCONFIGURATION_H__
       
    19 #define __MT_HSPSCONFIGURATION_H__
       
    20 
       
    21 //  External includes
       
    22 #include <digia/eunit/ceunittestsuiteclass.h>
       
    23 #include <e32def.h>
       
    24 
       
    25 //  Internal includes
       
    26 #include "hspsconfiguration.h"
       
    27 
       
    28 #ifndef NONSHARABLE_CLASS
       
    29     #define NONSHARABLE_CLASS(x) class x
       
    30 #endif
       
    31 
       
    32 //  Class definition
       
    33 /**
       
    34  *
       
    35  * Homescreen settings API test class for hspsconfiguration tests. 
       
    36  *
       
    37  */
       
    38 NONSHARABLE_CLASS( MT_HspsConfiguration ) : public CEUnitTestSuiteClass
       
    39     {
       
    40 public:     
       
    41     // Constructors and destructors
       
    42 
       
    43     /**
       
    44      * Two phase construction
       
    45      */
       
    46     static MT_HspsConfiguration* NewL();
       
    47 
       
    48     /**
       
    49      * Two phase construction
       
    50      */
       
    51     static MT_HspsConfiguration* NewLC();
       
    52 
       
    53     /**
       
    54      * Destructor
       
    55      */
       
    56     ~MT_HspsConfiguration();
       
    57 
       
    58 private:    
       
    59 
       
    60     /**
       
    61      * Private constructor
       
    62      */
       
    63     MT_HspsConfiguration();
       
    64 
       
    65     /**
       
    66      * Leaving constructor
       
    67      */
       
    68     void ConstructL();
       
    69 
       
    70 public:
       
    71 
       
    72 private:
       
    73 
       
    74     /**
       
    75      * Setup the test  
       
    76      */
       
    77     void SetupL();
       
    78         
       
    79     /**
       
    80      * Clean after the test
       
    81      */
       
    82     void Teardown();
       
    83 
       
    84     /**
       
    85      * Test confId
       
    86      */
       
    87     void ConfigIdTestL();
       
    88 
       
    89     /**
       
    90      * Test PluginInfo handling functions
       
    91      */
       
    92     void PluginInfoTestL();
       
    93 
       
    94     /**
       
    95      * Test Plugin maps
       
    96      */
       
    97     void PluginsTestL();
       
    98 
       
    99     /**
       
   100      * Test Items
       
   101      */
       
   102     void ItemsTestL();
       
   103 
       
   104     /**
       
   105      * Test Objects
       
   106      */
       
   107     void ObjectsTestL();
       
   108 
       
   109 private:
       
   110     /** Test set  */
       
   111     EUNIT_DECLARE_TEST_TABLE;
       
   112 
       
   113     HSPluginSettingsIf::CHspsConfiguration* iConfiguration;
       
   114     };
       
   115 
       
   116 #endif      //  __MT_HSPSCONFIGURATION_H__