equal
deleted
inserted
replaced
|
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: Used for execute a single case. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CASERUNNER_H_ |
|
19 #define CASERUNNER_H_ |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <e32base.h> |
|
23 #include <e32cons.h> |
|
24 #include "executor.h" |
|
25 |
|
26 class CCaseRunner : public CActive |
|
27 { |
|
28 public: |
|
29 static CCaseRunner* NewL(CExecutor* executor, TTestInfo& aTestInfo ); |
|
30 ~CCaseRunner(); |
|
31 |
|
32 private: |
|
33 CCaseRunner(CExecutor* executor, TTestInfo& aTestInfo); |
|
34 void ContructL(); |
|
35 |
|
36 public: //public method |
|
37 TInt RunTestsL(); |
|
38 void StartTestL(); |
|
39 |
|
40 public: //implement CActive |
|
41 void RunL(); |
|
42 void DoCancel(); |
|
43 TInt RunError(TInt aError); |
|
44 |
|
45 private: |
|
46 CExecutor* iExecutor; |
|
47 RTestEngine iTestEngine; |
|
48 RTestCase iTestCase; |
|
49 TTestInfo iTestInfo; |
|
50 TTestInfoPckg iTestInfoPckg; |
|
51 TFullTestResult iFullTestResult; |
|
52 TFullTestResultPckg iFullTestResultPckg; |
|
53 |
|
54 }; |
|
55 |
|
56 #endif /* CASERUNNER_H_ */ |