os/ossrv/lowlevellibsandfws/pluginfw/TestExecute/EComSWITests/src/checkPlugin.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// @file
sl@0
    15
// Centrep SWI test step declaration
sl@0
    16
// 
sl@0
    17
//
sl@0
    18
sl@0
    19
#ifndef __CHECK_PLUGIN_H__
sl@0
    20
#define __CHECK_PLUGIN_H__
sl@0
    21
sl@0
    22
#include <test/testexecutestepbase.h>
sl@0
    23
sl@0
    24
#include <e32base.h>
sl@0
    25
#include "common.h"
sl@0
    26
#include "TE_EComSWITestSuiteStepBase.h"
sl@0
    27
#include <ecom/ecom.h>
sl@0
    28
#include "CEComSwiPluginInterfaceDefiniton.h"
sl@0
    29
sl@0
    30
sl@0
    31
const TInt KBufSize=64;
sl@0
    32
sl@0
    33
sl@0
    34
class CCheckListImplementation : public CTe_EComSWITestSuiteStepBase
sl@0
    35
	{
sl@0
    36
public:	
sl@0
    37
		enum TOperationType {EUseListImplUid};
sl@0
    38
sl@0
    39
    	CCheckListImplementation(TOperationType aOperationType);
sl@0
    40
    	~CCheckListImplementation();
sl@0
    41
		
sl@0
    42
		virtual TVerdict doTestStepPreambleL();
sl@0
    43
		virtual TVerdict doTestStepPostambleL();
sl@0
    44
		virtual TVerdict doTestStepL();
sl@0
    45
	
sl@0
    46
private:
sl@0
    47
		TOperationType		iOperationType;
sl@0
    48
		
sl@0
    49
		RImplInfoPtrArray	iImplyArrayPtr;
sl@0
    50
		TUid 				iInterfaceUid;
sl@0
    51
		
sl@0
    52
		// Plugin Implementation Properties
sl@0
    53
		TUid 				iImplUid;
sl@0
    54
		TInt				iImplCount;
sl@0
    55
		TInt				iVersion;
sl@0
    56
		TDriveUnit			iDrive;
sl@0
    57
		TUid				iVendorID;
sl@0
    58
	};
sl@0
    59
sl@0
    60
sl@0
    61
class CCheckCreateImplementation : public CTe_EComSWITestSuiteStepBase
sl@0
    62
	{
sl@0
    63
public:	
sl@0
    64
	enum TOperationType {EUseImplUidAndDtorID};
sl@0
    65
sl@0
    66
    CCheckCreateImplementation(TOperationType aOperationType);
sl@0
    67
    ~CCheckCreateImplementation();
sl@0
    68
		
sl@0
    69
	virtual TVerdict doTestStepPreambleL();
sl@0
    70
	virtual TVerdict doTestStepPostambleL();
sl@0
    71
	virtual TVerdict doTestStepL();
sl@0
    72
	
sl@0
    73
private:
sl@0
    74
	TOperationType		iOperationType;
sl@0
    75
	TUid 				iImplUid;
sl@0
    76
sl@0
    77
	TUid				iDtorIDKey;
sl@0
    78
	
sl@0
    79
//	TBuf<KBufSize>		iClassImplPluginName;
sl@0
    80
	TInt 				iInt;
sl@0
    81
	};
sl@0
    82
sl@0
    83
// Test step to issue a custom resolver list request.
sl@0
    84
// The custom resolver used will be cached by ECOM
sl@0
    85
class CUseCustomResolver : public CTe_EComSWITestSuiteStepBase
sl@0
    86
	{
sl@0
    87
public:	
sl@0
    88
    CUseCustomResolver();
sl@0
    89
    ~CUseCustomResolver();
sl@0
    90
	virtual TVerdict doTestStepL();
sl@0
    91
	};
sl@0
    92
sl@0
    93
sl@0
    94
//INI File varables
sl@0
    95
_LIT(KInterfaceUID, "InterfaceUID");
sl@0
    96
_LIT(KImplUID, "ImplUID");
sl@0
    97
_LIT(KExpectedCount, "Count");
sl@0
    98
_LIT(KExpectedVersion, "Version");
sl@0
    99
_LIT(KExpectedDrive, "DriveLetter");
sl@0
   100
_LIT(KExpectedVendorID, "VendorID");
sl@0
   101
_LIT(KExpectedErrorCheckPlugin, "ExpectedError");
sl@0
   102
sl@0
   103
//_LIT(KPluginClassName, "PluginClass");
sl@0
   104
_LIT(KExpectedPluginInt, "PluginInt");
sl@0
   105
sl@0
   106
sl@0
   107
//Test Steps for ListImplementationL
sl@0
   108
_LIT(KListImplUidStep, "CheckListImplUidStep");
sl@0
   109
sl@0
   110
//Test Steps for CreatImplementationL
sl@0
   111
_LIT(KCreateImpl_ImpId_DtorId_Step, "CheckCreateImpl_ImpId_DtorId_Step");
sl@0
   112
sl@0
   113
//Test Steps for custom resolver cache
sl@0
   114
_LIT(KUseCustomResolverStep, "UseCustomResolverStep");
sl@0
   115
sl@0
   116
sl@0
   117
//Plugin Names
sl@0
   118
//_LIT(KPlugin1, "CEComSwiPluginInterfaceImplementationOne");
sl@0
   119
sl@0
   120
sl@0
   121
sl@0
   122
#endif //  __CHECK_PLUGIN_H__