equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-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 // This contains CTestTimewCase which is the base class for all the Timew TestCase DLL |
|
15 // |
|
16 // |
|
17 |
|
18 // EPOC includes |
|
19 #include <e32base.h> |
|
20 #include <uri16.h> |
|
21 #include <uriutils.h> |
|
22 #include <test/testexecutelog.h> |
|
23 #include "TestTimewbase.h" |
|
24 |
|
25 CTestTimewBase::CTestTimewBase() |
|
26 : CTestStep() |
|
27 , iSchedular(NULL) |
|
28 , iModel(NULL) |
|
29 { |
|
30 } |
|
31 |
|
32 // destructor |
|
33 CTestTimewBase::~CTestTimewBase() |
|
34 { |
|
35 delete iSchedular; |
|
36 iSchedular=NULL; |
|
37 } |
|
38 |
|
39 enum TVerdict CTestTimewBase::doTestStepPreambleL() |
|
40 { |
|
41 iSchedular=new CActiveScheduler(); |
|
42 CActiveScheduler::Install(iSchedular); |
|
43 |
|
44 return CTestStep::doTestStepPreambleL(); |
|
45 } |
|
46 |
|
47 enum TVerdict CTestTimewBase::doTestStepPostambleL() |
|
48 { |
|
49 delete iSchedular; |
|
50 iSchedular=NULL; |
|
51 CActiveScheduler::Install(NULL); |
|
52 |
|
53 return CTestStep::doTestStepPostambleL(); |
|
54 } |
|
55 |
|
56 CAlmModel* CTestTimewBase::Model(void) |
|
57 /** |
|
58 returns a pointer to an instance of CAgnModel |
|
59 */ |
|
60 { |
|
61 return iModel; |
|
62 } |