|
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: This file contains STIFUnit module implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 /******************************************************************************/ |
|
19 /* |
|
20 * |
|
21 * Test module configuration |
|
22 */ |
|
23 |
|
24 // Version |
|
25 #define TEST_MODULE_VERSION_MAJOR 0 |
|
26 #define TEST_MODULE_VERSION_MINOR 0 |
|
27 #define TEST_MODULE_VERSION_BUILD 0 |
|
28 |
|
29 // Uncomment following defines, if you want to provide implementation |
|
30 // of enlisted virtual methods of test module. |
|
31 // Implementation part is located at the end of this file. |
|
32 //#define STIFUNIT_OOMTESTQUERYL |
|
33 //#define STIFUNIT_OOMTESTINITIALIZEL |
|
34 //#define STIFUNIT_OOMHANDLEWARNINGL |
|
35 //#define STIFUNIT_OOMTESTFINALIZEL |
|
36 /******************************************************************************/ |
|
37 |
|
38 |
|
39 /* |
|
40 * Test module internals. Please do not edit them. |
|
41 */ |
|
42 |
|
43 // Includes |
|
44 #include <e32base.h> |
|
45 |
|
46 // Literals |
|
47 _LIT( KUnitLogPath, "\\logs\\testframework\\STIFUnitXXX\\" ); |
|
48 _LIT( KUnitLogFile, "STIFUnitXXX.txt" ); |
|
49 _LIT( KLogStart, "STIFUnitXXX logging starts!" ); |
|
50 |
|
51 // Defines |
|
52 #define STIF_UNIT_TEST_CASES "../src/STIFUnitXXXCases.cpp" |
|
53 #define STIF_UNIT_MODULE_CLASS_NAME CSTIFUnitXXX |
|
54 #define STIF_UNIT_MODULE_NAME _L("STIFUnitXXX.dll") |
|
55 |
|
56 // Include STIF unit generic file |
|
57 #include <StifUnitGeneric.h> |
|
58 |
|
59 /* |
|
60 * User implementation of OOM virtual methods. |
|
61 * Providing own implementation requires uncommenting defines at the |
|
62 * beginnig of this file. |
|
63 */ |
|
64 #ifdef STIFUNIT_OOMTESTQUERYL |
|
65 TBool CSTIFUnitXXX::OOMTestQueryL( const TFileName& /*aTestCaseFile*/, |
|
66 const TInt aCaseNumber, |
|
67 TOOMFailureType& aFailureType, |
|
68 TInt& aFirstMemFailure, |
|
69 TInt& aLastMemFailure) |
|
70 { |
|
71 } |
|
72 #undef STIFUNIT_OOMTESTQUERYL |
|
73 #endif |
|
74 |
|
75 #ifdef STIFUNIT_OOMTESTINITIALIZEL |
|
76 void CSTIFUnitXXX::OOMTestInitializeL( const TFileName& /*aTestCaseFile*/, |
|
77 const TInt /*aCaseNumber*/ ) |
|
78 { |
|
79 } |
|
80 #undef STIFUNIT_OOMTESTINITIALIZEL |
|
81 #endif |
|
82 |
|
83 #ifdef STIFUNIT_OOMHANDLEWARNINGL |
|
84 void CSTIFUnitXXX::OOMHandleWarningL( const TFileName& /*aTestCaseFile*/, |
|
85 const TInt /*aCaseNumber*/, |
|
86 TInt& /*aFailNextValue*/) |
|
87 { |
|
88 } |
|
89 #undef STIFUNIT_OOMHANDLEWARNINGL |
|
90 #endif |
|
91 |
|
92 #ifdef STIFUNIT_OOMTESTFINALIZEL |
|
93 void CSTIFUnitXXX::OOMTestFinalizeL( const TFileName& /*aTestCaseFile*/, |
|
94 const TInt /*aCaseNumber*/ ) |
|
95 { |
|
96 } |
|
97 #undef STIFUNIT_OOMTESTFINALIZEL |
|
98 #endif |
|
99 |
|
100 // End of File |