|
1 /* |
|
2 * Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: mpxplaybackutilitytest header for STIF Test Framework TestScripter. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MPXPLAYBACKUTILITYTEST_H |
|
21 #define MPXPLAYBACKUTILITYTEST_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <StifLogger.h> |
|
25 #include <TestScripterInternal.h> |
|
26 #include <StifTestModule.h> |
|
27 #include <TestclassAssert.h> |
|
28 #include <mpxplaybackutility.h> |
|
29 #include <mpxplaybackobserver.h> |
|
30 // CONSTANTS |
|
31 //const ?type ?constant_var = ?constant; |
|
32 |
|
33 // MACROS |
|
34 //#define ?macro ?macro_def |
|
35 #define TEST_CLASS_VERSION_MAJOR 0 |
|
36 #define TEST_CLASS_VERSION_MINOR 0 |
|
37 #define TEST_CLASS_VERSION_BUILD 0 |
|
38 |
|
39 // Logging path |
|
40 #ifdef __WINSCW__ |
|
41 _LIT( KmpxplaybackutilitytestLogPath, "C:\\logs\\testframework\\mpxplaybackutilitytest\\" ); |
|
42 // Log file |
|
43 _LIT( KmpxplaybackutilitytestLogFile, "mpxplaybackutilitytest.txt" ); |
|
44 _LIT( KmpxplaybackutilitytestLogFileWithTitle, "mpxplaybackutilitytest_[%S].txt" ); |
|
45 // data file |
|
46 _LIT( KmpxplaybackutilityTestFilePath, "C:\\testing\\data\\" ); |
|
47 #else |
|
48 _LIT( KmpxplaybackutilitytestLogPath, "\\logs\\testframework\\mpxplaybackutilitytest\\" ); |
|
49 // Log file |
|
50 _LIT( KmpxplaybackutilitytestLogFile, "mpxplaybackutilitytest.txt" ); |
|
51 _LIT( KmpxplaybackutilitytestLogFileWithTitle, "mpxplaybackutilitytest_[%S].txt" ); |
|
52 // data file |
|
53 _LIT( KmpxplaybackutilityTestFilePath, "e:\\testing\\data\\" ); |
|
54 #endif |
|
55 // FUNCTION PROTOTYPES |
|
56 //?type ?function_name(?arg_list); |
|
57 |
|
58 // FORWARD DECLARATIONS |
|
59 //class ?FORWARD_CLASSNAME; |
|
60 class Cmpxplaybackutilitytest; |
|
61 |
|
62 class MMPXPlaybackUtility; |
|
63 class MMPXPlaybackObserver; |
|
64 // DATA TYPES |
|
65 //enum ?declaration |
|
66 //typedef ?declaration |
|
67 //extern ?data_type; |
|
68 |
|
69 // CLASS DECLARATION |
|
70 |
|
71 /** |
|
72 * Cmpxplaybackutilitytest test class for STIF Test Framework TestScripter. |
|
73 * ?other_description_lines |
|
74 * |
|
75 * @lib ?library |
|
76 * @since ?Series60_version |
|
77 */ |
|
78 NONSHARABLE_CLASS(Cmpxplaybackutilitytest) : public CScriptBase, |
|
79 public MMPXPlaybackObserver |
|
80 |
|
81 { |
|
82 public: // Constructors and destructor |
|
83 |
|
84 /** |
|
85 * Two-phased constructor. |
|
86 */ |
|
87 static Cmpxplaybackutilitytest* NewL( CTestModuleIf& aTestModuleIf ); |
|
88 |
|
89 /** |
|
90 * Destructor. |
|
91 */ |
|
92 virtual ~Cmpxplaybackutilitytest(); |
|
93 |
|
94 |
|
95 public: // Functions from base classes |
|
96 |
|
97 /** |
|
98 * From CScriptBase Runs a script line. |
|
99 * @since ?Series60_version |
|
100 * @param aItem Script line containing method name and parameters |
|
101 * @return Symbian OS error code |
|
102 */ |
|
103 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
104 |
|
105 // From base class MMPXPlaybackObserver |
|
106 /** |
|
107 * Handle playback message |
|
108 * |
|
109 * @since 3.1 |
|
110 * @param aMessage playback message |
|
111 * @param aErr system error code. |
|
112 */ |
|
113 void HandlePlaybackMessage( |
|
114 CMPXMessage* aMessage, TInt aError ); |
|
115 private: |
|
116 |
|
117 /** |
|
118 * C++ default constructor. |
|
119 */ |
|
120 Cmpxplaybackutilitytest( CTestModuleIf& aTestModuleIf ); |
|
121 /** |
|
122 * By default Symbian 2nd phase constructor is private. |
|
123 */ |
|
124 void ConstructL(); |
|
125 // Prohibit copy constructor if not deriving from CBase. |
|
126 // ?classname( const ?classname& ); |
|
127 // Prohibit assigment operator if not deriving from CBase. |
|
128 // ?classname& operator=( const ?classname& ); |
|
129 /** |
|
130 * Frees all resources allocated from test methods. |
|
131 * @since ?Series60_version |
|
132 */ |
|
133 void Delete(); |
|
134 /** |
|
135 * Test methods are listed below. |
|
136 */ |
|
137 TInt MMPXPlaybackUtilityNewL(CStifItemParser& /*aItem*/); |
|
138 TInt MMPXPlaybackUtilityUtilityL(CStifItemParser& /*aItem*/); |
|
139 TInt MMPXPlaybackUtilityInit64L(CStifItemParser& /*aItem*/); |
|
140 TInt MMPXPlaybackUtilityInitStreaming64L(CStifItemParser& /*aItem*/); |
|
141 TInt MMPXPlaybackUtilityFile64L(CStifItemParser& /*aItem*/); |
|
142 |
|
143 /** |
|
144 * Method used to log version of test class |
|
145 */ |
|
146 void SendTestClassVersion(); |
|
147 //ADD NEW METHOD DEC HERE |
|
148 //[TestMethods] - Do not remove |
|
149 private: // Friend classes |
|
150 //From mpxplaybackutility.h |
|
151 MMPXPlaybackUtility* iMPXPlaybackUtility; |
|
152 RFs iFs; |
|
153 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
|
154 RFile64 iFile64; |
|
155 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
|
156 }; |
|
157 |
|
158 #endif // MPXPLAYBACKUTILITYTEST_H |
|
159 |
|
160 // End of File |