datacommsserver/esockserver/test/te_mecunittest/src/mectest001step.cpp
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     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 // mectest001step.cpp
       
    16 //
       
    17 
       
    18 /**
       
    19 @file
       
    20 */
       
    21 
       
    22 #include "mectest001step.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 CMecTest001Step::~CMecTest001Step()
       
    30     {
       
    31     }
       
    32 
       
    33 
       
    34 /**
       
    35 //! @SYMTestCaseID      MEC_UNIT_TEST_001
       
    36 //! @SYMTestCaseDesc 	Simple API Test, Open() and Close() with no other actions
       
    37 //! @SYMFssID 			COMMS-INFRAS/Esock/MetaExtensionContainer/UnitTest
       
    38 //! @SYMTestActions 	1) Open container
       
    39 //						2) Close container
       
    40 //! @SYMTestExpectedResults  KErrNone.
       
    41 */
       
    42 TVerdict CMecTest001Step::RunTestStepL()
       
    43     {
       
    44     // Create container, expect success
       
    45     RMetaExtensionContainer mec;
       
    46     mec.Open();
       
    47     mec.Close();
       
    48     
       
    49     // If it reaches here without crashing its a pass
       
    50     return EPass;
       
    51     }
       
    52