idlefw/tsrc/framework/ut_aifw/ut_aicpscommandbuffer/inc/ut_aicpscommandbuffer.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 15 Jul 2010 18:59:18 +0300
branchRCL_3
changeset 27 2c7f27287390
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: EUnit unit test class for CAiEcomObserver
*
*/


#ifndef _UT_AICPSCOMMANDBUFFER_H
#define _UT_AICPSCOMMANDBUFFER_H

// System includes
#include <e32base.h>
#include <digia/eunit/ceunittestsuiteclass.h>

// User includes 
#include "caicpscommandbuffer.h"

// Forward declarations
class CAiCpsCommandBuffer;

// Clas declaration
NONSHARABLE_CLASS( UT_AiCpsCommandBuffer ) : public CEUnitTestSuiteClass
    {
public:
    // Constructors and destructors

    /**
     * Two phase construction
     */
    static UT_AiCpsCommandBuffer* NewL();

    /**
     * Two phase construction
     */    
    static UT_AiCpsCommandBuffer* NewLC();
    
    /**
     * Destructor
     */
    ~UT_AiCpsCommandBuffer();

private: 
    // Constructors and destructors

    UT_AiCpsCommandBuffer();
    
    void ConstructL();
        
private:    
    // New methods

    void SetupL();        
    void Teardown();
    
    void GetCPsServiceInsterfaceL();
    void AddCommandAndFlushL();
    void CreateAndDelete();
private:    
    // data
    
    CAiCpsCommandBuffer* iCommandBuffer;
    
    EUNIT_DECLARE_TEST_TABLE;
    };

#endif //  _UT_AICPSCOMMANDBUFFER_H

// End of file