|
1 // Copyright (c) 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 // mectestpanic13step.cpp |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 */ |
|
21 |
|
22 #include "mectestpanic13step.h" |
|
23 #include "testextensions.h" |
|
24 #include <comms-infras/ss_rmetaextensioncontainer.h> |
|
25 #include <comms-infras/ss_commsprov.h> |
|
26 |
|
27 using namespace ESock; |
|
28 |
|
29 CMecTestPanic13Step::~CMecTestPanic13Step() |
|
30 { |
|
31 } |
|
32 |
|
33 |
|
34 /** |
|
35 //! @SYMTestCaseID MEC_UNIT_TEST_113 |
|
36 //! @SYMTestCaseDesc Test Panic mecpanic:1 (ENoImplementation) for RMetaExtensionContainer::AppendExtensionL() |
|
37 //! @SYMFssID COMMS-INFRAS/Esock/MetaExtensionContainer/UnitTest |
|
38 //! @SYMTestActions 1) AppendExtensionL T1 to container |
|
39 //! @SYMTestExpectedResults Panic mecpanic:1 |
|
40 */ |
|
41 TVerdict CMecTestPanic13Step::RunTestStepL() |
|
42 { |
|
43 RMetaExtensionContainer mec; |
|
44 |
|
45 TTestExtension1* ext = new(ELeave)TTestExtension1(); |
|
46 CleanupStack::PushL(ext); |
|
47 TRAP_IGNORE(mec.AppendExtensionL(ext)); // PANIC |
|
48 |
|
49 CleanupStack::Pop(ext); |
|
50 mec.Close(); |
|
51 |
|
52 return EFail; |
|
53 } |
|
54 |
|
55 |