symbianunittestfw/sutfw/sutfwcore/sutfwkernel/inc/symbianunittestlddctl.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 25 Aug 2010 15:52:14 +0300
changeset 0 20abbd395761
permissions -rw-r--r--
Revision: 201033

// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "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:
//

#ifndef __SYMBIANUNITTESTLDDCTL_H
#define __SYMBIANUNITTESTLDDCTL_H

#include <e32base.h>
#include "symbianunittestlddif.h"
#include "symbianunittestresult.h"
#include "symbianunittestobserver.h"


_LIT(KKInstallLddName,"symbianunittest");


class CSymbianUnitTestLddCtl : public CBase
{
    public: // Constructors and destructor
    
        static CSymbianUnitTestLddCtl* NewLC(const TDesC& aDriverName);
        static CSymbianUnitTestLddCtl* NewL(const TDesC& aDriverName);
        ~CSymbianUnitTestLddCtl();
    
    public: // New functions
        TInt LoadDriver();
        TInt ExecuteLddTests(
                MSymbianUnitTestObserver& aObserver,
                CSymbianUnitTestResult& aResult);
        TInt FreeDriver();
        TInt GetTestCaseNames(CDesCArray& aTestCaseNames);
        
    private: // Constructors
        CSymbianUnitTestLddCtl();
        void ConstructL(const TDesC& aDriverName);
            
    private: // Data
        
            HBufC* iDriverName;
            RSymbianUnitTest iLddconn;
};

#endif __SYMBIANUNITTESTLDDCTL_H