|
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 the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 |
|
18 /** |
|
19 @file |
|
20 @test |
|
21 @internalComponent - Internal Symbian test code |
|
22 */ |
|
23 |
|
24 #if (!defined __T_MIMECONTENTPOLICY_STEP_H__) |
|
25 #define __T_MIMECONTENTPOLICY_STEP_H__ |
|
26 |
|
27 #include "testableapalssession.h" |
|
28 #include "appfwk_test_AppUi.h" |
|
29 #include <ApfMimeContentPolicy.h> |
|
30 |
|
31 _LIT(KT_MimeContentPolicyStep,"t_mimecontentpolicy"); |
|
32 |
|
33 class CT_MimeContentPolicyStep : public CTestStep |
|
34 { |
|
35 public: |
|
36 CT_MimeContentPolicyStep(); |
|
37 ~CT_MimeContentPolicyStep(); |
|
38 virtual TVerdict doTestStepL(); |
|
39 |
|
40 private: |
|
41 void RunTestCasesL(); |
|
42 void CCPTestIsClosedType(); |
|
43 void CCPTestIsClosedExtension(); |
|
44 void CCPTestIsDRMEnvelopeFileNameL(); |
|
45 void CCPTestIsClosedFileFileNameL(); |
|
46 void CCPTestIsDRMEnvelopeFileHandleL(); |
|
47 void CCPTestIsClosedFileFileHandleL(); |
|
48 // aIsDRMEnvelope is ETrue for DRM Envelope and EFalse for ClosedFile |
|
49 TBool DoCCPTestUsingFileHandleL(const TDesC &aName, TBool aIsDRMEnvelope); |
|
50 void CCPOOMTestL(); |
|
51 |
|
52 private: |
|
53 CApfMimeContentPolicy* iCcp; |
|
54 RTestableApaLsSession iApaLsSession; |
|
55 RFs iFs; |
|
56 }; |
|
57 |
|
58 #endif |