os/security/contentmgmt/referencedrmagent/tcaf/source/SupplierStep.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/contentmgmt/referencedrmagent/tcaf/source/SupplierStep.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,129 @@
     1.4 +/*
     1.5 +* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of the License "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +
    1.23 +
    1.24 +#if (!defined __SUPPLIER_STEP_H__)
    1.25 +#define __SUPPLIER_STEP_H__
    1.26 +#include <test/testexecutestepbase.h>
    1.27 +
    1.28 +#include "cafstep.h"
    1.29 +#include "importfile.h"
    1.30 +
    1.31 +#ifdef INTERNALLY_ENABLE_UPWARD_DEPENDENCY
    1.32 +#include <http/mhttptransactioncallback.h>
    1.33 +#endif
    1.34 +
    1.35 +// Constants used to name test cases 
    1.36 +_LIT(KCAFSupplierStep,"CAFSupplierStep");
    1.37 +_LIT(KCAFSupplierAsyncStep,"CAFSupplierAsyncStep");
    1.38 +_LIT(KCAFSupplierSerializeStep,"CAFSupplierSerializeStep");
    1.39 +_LIT(KCAFClientOutputSupplierStep,"CAFClientOutputSupplierStep");
    1.40 +#ifdef INTERNALLY_ENABLE_UPWARD_DEPENDENCY
    1.41 +_LIT(KCAFHTTPRequestHeadersStep,"CAFHTTPRequestHeaders");
    1.42 +#endif
    1.43 +class CCAFServer;
    1.44 +
    1.45 +
    1.46 +/* 
    1.47 +* Used to test the import DCF files into the Content Access Framework
    1.48 +*
    1.49 +* @internalComponent Exposure internally
    1.50 +*/
    1.51 +class CCafSupplierStep : public CCAFStep
    1.52 +	{
    1.53 +public:
    1.54 +	CCafSupplierStep(CCAFServer& aParent);
    1.55 +	~CCafSupplierStep();
    1.56 +	virtual TVerdict doTestStepL();
    1.57 +private:
    1.58 +	CCAFServer& iParent;
    1.59 +	};
    1.60 +
    1.61 +
    1.62 +/* 
    1.63 +* Used to test the import DCF files into the Content Access Framework
    1.64 +*
    1.65 +* @internalComponent Exposure internally
    1.66 +*/
    1.67 +class CCafSupplierAsyncStep : public CCAFStep
    1.68 +	{
    1.69 +public:
    1.70 +	CCafSupplierAsyncStep(CCAFServer& aParent);
    1.71 +	~CCafSupplierAsyncStep();
    1.72 +	virtual TVerdict doTestStepL();
    1.73 +private:
    1.74 +	CCAFServer& iParent;
    1.75 +	};
    1.76 +
    1.77 +
    1.78 +/* 
    1.79 +* Used to test CCafMimeHeader::ExternalizeL() and CCafMimeHeader::InternalizeL()
    1.80 +*
    1.81 +* @internalComponent Exposure internally
    1.82 +*/
    1.83 +class CCAFSupplierSerializeStep : public CCAFStep
    1.84 +	{
    1.85 +public:
    1.86 +	CCAFSupplierSerializeStep(CCAFServer& aParent);
    1.87 +	~CCAFSupplierSerializeStep();
    1.88 +	virtual TVerdict doTestStepL();
    1.89 +private:
    1.90 +	CCAFServer& iParent;
    1.91 +	};
    1.92 +
    1.93 +
    1.94 +/* 
    1.95 +* Used to test the import DCF files into the Content Access Framework
    1.96 +*
    1.97 +* @internalComponent Exposure internally
    1.98 +*/
    1.99 +class CCafClientOutputSupplierStep : public CCAFStep
   1.100 +	{
   1.101 +public:
   1.102 +	CCafClientOutputSupplierStep(CCAFServer& aParent);
   1.103 +	~CCafClientOutputSupplierStep();
   1.104 +	virtual TVerdict doTestStepL();
   1.105 +	void CheckContentMimeL(ContentAccess::CImportFile* aImport, TDes8& aContentMime, TDesC8& aExpectedContentMime);
   1.106 +private:
   1.107 +	CCAFServer& iParent;
   1.108 +	};
   1.109 +
   1.110 +
   1.111 +#ifdef INTERNALLY_ENABLE_UPWARD_DEPENDENCY
   1.112 +/* 
   1.113 +* Used to test that an application can retrieve HTTP request headers
   1.114 +* @internalComponent Exposure internally
   1.115 +*/
   1.116 +class CCAFHTTPRequestHeadersStep : public CCAFStep, public MHTTPTransactionCallback
   1.117 +	{
   1.118 +public:
   1.119 +	CCAFHTTPRequestHeadersStep(CCAFServer& aParent);
   1.120 +	~CCAFHTTPRequestHeadersStep();
   1.121 +	virtual TVerdict doTestStepL();
   1.122 +	
   1.123 +	virtual void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent &aEvent);
   1.124 +	virtual TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, const THTTPEvent &aEvent);
   1.125 +private:
   1.126 +	CCAFServer& iParent;
   1.127 +	};
   1.128 +
   1.129 +#endif
   1.130 +
   1.131 +#endif
   1.132 +