|
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 #include "cvimpstcmdfactory.h" |
|
46 #include "cvimpstprocessarray.h" |
|
47 #include "cvimpstprocessfriendrequestitem.h" |
|
48 #include "s_vimpstengin.h" |
|
49 #include "s_vimpststoragecontact.h" |
|
50 #include "s_vimpststoragecontactlist.h" |
|
51 #include "s_vimpstcmdobserver.h" |
|
52 |
|
53 #include "s_vimpstprocessarrayItem.h" |
|
54 #include "s_processarrayobserver.h" |
|
55 #include "s_vimpststorageserviceview.h" |
|
56 #include "s_storageitemmodel.h" |
|
57 #include "s_mccaconnection.h" |
|
58 #include "mvimpstcmd.h" |
|
59 #include "tvimpstconsts.h" |
|
60 |
|
61 // Literals |
|
62 _LIT( KUnitLogPath, "\\logs\\testframework\\vimpstcmdprocess_utest\\" ); |
|
63 _LIT( KUnitLogFile, "vimpstcmdprocess_utest.txt" ); |
|
64 _LIT( KLogStart, "vimpstcmdprocess_utest logging starts!" ); |
|
65 |
|
66 // Defines |
|
67 #define STIF_UNIT_TEST_CASES "../src/vimpstcmdprocess_utestCases.cpp" |
|
68 #define STIF_UNIT_MODULE_CLASS_NAME Cvimpstcmdprocess_utest |
|
69 #define STIF_UNIT_MODULE_NAME _L("vimpstcmdprocess_utest.dll") |
|
70 |
|
71 // Include STIF unit generic file |
|
72 #include <StifUnitGeneric.h> |
|
73 |
|
74 /* |
|
75 * User implementation of OOM virtual methods. |
|
76 * Providing own implementation requires uncommenting defines at the |
|
77 * beginnig of this file. |
|
78 */ |
|
79 #ifdef STIFUNIT_OOMTESTQUERYL |
|
80 TBool Cvimpstcmdprocess_utest::OOMTestQueryL( const TFileName& /*aTestCaseFile*/, |
|
81 const TInt aCaseNumber, |
|
82 TOOMFailureType& aFailureType, |
|
83 TInt& aFirstMemFailure, |
|
84 TInt& aLastMemFailure) |
|
85 { |
|
86 } |
|
87 #undef STIFUNIT_OOMTESTQUERYL |
|
88 #endif |
|
89 |
|
90 #ifdef STIFUNIT_OOMTESTINITIALIZEL |
|
91 void Cvimpstcmdprocess_utest::OOMTestInitializeL( const TFileName& /*aTestCaseFile*/, |
|
92 const TInt /*aCaseNumber*/ ) |
|
93 { |
|
94 } |
|
95 #undef STIFUNIT_OOMTESTINITIALIZEL |
|
96 #endif |
|
97 |
|
98 #ifdef STIFUNIT_OOMHANDLEWARNINGL |
|
99 void Cvimpstcmdprocess_utest::OOMHandleWarningL( const TFileName& /*aTestCaseFile*/, |
|
100 const TInt /*aCaseNumber*/, |
|
101 TInt& /*aFailNextValue*/) |
|
102 { |
|
103 } |
|
104 #undef STIFUNIT_OOMHANDLEWARNINGL |
|
105 #endif |
|
106 |
|
107 #ifdef STIFUNIT_OOMTESTFINALIZEL |
|
108 void Cvimpstcmdprocess_utest::OOMTestFinalizeL( const TFileName& /*aTestCaseFile*/, |
|
109 const TInt /*aCaseNumber*/ ) |
|
110 { |
|
111 } |
|
112 #undef STIFUNIT_OOMTESTFINALIZEL |
|
113 #endif |
|
114 |
|
115 // End of File |