|
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 // |
|
15 |
|
16 // EPOC includes |
|
17 #include <e32base.h> |
|
18 |
|
19 // Test system includes |
|
20 #include <testframework.h> |
|
21 #include "TSU_MmTsthStep12.h" |
|
22 #include "TSU_MmTsthSuite12.h" |
|
23 |
|
24 // preamble |
|
25 TVerdict RTSUMmTsthStep12::OpenL() |
|
26 { |
|
27 // initialise iSuiteStub for tests. if this fails, tests are |
|
28 // inconclusive (will not run) |
|
29 CTestSuiteVirtualStub* theSuiteStub = new (ELeave) CTestSuiteVirtualStub; |
|
30 CleanupStack::PushL(theSuiteStub); |
|
31 TRAPD(err, theSuiteStub->ConstructL()); |
|
32 if(err != KErrNone) |
|
33 { |
|
34 ERR_PRINTF1(_L("CTestSuiteVirtualStub::ConstructL() left")); |
|
35 CleanupStack::PopAndDestroy(theSuiteStub); |
|
36 return iTestStepResult = EInconclusive; |
|
37 } |
|
38 |
|
39 iSuiteStub = theSuiteStub; |
|
40 |
|
41 // NB ensure the suite can log - set its logger to ours |
|
42 iSuiteStub->SetLogSystem(iSuite->LogSystem()); |
|
43 |
|
44 CleanupStack::Pop(theSuiteStub); |
|
45 return iTestStepResult = EPass; |
|
46 } |
|
47 |
|
48 // postamble |
|
49 void RTSUMmTsthStep12::Close() |
|
50 { |
|
51 delete iSuiteStub; |
|
52 } |