remotemgmt_plat/syncml_ds_customization_api/tsrc/devinfextmgmtinterface/devinfextmgmtif_test.h
branchRCL_3
changeset 25 b183ec05bd8c
equal deleted inserted replaced
24:13d7c31c74e0 25:b183ec05bd8c
       
     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:  Header file for device info extension management
       
    15 *  interface unit tests.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef __DEVINFEXTMGMTIF_TEST_H__
       
    20 #define __DEVINFEXTMGMTIF_TEST_H__
       
    21 
       
    22 // INCLUDES
       
    23 #include <CEUnitTestSuiteClass.h>
       
    24 #include <EUnitDecorators.h>
       
    25 
       
    26 // FORWARD DECLARATION
       
    27 class CNSmlDevInfExtDataContainerPlugin;
       
    28 
       
    29 // CLASS DEFINITION
       
    30 /**
       
    31  * Unit test class for Device info extension management interface
       
    32  * (ECom plugin).
       
    33  */
       
    34 NONSHARABLE_CLASS( CDevInfExtMgmtIf_Test )
       
    35 	: public CEUnitTestSuiteClass
       
    36     {
       
    37     public:  // Constructors and destructor
       
    38 
       
    39         static CDevInfExtMgmtIf_Test* NewL();
       
    40         static CDevInfExtMgmtIf_Test* NewLC();
       
    41         ~CDevInfExtMgmtIf_Test();
       
    42 
       
    43     private: // Constructors
       
    44 
       
    45         CDevInfExtMgmtIf_Test();
       
    46         void ConstructL();
       
    47 
       
    48     private:
       
    49         // Setup and teardown
       
    50         void Empty() {};
       
    51         void SetupEmptyL();
       
    52         void SetupOneXNamL();
       
    53         void SetupMultipleXNamL();
       
    54         void Teardown();
       
    55 
       
    56         // Test methods
       
    57         void NewLL();
       
    58         void TestEmptyPluginL();
       
    59         void TestOneXNamPluginL();
       
    60         void TestMultipleXNamPluginL();
       
    61 
       
    62         // Utilities
       
    63         void PrintExtensions();
       
    64 
       
    65     private: // Data
       
    66         CNSmlDevInfExtDataContainerPlugin* iEcomPlugin;
       
    67 
       
    68     EUNIT_DECLARE_TEST_TABLE;
       
    69 
       
    70     };
       
    71 
       
    72 #endif // __DEVINFEXTMGMTIF_TEST_H__