os/ossrv/stdcpp/tsrc/BC/apps/BCOpenCHeaders/src/BCOpenCHeadersBlocks.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 "BCOpenCHeaders.h"
    24 
    25 //Headers exported from Open C headers API
    26 #include <cstdlib>
    27 #include <stdlib.h>
    28 #include <cctype>
    29 #include <csignal>
    30 #include <cwctype>
    31 #include <cstdio>
    32 #include <stddef.h>
    33 #include <cstddef>
    34 #include <setjmp.h>
    35 #include <string.h>
    36 #include <wchar.h>
    37 #include <cwchar>
    38 #include <clocale>
    39 #include <cstdarg>
    40 #include <cctype>
    41 #include <csetjmp>
    42 #include <math.h>
    43 #include <cstdlib>
    44 #include <climits>
    45 #include <csignal>
    46 #include <cwctype>
    47 #include <ctime>
    48 #include <cstddef>
    49 #include <locale.h>
    50 #include <ctime>
    51 #include <time.h>
    52 #include <cerrno>
    53 #include <cstdarg>
    54 #include <csetjmp>
    55 #include <cstring>
    56 #include <stdio.h>
    57 #include <wctype.h>
    58 #include <cmath>
    59 #include <cassert>
    60 #include <ctype.h>
    61 #include <stdarg.h>
    62 #include <cerrno>
    63 #include <cstdio>
    64 #include <cstring>
    65 #include <clocale>
    66 #include <cwchar>
    67 #include <cfloat>
    68 
    69 // EXTERNAL DATA STRUCTURES
    70 //extern  ?external_data;
    71 
    72 // EXTERNAL FUNCTION PROTOTYPES  
    73 //extern ?external_function( ?arg_type,?arg_type );
    74 
    75 // CONSTANTS
    76 //const ?type ?constant_var = ?constant;
    77 
    78 // MACROS
    79 //#define ?macro ?macro_def
    80 
    81 // LOCAL CONSTANTS AND MACROS
    82 //const ?type ?constant_var = ?constant;
    83 //#define ?macro_name ?macro_def
    84 
    85 // MODULE DATA STRUCTURES
    86 //enum ?declaration
    87 //typedef ?declaration
    88 
    89 // LOCAL FUNCTION PROTOTYPES
    90 //?type ?function_name( ?arg_type, ?arg_type );
    91 
    92 // FORWARD DECLARATIONS
    93 //class ?FORWARD_CLASSNAME;
    94 
    95 // ============================= LOCAL FUNCTIONS ===============================
    96 
    97 // -----------------------------------------------------------------------------
    98 // ?function_name ?description.
    99 // ?description
   100 // Returns: ?value_1: ?description
   101 //          ?value_n: ?description_line1
   102 //                    ?description_line2
   103 // -----------------------------------------------------------------------------
   104 //
   105 /*
   106 ?type ?function_name(
   107     ?arg_type arg,  // ?description
   108     ?arg_type arg)  // ?description
   109     {
   110 
   111     ?code  // ?comment
   112 
   113     // ?comment
   114     ?code
   115     }
   116 */
   117 
   118 // ============================ MEMBER FUNCTIONS ===============================
   119 
   120 // -----------------------------------------------------------------------------
   121 // CBCOpenCHeaders::Delete
   122 // Delete here all resources allocated and opened from test methods. 
   123 // Called from destructor. 
   124 // -----------------------------------------------------------------------------
   125 //
   126 void CBCOpenCHeaders::Delete() 
   127     {
   128 
   129     }
   130 
   131 // -----------------------------------------------------------------------------
   132 // CBCOpenCHeaders::RunMethodL
   133 // Run specified method. Contains also table of test mothods and their names.
   134 // -----------------------------------------------------------------------------
   135 //
   136 TInt CBCOpenCHeaders::RunMethodL( 
   137     CStifItemParser& aItem ) 
   138     {
   139 
   140     static TStifFunctionInfo const KFunctions[] =
   141         {  
   142         // Copy this line for every implemented function.
   143         // First string is the function name used in TestScripter script file.
   144         // Second is the actual implementation member function. 
   145         ENTRY( "TestAPI", CBCOpenCHeaders::TestAPI ),
   146         //ADD NEW ENTRY HERE
   147         // [test cases entries] - Do not remove
   148 
   149         };
   150 
   151     const TInt count = sizeof( KFunctions ) / 
   152                         sizeof( TStifFunctionInfo );
   153 
   154     return RunInternalL( KFunctions, count, aItem );
   155 
   156     }
   157 
   158 // -----------------------------------------------------------------------------
   159 // CBCOpenCHeaders::TestAPI
   160 // TestAPI test method function.
   161 // (other items were commented in a header).
   162 // -----------------------------------------------------------------------------
   163 //
   164 TInt CBCOpenCHeaders::TestAPI( CStifItemParser& aItem )
   165     {
   166 
   167     // Print to UI
   168     _LIT( KBCOpenCHeaders, "BCOpenCHeaders" );
   169     _LIT( KTestAPI, "In TestAPI" );
   170     TestModuleIf().Printf( 0, KBCOpenCHeaders, KTestAPI );
   171     // Print to log file
   172     iLog->Log( KTestAPI );
   173 
   174 		_LIT( KResult, "No functions to be tested");
   175 		_LIT( KComment, "Open C Headers API has passed");
   176     TestModuleIf().Printf( 0, KResult, KComment);
   177 
   178     return KErrNone;
   179 
   180     }
   181 
   182 // -----------------------------------------------------------------------------
   183 // CBCOpenCHeaders::?member_function
   184 // ?implementation_description
   185 // (other items were commented in a header).
   186 // -----------------------------------------------------------------------------
   187 //
   188 /*
   189 TInt CBCOpenCHeaders::?member_function(
   190    CItemParser& aItem )
   191    {
   192 
   193    ?code
   194 
   195    }
   196 */
   197 
   198 // ========================== OTHER EXPORTED FUNCTIONS =========================
   199 // None
   200 
   201 //  [End of File] - Do not remove