|
1 /* |
|
2 * Copyright (c) 2009 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: videoplaylistutility test class for STIF testing |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 2 % |
|
19 |
|
20 |
|
21 #ifndef VIDEOPLAYLISTUTILITY_TEST_H |
|
22 #define VIDEOPLAYLISTUTILITY_TEST_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <StifLogger.h> |
|
26 #include <TestScripterInternal.h> |
|
27 #include <StifTestModule.h> |
|
28 #include <TestclassAssert.h> |
|
29 #include "videoplaylistutilitytester.h" |
|
30 |
|
31 // CONSTANTS |
|
32 |
|
33 |
|
34 // MACROS |
|
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 _LIT( Kvideoplaylistutility_testLogPath, "\\logs\\testframework\\videoplaylistutility_test\\" ); |
|
41 |
|
42 // Log file |
|
43 _LIT( Kvideoplaylistutility_testLogFile, "videoplaylistutility_test.txt" ); |
|
44 _LIT( Kvideoplaylistutility_testLogFileWithTitle, "videoplaylistutility_test_[%S].txt" ); |
|
45 |
|
46 // FUNCTION PROTOTYPES |
|
47 |
|
48 |
|
49 // FORWARD DECLARATIONS |
|
50 class Cvideoplaylistutility_test; |
|
51 class CVideoPlaylistUtility_Tester; |
|
52 |
|
53 // DATA TYPES |
|
54 |
|
55 // CLASS DECLARATION |
|
56 |
|
57 /** |
|
58 * Cvideoplaylistutility_test test class for STIF Test Framework TestScripter. |
|
59 * ?other_description_lines |
|
60 * |
|
61 * @lib ?library |
|
62 * @since ?Series60_version |
|
63 */ |
|
64 NONSHARABLE_CLASS(Cvideoplaylistutility_test) : public CScriptBase |
|
65 { |
|
66 public: // Constructors and destructor |
|
67 |
|
68 /** |
|
69 * Two-phased constructor. |
|
70 */ |
|
71 static Cvideoplaylistutility_test* NewL( CTestModuleIf& aTestModuleIf ); |
|
72 |
|
73 /** |
|
74 * Destructor. |
|
75 */ |
|
76 virtual ~Cvideoplaylistutility_test(); |
|
77 |
|
78 public: // Functions from base classes |
|
79 |
|
80 /** |
|
81 * From CScriptBase Runs a script line. |
|
82 * @since ?Series60_version |
|
83 * @param aItem Script line containing method name and parameters |
|
84 * @return Symbian OS error code |
|
85 */ |
|
86 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
87 |
|
88 private: |
|
89 |
|
90 /** |
|
91 * C++ default constructor. |
|
92 */ |
|
93 Cvideoplaylistutility_test( CTestModuleIf& aTestModuleIf ); |
|
94 |
|
95 /** |
|
96 * By default Symbian 2nd phase constructor is private. |
|
97 */ |
|
98 void ConstructL(); |
|
99 |
|
100 /** |
|
101 * Frees all resources allocated from test methods. |
|
102 * @since ?Series60_version |
|
103 */ |
|
104 void Delete(); |
|
105 |
|
106 /** |
|
107 * Test methods are listed below. |
|
108 */ |
|
109 |
|
110 virtual TInt CreatePlaylistUtilityL( CStifItemParser& aItem ); |
|
111 virtual TInt GetFileInfoL( CStifItemParser& aItem ); |
|
112 virtual TInt GetLinkL( CStifItemParser& aItem ); |
|
113 virtual TInt GetPlaylistL( CStifItemParser& aItem ); |
|
114 virtual TInt IsSeekableL( CStifItemParser& aItem ); |
|
115 |
|
116 |
|
117 /** |
|
118 * Method used to log version of test class |
|
119 */ |
|
120 void SendTestClassVersion(); |
|
121 |
|
122 |
|
123 private: // Friend classes |
|
124 |
|
125 CVideoPlaylistUtility_Tester* iPlaylistUtilityTester; |
|
126 }; |
|
127 |
|
128 #endif // VIDEOPLAYLISTUTILITY_TEST_H |
|
129 |
|
130 // End of File |