|
1 // Copyright (c) 2006-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 #ifndef TSU_MMF_MMRUF_STEP_H |
|
17 #define TSU_MMF_MMRUF_STEP_H |
|
18 |
|
19 #include <apgcli.h> |
|
20 #include <testframework.h> |
|
21 #include "definitions.h" |
|
22 |
|
23 /* |
|
24 ** |
|
25 */ |
|
26 class RMMRUFTestStep : public RTestStep |
|
27 { |
|
28 public: |
|
29 static RMMRUFTestStep* NewL(const TTestSpec* aTestSpec); |
|
30 ~RMMRUFTestStep(); |
|
31 |
|
32 TVerdict DoTestStepPreambleL(); |
|
33 TVerdict DoTestStepL(); |
|
34 TVerdict DoTestStepPostambleL(); |
|
35 |
|
36 |
|
37 protected: |
|
38 RMMRUFTestStep(const TTestSpec* aTestSpec); |
|
39 void ConstructL(); |
|
40 |
|
41 protected: |
|
42 const TTestSpec* iTestSpec; |
|
43 RAppArc iAppArc; |
|
44 }; |
|
45 |
|
46 /* |
|
47 ** This test examines some non-audio/video files in a directory |
|
48 ** to make sure they're not recognised accidentally by RUF. |
|
49 */ |
|
50 class RMMRUFDirTestStep : public RTestStep |
|
51 { |
|
52 public: |
|
53 static RMMRUFDirTestStep* NewL(); |
|
54 ~RMMRUFDirTestStep(); |
|
55 TVerdict DoTestStepL(); |
|
56 |
|
57 protected: |
|
58 RMMRUFDirTestStep(); |
|
59 TVerdict DoRecogniseL(const TDesC& aFileName, RAppArc& aAppArc); |
|
60 void CheckFilesInDirectoryL(RAppArc& aAppArc, const TDesC& aDirPath, TBool& aFailure); |
|
61 }; |
|
62 |
|
63 /** |
|
64 * |
|
65 * DoRecogniseL OOM Tests |
|
66 * |
|
67 */ |
|
68 class RTestStepMMRUFOOM : public RTestStep |
|
69 { |
|
70 public: |
|
71 ~RTestStepMMRUFOOM(); |
|
72 static RTestStepMMRUFOOM* NewL(const TTestSpec* aTestSpec); |
|
73 |
|
74 TVerdict DoTestStepPreambleL(); |
|
75 TVerdict DoTestStepL(); |
|
76 TVerdict DoTestStepPostambleL(); |
|
77 |
|
78 protected: |
|
79 RTestStepMMRUFOOM(const TTestSpec* aTestSpec); |
|
80 |
|
81 protected: |
|
82 const TTestSpec* iTestSpec; |
|
83 RAppArc iAppArc; |
|
84 }; |
|
85 |
|
86 #endif |