|
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Contains main DLL entry point for dll and definition of test suite class. |
|
15 // |
|
16 // |
|
17 |
|
18 // Test system includes |
|
19 #include <es_mbuf.h> |
|
20 #include "TestStepCTMbufmgr.h" |
|
21 #include "TestSuiteCTMbufmgr.h" |
|
22 |
|
23 #ifdef SYMBIAN_OLD_EXPORT_LOCATION |
|
24 #include "networking/log.h" |
|
25 #include "networking/teststep.h" |
|
26 #include "networking/testsuite.h" |
|
27 #else |
|
28 #include <networking/log.h> |
|
29 #include <networking/teststep.h> |
|
30 #include <networking/testsuite.h> |
|
31 #endif |
|
32 |
|
33 #include "Test01CreateDeleteMBufMgr.h" |
|
34 #include "Test02AllocDealloc.h" |
|
35 #include "Test03AllocLeave.h" |
|
36 #include "Test04CopyInOut.h" |
|
37 #include "Test05CopyInOutOffset.h" |
|
38 #include "Test06SplitL.h" |
|
39 #include "Test07TrimStart.h" |
|
40 #include "Test08TrimEnd.h" |
|
41 #include "Test09Align.h" |
|
42 #include "Test10CopyL.h" |
|
43 #include "Test11AsyncAlloc.h" |
|
44 #include "Test12General.h" |
|
45 #include "Test13Performance.h" |
|
46 #include "Test14HeapFreeCheck.h" |
|
47 #include "Test15Concurrency.h" |
|
48 #include "test16memoryfull.h" |
|
49 #include "test17requestsizelimits.h" |
|
50 #include "test18exhaustmidsizepools.h" |
|
51 #include "test19prepend.h" |
|
52 #include "test20poolceilingfull.h" |
|
53 #include "test21commsbufs.h" |
|
54 #include "test22append.h" |
|
55 #include "test23rmbufq.h" |
|
56 |
|
57 |
|
58 EXPORT_C CTestSuiteCTMbufmgr* NewTestSuiteCTMbufmgr( void ) |
|
59 { |
|
60 return new (ELeave) CTestSuiteCTMbufmgr; |
|
61 } |
|
62 |
|
63 CTestSuiteCTMbufmgr::~CTestSuiteCTMbufmgr() |
|
64 { |
|
65 } |
|
66 |
|
67 // Add a test step into the suite |
|
68 void CTestSuiteCTMbufmgr::AddTestStepL( CTestStepCTMbufmgr* ptrTestStep ) |
|
69 { |
|
70 // Test steps contain a pointer back to the suite which owns them |
|
71 ptrTestStep->iEsockSuite = this; |
|
72 |
|
73 // Add the step using the base class method |
|
74 CTestSuite::AddTestStepL(ptrTestStep); |
|
75 } |
|
76 |
|
77 |
|
78 // Make a version string available for test system |
|
79 TPtrC CTestSuiteCTMbufmgr::GetVersion( void ) |
|
80 { |
|
81 #ifdef _DEBUG |
|
82 _LIT(KTxtVersion,"1.007 (udeb)"); |
|
83 #else |
|
84 _LIT(KTxtVersion,"1.007"); |
|
85 #endif |
|
86 |
|
87 return KTxtVersion(); |
|
88 } |
|
89 |
|
90 // Second phase constructor for MBufMgr test suite |
|
91 // This creates all the MBufMgr test steps and |
|
92 // stores them inside CTestSuiteCTMbufmgr |
|
93 void CTestSuiteCTMbufmgr::InitialiseL( void ) |
|
94 { |
|
95 |
|
96 // Add test steps |
|
97 AddTestStepL( new(ELeave) CTest01CreateDeleteMBufMgr ); |
|
98 AddTestStepL( new(ELeave) CTest02AllocDealloc ); |
|
99 AddTestStepL( new(ELeave) CTest03AllocLeave ); |
|
100 AddTestStepL( new(ELeave) CTest04CopyInOut ); |
|
101 AddTestStepL( new(ELeave) CTest05CopyInOutOffset ); |
|
102 AddTestStepL( new(ELeave) CTest06Split ); |
|
103 AddTestStepL( new(ELeave) CTest07TrimStart ); |
|
104 AddTestStepL( new(ELeave) CTest08TrimEnd ); |
|
105 AddTestStepL( new(ELeave) CTest09Align ); |
|
106 AddTestStepL( new(ELeave) CTest10Copy ); |
|
107 AddTestStepL( new(ELeave) CTest11AsyncAlloc ); |
|
108 AddTestStepL( new(ELeave) CTest12General ); |
|
109 AddTestStepL( new(ELeave) CTest13Performance ); |
|
110 AddTestStepL( new(ELeave) CTest14HeapFreeCheck ); |
|
111 AddTestStepL( new(ELeave) CTest15Concurrency ); |
|
112 AddTestStepL( new(ELeave) CTest16MemoryFull ); |
|
113 AddTestStepL( new(ELeave) CTest17RequestSizeLimits ); |
|
114 AddTestStepL( new(ELeave) CTest19Prepend ); |
|
115 AddTestStepL( new(ELeave) CTest20PoolCeilingFull ); |
|
116 AddTestStepL( new(ELeave) CTest21CommsBufs ); |
|
117 AddTestStepL( new(ELeave) CTest22Append ); |
|
118 AddTestStepL( new(ELeave) CTest23RMBufQ ); |
|
119 return; |
|
120 } |
|
121 |