os/ossrv/lowlevellibsandfws/pluginfw/TestExecute/EComSWITests/src/checkPlugin.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/lowlevellibsandfws/pluginfw/TestExecute/EComSWITests/src/checkPlugin.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,122 @@
     1.4 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// @file
    1.18 +// Centrep SWI test step declaration
    1.19 +// 
    1.20 +//
    1.21 +
    1.22 +#ifndef __CHECK_PLUGIN_H__
    1.23 +#define __CHECK_PLUGIN_H__
    1.24 +
    1.25 +#include <test/testexecutestepbase.h>
    1.26 +
    1.27 +#include <e32base.h>
    1.28 +#include "common.h"
    1.29 +#include "TE_EComSWITestSuiteStepBase.h"
    1.30 +#include <ecom/ecom.h>
    1.31 +#include "CEComSwiPluginInterfaceDefiniton.h"
    1.32 +
    1.33 +
    1.34 +const TInt KBufSize=64;
    1.35 +
    1.36 +
    1.37 +class CCheckListImplementation : public CTe_EComSWITestSuiteStepBase
    1.38 +	{
    1.39 +public:	
    1.40 +		enum TOperationType {EUseListImplUid};
    1.41 +
    1.42 +    	CCheckListImplementation(TOperationType aOperationType);
    1.43 +    	~CCheckListImplementation();
    1.44 +		
    1.45 +		virtual TVerdict doTestStepPreambleL();
    1.46 +		virtual TVerdict doTestStepPostambleL();
    1.47 +		virtual TVerdict doTestStepL();
    1.48 +	
    1.49 +private:
    1.50 +		TOperationType		iOperationType;
    1.51 +		
    1.52 +		RImplInfoPtrArray	iImplyArrayPtr;
    1.53 +		TUid 				iInterfaceUid;
    1.54 +		
    1.55 +		// Plugin Implementation Properties
    1.56 +		TUid 				iImplUid;
    1.57 +		TInt				iImplCount;
    1.58 +		TInt				iVersion;
    1.59 +		TDriveUnit			iDrive;
    1.60 +		TUid				iVendorID;
    1.61 +	};
    1.62 +
    1.63 +
    1.64 +class CCheckCreateImplementation : public CTe_EComSWITestSuiteStepBase
    1.65 +	{
    1.66 +public:	
    1.67 +	enum TOperationType {EUseImplUidAndDtorID};
    1.68 +
    1.69 +    CCheckCreateImplementation(TOperationType aOperationType);
    1.70 +    ~CCheckCreateImplementation();
    1.71 +		
    1.72 +	virtual TVerdict doTestStepPreambleL();
    1.73 +	virtual TVerdict doTestStepPostambleL();
    1.74 +	virtual TVerdict doTestStepL();
    1.75 +	
    1.76 +private:
    1.77 +	TOperationType		iOperationType;
    1.78 +	TUid 				iImplUid;
    1.79 +
    1.80 +	TUid				iDtorIDKey;
    1.81 +	
    1.82 +//	TBuf<KBufSize>		iClassImplPluginName;
    1.83 +	TInt 				iInt;
    1.84 +	};
    1.85 +
    1.86 +// Test step to issue a custom resolver list request.
    1.87 +// The custom resolver used will be cached by ECOM
    1.88 +class CUseCustomResolver : public CTe_EComSWITestSuiteStepBase
    1.89 +	{
    1.90 +public:	
    1.91 +    CUseCustomResolver();
    1.92 +    ~CUseCustomResolver();
    1.93 +	virtual TVerdict doTestStepL();
    1.94 +	};
    1.95 +
    1.96 +
    1.97 +//INI File varables
    1.98 +_LIT(KInterfaceUID, "InterfaceUID");
    1.99 +_LIT(KImplUID, "ImplUID");
   1.100 +_LIT(KExpectedCount, "Count");
   1.101 +_LIT(KExpectedVersion, "Version");
   1.102 +_LIT(KExpectedDrive, "DriveLetter");
   1.103 +_LIT(KExpectedVendorID, "VendorID");
   1.104 +_LIT(KExpectedErrorCheckPlugin, "ExpectedError");
   1.105 +
   1.106 +//_LIT(KPluginClassName, "PluginClass");
   1.107 +_LIT(KExpectedPluginInt, "PluginInt");
   1.108 +
   1.109 +
   1.110 +//Test Steps for ListImplementationL
   1.111 +_LIT(KListImplUidStep, "CheckListImplUidStep");
   1.112 +
   1.113 +//Test Steps for CreatImplementationL
   1.114 +_LIT(KCreateImpl_ImpId_DtorId_Step, "CheckCreateImpl_ImpId_DtorId_Step");
   1.115 +
   1.116 +//Test Steps for custom resolver cache
   1.117 +_LIT(KUseCustomResolverStep, "UseCustomResolverStep");
   1.118 +
   1.119 +
   1.120 +//Plugin Names
   1.121 +//_LIT(KPlugin1, "CEComSwiPluginInterfaceImplementationOne");
   1.122 +
   1.123 +
   1.124 +
   1.125 +#endif //  __CHECK_PLUGIN_H__