|
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: CmpxMusicStoreTest test class for STIF Test Framework TestScripter. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MPXMUSICSTORETEST_H |
|
20 #define MPXMUSICSTORETEST_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <StifLogger.h> |
|
24 #include <TestScripterInternal.h> |
|
25 #include <StifTestModule.h> |
|
26 #include <TestclassAssert.h> |
|
27 //#include "mpxfindinmusicshop.h" |
|
28 // CONSTANTS |
|
29 //const ?type ?constant_var = ?constant; |
|
30 |
|
31 // MACROS |
|
32 //#define ?macro ?macro_def |
|
33 #define TEST_CLASS_VERSION_MAJOR 0 |
|
34 #define TEST_CLASS_VERSION_MINOR 0 |
|
35 #define TEST_CLASS_VERSION_BUILD 0 |
|
36 |
|
37 // Logging path |
|
38 _LIT( KmpxMusicStoreTestLogPath, "\\logs\\testframework\\mpxMusicStoreTest\\" ); |
|
39 // Log file |
|
40 _LIT( KmpxMusicStoreTestLogFile, "mpxMusicStoreTest.txt" ); |
|
41 _LIT( KmpxMusicStoreTestLogFileWithTitle, "mpxMusicStoreTest_[%S].txt" ); |
|
42 |
|
43 // FUNCTION PROTOTYPES |
|
44 //?type ?function_name(?arg_list); |
|
45 |
|
46 // FORWARD DECLARATIONS |
|
47 //class ?FORWARD_CLASSNAME; |
|
48 //class CmpxMusicStoreTest; |
|
49 //class CMPXFindInMShop; |
|
50 // DATA TYPES |
|
51 //enum ?declaration |
|
52 //typedef ?declaration |
|
53 //extern ?data_type; |
|
54 |
|
55 // CLASS DECLARATION |
|
56 |
|
57 /** |
|
58 * CmpxMusicStoreTest test class for STIF Test Framework TestScripter. |
|
59 * ?other_description_lines |
|
60 * |
|
61 * @lib ?library |
|
62 * @since ?Series60_version |
|
63 */ |
|
64 NONSHARABLE_CLASS(CmpxMusicStoreTest) : public CScriptBase |
|
65 { |
|
66 public: // Constructors and destructor |
|
67 |
|
68 /** |
|
69 * Two-phased constructor. |
|
70 */ |
|
71 static CmpxMusicStoreTest* NewL( CTestModuleIf& aTestModuleIf ); |
|
72 |
|
73 /** |
|
74 * Destructor. |
|
75 */ |
|
76 virtual ~CmpxMusicStoreTest(); |
|
77 |
|
78 public: // New functions |
|
79 |
|
80 /** |
|
81 * ?member_description. |
|
82 * @since ?Series60_version |
|
83 * @param ?arg1 ?description |
|
84 * @return ?description |
|
85 */ |
|
86 //?type ?member_function( ?type ?arg1 ); |
|
87 |
|
88 public: // Functions from base classes |
|
89 |
|
90 /** |
|
91 * From CScriptBase Runs a script line. |
|
92 * @since ?Series60_version |
|
93 * @param aItem Script line containing method name and parameters |
|
94 * @return Symbian OS error code |
|
95 */ |
|
96 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
97 TInt CMPXFindInMShopCreate( CStifItemParser& aItem ); |
|
98 TInt CMPXFindInMShopDestructor(CStifItemParser& aItem); |
|
99 |
|
100 private: |
|
101 |
|
102 /** |
|
103 * C++ default constructor. |
|
104 */ |
|
105 CmpxMusicStoreTest( CTestModuleIf& aTestModuleIf ); |
|
106 |
|
107 /** |
|
108 * By default Symbian 2nd phase constructor is private. |
|
109 */ |
|
110 void ConstructL(); |
|
111 |
|
112 // Prohibit copy constructor if not deriving from CBase. |
|
113 // ?classname( const ?classname& ); |
|
114 // Prohibit assigment operator if not deriving from CBase. |
|
115 // ?classname& operator=( const ?classname& ); |
|
116 |
|
117 /** |
|
118 * Frees all resources allocated from test methods. |
|
119 * @since ?Series60_version |
|
120 */ |
|
121 void Delete(); |
|
122 |
|
123 /** |
|
124 * Test methods are listed below. |
|
125 */ |
|
126 |
|
127 /** |
|
128 * Example test method. |
|
129 * @since ?Series60_version |
|
130 * @param aItem Script line containing parameters. |
|
131 * @return Symbian OS error code. |
|
132 */ |
|
133 virtual TInt ExampleL( CStifItemParser& aItem ); |
|
134 |
|
135 /** |
|
136 * Method used to log version of test class |
|
137 */ |
|
138 void SendTestClassVersion(); |
|
139 |
|
140 //ADD NEW METHOD DEC HERE |
|
141 //[TestMethods] - Do not remove |
|
142 |
|
143 |
|
144 private: // Friend classes |
|
145 //?friend_class_declaration; |
|
146 //CMPXFindInMShop* iMPXFindInMShop; |
|
147 }; |
|
148 |
|
149 #endif // MPXMUSICSTORETEST_H |
|
150 |
|
151 // End of File |