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 // Dial API Test base test code. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 */ |
|
21 |
|
22 #include "TE_DialBase.h" |
|
23 |
|
24 |
|
25 CDialTestStep::CDialTestStep() |
|
26 { |
|
27 // NOP |
|
28 } // CDialTestStep::CDialTestStep |
|
29 |
|
30 |
|
31 CDialTestStep::~CDialTestStep() |
|
32 { |
|
33 // NOP |
|
34 } // CDialTestStep::~CDialTestStep |
|
35 |
|
36 |
|
37 TVerdict CDialTestStep::doTestStepPreambleL() |
|
38 { |
|
39 // |
|
40 // Mark for memory leaks!!! |
|
41 // |
|
42 __UHEAP_MARK; |
|
43 |
|
44 // |
|
45 // Create an Active Scheduler... |
|
46 // |
|
47 iScheduler = new(ELeave) CActiveScheduler(); |
|
48 CActiveScheduler::Install(iScheduler); |
|
49 |
|
50 return TestStepResult(); |
|
51 } // CDialTestStep::doTestStepPreambleL |
|
52 |
|
53 |
|
54 TVerdict CDialTestStep::doTestStepPostambleL() |
|
55 { |
|
56 delete iScheduler; |
|
57 iScheduler = NULL; |
|
58 |
|
59 // |
|
60 // Check the heap for memory leaks... |
|
61 // |
|
62 __UHEAP_MARKEND; |
|
63 |
|
64 return TestStepResult(); |
|
65 } // CDialTestStep::doTestStepPostambleL |
|
66 |
|
67 |