os/ossrv/stdcpp/tsrc/BC/apps/BCOpenCWrap/src/BCOpenCWrapBlocks.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:       
    15 *
    16 */
    17 
    18 
    19 // [INCLUDE FILES] - do not remove
    20 #include <e32svr.h>
    21 #include <StifParser.h>
    22 #include <Stiftestinterface.h>
    23 #include "BCOpenCWrap.h"
    24 
    25 //headers exported from Open C Wrappers API
    26 #include <stdarg.h>
    27 #include <stdlib.h>
    28 #include <stdio.h>
    29 #include <stddef.h>
    30 #include <setjmp.h>
    31 #include <time.h>
    32 #include <pthread.h>
    33 #include <wctype.h>
    34 #include <wchar.h>
    35 // EXTERNAL DATA STRUCTURES
    36 //extern  ?external_data;
    37 
    38 // EXTERNAL FUNCTION PROTOTYPES  
    39 //extern ?external_function( ?arg_type,?arg_type );
    40 
    41 // CONSTANTS
    42 //const ?type ?constant_var = ?constant;
    43 
    44 // MACROS
    45 //#define ?macro ?macro_def
    46 
    47 // LOCAL CONSTANTS AND MACROS
    48 //const ?type ?constant_var = ?constant;
    49 //#define ?macro_name ?macro_def
    50 
    51 // MODULE DATA STRUCTURES
    52 //enum ?declaration
    53 //typedef ?declaration
    54 
    55 // LOCAL FUNCTION PROTOTYPES
    56 //?type ?function_name( ?arg_type, ?arg_type );
    57 
    58 // FORWARD DECLARATIONS
    59 //class ?FORWARD_CLASSNAME;
    60 
    61 // ============================= LOCAL FUNCTIONS ===============================
    62 
    63 // -----------------------------------------------------------------------------
    64 // ?function_name ?description.
    65 // ?description
    66 // Returns: ?value_1: ?description
    67 //          ?value_n: ?description_line1
    68 //                    ?description_line2
    69 // -----------------------------------------------------------------------------
    70 //
    71 /*
    72 ?type ?function_name(
    73     ?arg_type arg,  // ?description
    74     ?arg_type arg)  // ?description
    75     {
    76 
    77     ?code  // ?comment
    78 
    79     // ?comment
    80     ?code
    81     }
    82 */
    83 
    84 // ============================ MEMBER FUNCTIONS ===============================
    85 
    86 // -----------------------------------------------------------------------------
    87 // CBCOpenCWrap::Delete
    88 // Delete here all resources allocated and opened from test methods. 
    89 // Called from destructor. 
    90 // -----------------------------------------------------------------------------
    91 //
    92 void CBCOpenCWrap::Delete() 
    93     {
    94 
    95     }
    96 
    97 // -----------------------------------------------------------------------------
    98 // CBCOpenCWrap::RunMethodL
    99 // Run specified method. Contains also table of test mothods and their names.
   100 // -----------------------------------------------------------------------------
   101 //
   102 TInt CBCOpenCWrap::RunMethodL( 
   103     CStifItemParser& aItem ) 
   104     {
   105 
   106     static TStifFunctionInfo const KFunctions[] =
   107         {  
   108         // Copy this line for every implemented function.
   109         // First string is the function name used in TestScripter script file.
   110         // Second is the actual implementation member function. 
   111         ENTRY( "TestAPI", CBCOpenCWrap::TestAPI ),
   112         //ADD NEW ENTRY HERE
   113         // [test cases entries] - Do not remove
   114 
   115         };
   116 
   117     const TInt count = sizeof( KFunctions ) / 
   118                         sizeof( TStifFunctionInfo );
   119 
   120     return RunInternalL( KFunctions, count, aItem );
   121 
   122     }
   123 
   124 // -----------------------------------------------------------------------------
   125 // CBCOpenCWrap::TestAPI
   126 // TestAPI test method function.
   127 // (other items were commented in a header).
   128 // -----------------------------------------------------------------------------
   129 //
   130 TInt CBCOpenCWrap::TestAPI( CStifItemParser& aItem )
   131     {
   132 
   133     // Print to UI
   134     _LIT( KBCOpenCWrap, "BCOpenCWrap" );
   135     _LIT( KTestAPI, "In TestAPI" );
   136     TestModuleIf().Printf( 0, KBCOpenCWrap, KTestAPI );
   137     // Print to log file
   138     iLog->Log( KTestAPI );
   139 
   140 		_LIT( KResult, "No functions to be tested");
   141 		_LIT( KComment, "Open C Wrapper API has passed");
   142     TestModuleIf().Printf( 0, KResult, KComment);
   143 
   144     return KErrNone;
   145 
   146     }
   147 
   148 // -----------------------------------------------------------------------------
   149 // CBCOpenCWrap::?member_function
   150 // ?implementation_description
   151 // (other items were commented in a header).
   152 // -----------------------------------------------------------------------------
   153 //
   154 /*
   155 TInt CBCOpenCWrap::?member_function(
   156    CItemParser& aItem )
   157    {
   158 
   159    ?code
   160 
   161    }
   162 */
   163 
   164 // ========================== OTHER EXPORTED FUNCTIONS =========================
   165 // None
   166 
   167 //  [End of File] - Do not remove