datacommsserver/esockserver/test/te_mecunittest/src/mectest014step.cpp
changeset 79 cf589eb1e31e
equal deleted inserted replaced
75:a365cb779476 79:cf589eb1e31e
       
     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 // mectest014step.cpp
       
    16 //
       
    17 
       
    18 /**
       
    19 @file
       
    20 */
       
    21 
       
    22 #include "mectest014step.h"
       
    23 #include "testextensions.h"
       
    24 #include "metaextensioncontainerspy.h"
       
    25 #include <comms-infras/ss_rmetaextensioncontainer.h>
       
    26 #include <comms-infras/ss_commsprov.h>
       
    27 
       
    28 using namespace ESock;
       
    29 
       
    30 CMecTest014Step::~CMecTest014Step()
       
    31     {
       
    32     }
       
    33 
       
    34 
       
    35 /**
       
    36 //! @SYMTestCaseID      MEC_UNIT_TEST_014
       
    37 //! @SYMTestCaseDesc    Test KErrNotFound leave for RMetaExtensionContainerC::FindExtensionL() with un-opened container
       
    38 //! @SYMFssID           COMMS-INFRAS/Esock/MetaExtensionContainer/UnitTest
       
    39 //! @SYMTestActions     1) FindExtensionL T1 in constMec
       
    40 //! @SYMTestExpectedResults  Leaves with KErrNotFound
       
    41 */
       
    42 TVerdict CMecTest014Step::RunTestStepL()
       
    43     {
       
    44     RMetaExtensionContainerC mec;
       
    45     TRAPD(err, const Meta::SMetaData& ext = mec.FindExtensionL(TTestExtension1::TypeId()));
       
    46     return err == KErrNotFound ? EPass : EFail;
       
    47     }
       
    48