appfw/apparchitecture/tef/t_mimecontentpolicystep.h
changeset 0 2e3d3ce01487
child 12 7645e9ce10dc
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @test
       
    19  @internalComponent - Internal Symbian test code  
       
    20 */
       
    21 
       
    22 #if (!defined __T_MIMECONTENTPOLICY_STEP_H__)
       
    23 #define __T_MIMECONTENTPOLICY_STEP_H__
       
    24 
       
    25 #include "testableapalssession.h"
       
    26 #include "appfwk_test_appui.h"
       
    27 #include <apfmimecontentpolicy.h>
       
    28 
       
    29 _LIT(KT_MimeContentPolicyStep,"t_mimecontentpolicy");
       
    30 
       
    31 class CT_MimeContentPolicyStep : public CTestStep
       
    32 	{
       
    33 public:
       
    34 	CT_MimeContentPolicyStep();
       
    35 	~CT_MimeContentPolicyStep();
       
    36 	virtual TVerdict doTestStepL();
       
    37 	
       
    38 private:
       
    39 	void RunTestCasesL();
       
    40     void CCPTestIsClosedType();
       
    41     void CCPTestIsClosedExtension();
       
    42     void CCPTestIsDRMEnvelopeFileNameL();
       
    43     void CCPTestIsClosedFileFileNameL();
       
    44     void CCPTestIsDRMEnvelopeFileHandleL();
       
    45     void CCPTestIsClosedFileFileHandleL();
       
    46     // aIsDRMEnvelope is ETrue for DRM Envelope and EFalse for ClosedFile
       
    47     TBool DoCCPTestUsingFileHandleL(const TDesC &aName, TBool aIsDRMEnvelope);
       
    48     void CCPOOMTestL();
       
    49 
       
    50 private:
       
    51 	CApfMimeContentPolicy* iCcp;
       
    52 	RTestableApaLsSession iApaLsSession;
       
    53 	RFs iFs;
       
    54 	};
       
    55 
       
    56 #endif