|
1 // Copyright (c) 2003-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 // |
|
15 |
|
16 #ifndef __CPIPELININGTESTENGINE_H__ |
|
17 #define __CPIPELININGTESTENGINE_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 |
|
21 #include "MPipeliningTestObserver.h" |
|
22 #include "timerlogger.h" |
|
23 |
|
24 class CPipeliningTestServer; |
|
25 class CPipeliningTestClient; |
|
26 class CHTTPTestUtils; |
|
27 class MPipeliningTestCase; |
|
28 |
|
29 class CPipeliningTestEngine : public CBase, |
|
30 public MPipeliningTestObserver |
|
31 { |
|
32 public: |
|
33 static CPipeliningTestEngine* NewL(); |
|
34 ~CPipeliningTestEngine(); |
|
35 |
|
36 void StartTestsL(TDesC&); |
|
37 void DoTestsL(TDesC&); |
|
38 |
|
39 private: |
|
40 CPipeliningTestEngine(); |
|
41 void ConstructL(); |
|
42 void RunTestL(const TDesC& aSecName, MPipeliningTestCase& aTestCase); |
|
43 void DoPipeliningConfigTestsL(TDesC&); |
|
44 // From MPipeliningTestObserver |
|
45 void EndTest(TInt aError); |
|
46 |
|
47 private: // Atttibutes |
|
48 CHTTPTestUtils* iTestUtils; |
|
49 CPipeliningTestServer* iTestServer; |
|
50 TBool iTestFailed; |
|
51 MPipeliningTestCase* iTestCase; // Not owned |
|
52 TInt iEngineLastError; |
|
53 __DECLARE_PERFORMANCE_LOG |
|
54 }; |
|
55 |
|
56 #endif // __CPIPELININGTESTENGINE_H__ |