idlefw/tsrc/framework/ut_aifw/ut_aicpscommandbuffer/inc/ut_aicpscommandbuffer.h
branchRCL_3
changeset 27 2c7f27287390
equal deleted inserted replaced
25:9e077f9a342c 27:2c7f27287390
       
     1 /*
       
     2 * Copyright (c) 2004 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 unit test class for CAiEcomObserver
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _UT_AICPSCOMMANDBUFFER_H
       
    20 #define _UT_AICPSCOMMANDBUFFER_H
       
    21 
       
    22 // System includes
       
    23 #include <e32base.h>
       
    24 #include <digia/eunit/ceunittestsuiteclass.h>
       
    25 
       
    26 // User includes 
       
    27 #include "caicpscommandbuffer.h"
       
    28 
       
    29 // Forward declarations
       
    30 class CAiCpsCommandBuffer;
       
    31 
       
    32 // Clas declaration
       
    33 NONSHARABLE_CLASS( UT_AiCpsCommandBuffer ) : public CEUnitTestSuiteClass
       
    34     {
       
    35 public:
       
    36     // Constructors and destructors
       
    37 
       
    38     /**
       
    39      * Two phase construction
       
    40      */
       
    41     static UT_AiCpsCommandBuffer* NewL();
       
    42 
       
    43     /**
       
    44      * Two phase construction
       
    45      */    
       
    46     static UT_AiCpsCommandBuffer* NewLC();
       
    47     
       
    48     /**
       
    49      * Destructor
       
    50      */
       
    51     ~UT_AiCpsCommandBuffer();
       
    52 
       
    53 private: 
       
    54     // Constructors and destructors
       
    55 
       
    56     UT_AiCpsCommandBuffer();
       
    57     
       
    58     void ConstructL();
       
    59         
       
    60 private:    
       
    61     // New methods
       
    62 
       
    63     void SetupL();        
       
    64     void Teardown();
       
    65     
       
    66     void GetCPsServiceInsterfaceL();
       
    67     void AddCommandAndFlushL();
       
    68     void CreateAndDelete();
       
    69 private:    
       
    70     // data
       
    71     
       
    72     CAiCpsCommandBuffer* iCommandBuffer;
       
    73     
       
    74     EUNIT_DECLARE_TEST_TABLE;
       
    75     };
       
    76 
       
    77 #endif //  _UT_AICPSCOMMANDBUFFER_H
       
    78 
       
    79 // End of file