os/ossrv/stdcpp/tsrc/BC/apps/BCNoNamespace/src/BCNoNamespaceBlocks.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 "BCNoNamespace.h"
    24 
    25 //headers exported from No namespace headers API
    26 #include <ios>
    27 #include <streambuf.h>
    28 #include <strstream.h>
    29 #include <locale>
    30 #include <iomanip.h>
    31 #include <sstream>
    32 #include <fstream.h>
    33 #include <iostream.h>
    34 #include <iomanip>
    35 #include <cstring>
    36 #include <iostream>
    37 #include <ostream.h>
    38 #include <streambuf>
    39 #include <ostream>
    40 #include <iosfwd>
    41 #include <istream>
    42 #include <fstream>
    43 #include <strstream>
    44 
    45 // EXTERNAL DATA STRUCTURES
    46 //extern  ?external_data;
    47 
    48 // EXTERNAL FUNCTION PROTOTYPES  
    49 //extern ?external_function( ?arg_type,?arg_type );
    50 
    51 // CONSTANTS
    52 //const ?type ?constant_var = ?constant;
    53 
    54 // MACROS
    55 //#define ?macro ?macro_def
    56 
    57 // LOCAL CONSTANTS AND MACROS
    58 //const ?type ?constant_var = ?constant;
    59 //#define ?macro_name ?macro_def
    60 
    61 // MODULE DATA STRUCTURES
    62 //enum ?declaration
    63 //typedef ?declaration
    64 
    65 // LOCAL FUNCTION PROTOTYPES
    66 //?type ?function_name( ?arg_type, ?arg_type );
    67 
    68 // FORWARD DECLARATIONS
    69 //class ?FORWARD_CLASSNAME;
    70 
    71 // ============================= LOCAL FUNCTIONS ===============================
    72 
    73 // -----------------------------------------------------------------------------
    74 // ?function_name ?description.
    75 // ?description
    76 // Returns: ?value_1: ?description
    77 //          ?value_n: ?description_line1
    78 //                    ?description_line2
    79 // -----------------------------------------------------------------------------
    80 //
    81 /*
    82 ?type ?function_name(
    83     ?arg_type arg,  // ?description
    84     ?arg_type arg)  // ?description
    85     {
    86 
    87     ?code  // ?comment
    88 
    89     // ?comment
    90     ?code
    91     }
    92 */
    93 
    94 // ============================ MEMBER FUNCTIONS ===============================
    95 
    96 // -----------------------------------------------------------------------------
    97 // CBCNoNamespace::Delete
    98 // Delete here all resources allocated and opened from test methods. 
    99 // Called from destructor. 
   100 // -----------------------------------------------------------------------------
   101 //
   102 void CBCNoNamespace::Delete() 
   103     {
   104 
   105     }
   106 
   107 // -----------------------------------------------------------------------------
   108 // CBCNoNamespace::RunMethodL
   109 // Run specified method. Contains also table of test mothods and their names.
   110 // -----------------------------------------------------------------------------
   111 //
   112 TInt CBCNoNamespace::RunMethodL( 
   113     CStifItemParser& aItem ) 
   114     {
   115 
   116     static TStifFunctionInfo const KFunctions[] =
   117         {  
   118         // Copy this line for every implemented function.
   119         // First string is the function name used in TestScripter script file.
   120         // Second is the actual implementation member function. 
   121         ENTRY( "TestAPI", CBCNoNamespace::TestAPI ),
   122         //ADD NEW ENTRY HERE
   123         // [test cases entries] - Do not remove
   124 
   125         };
   126 
   127     const TInt count = sizeof( KFunctions ) / 
   128                         sizeof( TStifFunctionInfo );
   129 
   130     return RunInternalL( KFunctions, count, aItem );
   131 
   132     }
   133 
   134 // -----------------------------------------------------------------------------
   135 // CBCNoNamespace::TestAPI
   136 // TestAPI test method function.
   137 // (other items were commented in a header).
   138 // -----------------------------------------------------------------------------
   139 //
   140 TInt CBCNoNamespace::TestAPI( CStifItemParser& aItem )
   141     {
   142 
   143     // Print to UI
   144     _LIT( KBCNoNamespace, "BCNoNamespace" );
   145     _LIT( KTestAPI, "In TestAPI" );
   146     TestModuleIf().Printf( 0, KBCNoNamespace, KTestAPI );
   147     // Print to log file
   148     iLog->Log( KTestAPI );
   149 
   150 		_LIT( KResult, "No functions to be tested");
   151 		_LIT( KComment, "No Namespace headers API has passed");
   152     TestModuleIf().Printf( 0, KResult, KComment);
   153 
   154     return KErrNone;
   155 
   156     }
   157 
   158 // -----------------------------------------------------------------------------
   159 // CBCNoNamespace::?member_function
   160 // ?implementation_description
   161 // (other items were commented in a header).
   162 // -----------------------------------------------------------------------------
   163 //
   164 /*
   165 TInt CBCNoNamespace::?member_function(
   166    CItemParser& aItem )
   167    {
   168 
   169    ?code
   170 
   171    }
   172 */
   173 
   174 // ========================== OTHER EXPORTED FUNCTIONS =========================
   175 // None
   176 
   177 //  [End of File] - Do not remove