os/ossrv/stdcpp/tsrc/BC/apps/BCNoNamespace/src/BCNoNamespaceBlocks.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/stdcpp/tsrc/BC/apps/BCNoNamespace/src/BCNoNamespaceBlocks.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,177 @@
     1.4 +/*
     1.5 +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:       
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +// [INCLUDE FILES] - do not remove
    1.23 +#include <e32svr.h>
    1.24 +#include <StifParser.h>
    1.25 +#include <Stiftestinterface.h>
    1.26 +#include "BCNoNamespace.h"
    1.27 +
    1.28 +//headers exported from No namespace headers API
    1.29 +#include <ios>
    1.30 +#include <streambuf.h>
    1.31 +#include <strstream.h>
    1.32 +#include <locale>
    1.33 +#include <iomanip.h>
    1.34 +#include <sstream>
    1.35 +#include <fstream.h>
    1.36 +#include <iostream.h>
    1.37 +#include <iomanip>
    1.38 +#include <cstring>
    1.39 +#include <iostream>
    1.40 +#include <ostream.h>
    1.41 +#include <streambuf>
    1.42 +#include <ostream>
    1.43 +#include <iosfwd>
    1.44 +#include <istream>
    1.45 +#include <fstream>
    1.46 +#include <strstream>
    1.47 +
    1.48 +// EXTERNAL DATA STRUCTURES
    1.49 +//extern  ?external_data;
    1.50 +
    1.51 +// EXTERNAL FUNCTION PROTOTYPES  
    1.52 +//extern ?external_function( ?arg_type,?arg_type );
    1.53 +
    1.54 +// CONSTANTS
    1.55 +//const ?type ?constant_var = ?constant;
    1.56 +
    1.57 +// MACROS
    1.58 +//#define ?macro ?macro_def
    1.59 +
    1.60 +// LOCAL CONSTANTS AND MACROS
    1.61 +//const ?type ?constant_var = ?constant;
    1.62 +//#define ?macro_name ?macro_def
    1.63 +
    1.64 +// MODULE DATA STRUCTURES
    1.65 +//enum ?declaration
    1.66 +//typedef ?declaration
    1.67 +
    1.68 +// LOCAL FUNCTION PROTOTYPES
    1.69 +//?type ?function_name( ?arg_type, ?arg_type );
    1.70 +
    1.71 +// FORWARD DECLARATIONS
    1.72 +//class ?FORWARD_CLASSNAME;
    1.73 +
    1.74 +// ============================= LOCAL FUNCTIONS ===============================
    1.75 +
    1.76 +// -----------------------------------------------------------------------------
    1.77 +// ?function_name ?description.
    1.78 +// ?description
    1.79 +// Returns: ?value_1: ?description
    1.80 +//          ?value_n: ?description_line1
    1.81 +//                    ?description_line2
    1.82 +// -----------------------------------------------------------------------------
    1.83 +//
    1.84 +/*
    1.85 +?type ?function_name(
    1.86 +    ?arg_type arg,  // ?description
    1.87 +    ?arg_type arg)  // ?description
    1.88 +    {
    1.89 +
    1.90 +    ?code  // ?comment
    1.91 +
    1.92 +    // ?comment
    1.93 +    ?code
    1.94 +    }
    1.95 +*/
    1.96 +
    1.97 +// ============================ MEMBER FUNCTIONS ===============================
    1.98 +
    1.99 +// -----------------------------------------------------------------------------
   1.100 +// CBCNoNamespace::Delete
   1.101 +// Delete here all resources allocated and opened from test methods. 
   1.102 +// Called from destructor. 
   1.103 +// -----------------------------------------------------------------------------
   1.104 +//
   1.105 +void CBCNoNamespace::Delete() 
   1.106 +    {
   1.107 +
   1.108 +    }
   1.109 +
   1.110 +// -----------------------------------------------------------------------------
   1.111 +// CBCNoNamespace::RunMethodL
   1.112 +// Run specified method. Contains also table of test mothods and their names.
   1.113 +// -----------------------------------------------------------------------------
   1.114 +//
   1.115 +TInt CBCNoNamespace::RunMethodL( 
   1.116 +    CStifItemParser& aItem ) 
   1.117 +    {
   1.118 +
   1.119 +    static TStifFunctionInfo const KFunctions[] =
   1.120 +        {  
   1.121 +        // Copy this line for every implemented function.
   1.122 +        // First string is the function name used in TestScripter script file.
   1.123 +        // Second is the actual implementation member function. 
   1.124 +        ENTRY( "TestAPI", CBCNoNamespace::TestAPI ),
   1.125 +        //ADD NEW ENTRY HERE
   1.126 +        // [test cases entries] - Do not remove
   1.127 +
   1.128 +        };
   1.129 +
   1.130 +    const TInt count = sizeof( KFunctions ) / 
   1.131 +                        sizeof( TStifFunctionInfo );
   1.132 +
   1.133 +    return RunInternalL( KFunctions, count, aItem );
   1.134 +
   1.135 +    }
   1.136 +
   1.137 +// -----------------------------------------------------------------------------
   1.138 +// CBCNoNamespace::TestAPI
   1.139 +// TestAPI test method function.
   1.140 +// (other items were commented in a header).
   1.141 +// -----------------------------------------------------------------------------
   1.142 +//
   1.143 +TInt CBCNoNamespace::TestAPI( CStifItemParser& aItem )
   1.144 +    {
   1.145 +
   1.146 +    // Print to UI
   1.147 +    _LIT( KBCNoNamespace, "BCNoNamespace" );
   1.148 +    _LIT( KTestAPI, "In TestAPI" );
   1.149 +    TestModuleIf().Printf( 0, KBCNoNamespace, KTestAPI );
   1.150 +    // Print to log file
   1.151 +    iLog->Log( KTestAPI );
   1.152 +
   1.153 +		_LIT( KResult, "No functions to be tested");
   1.154 +		_LIT( KComment, "No Namespace headers API has passed");
   1.155 +    TestModuleIf().Printf( 0, KResult, KComment);
   1.156 +
   1.157 +    return KErrNone;
   1.158 +
   1.159 +    }
   1.160 +
   1.161 +// -----------------------------------------------------------------------------
   1.162 +// CBCNoNamespace::?member_function
   1.163 +// ?implementation_description
   1.164 +// (other items were commented in a header).
   1.165 +// -----------------------------------------------------------------------------
   1.166 +//
   1.167 +/*
   1.168 +TInt CBCNoNamespace::?member_function(
   1.169 +   CItemParser& aItem )
   1.170 +   {
   1.171 +
   1.172 +   ?code
   1.173 +
   1.174 +   }
   1.175 +*/
   1.176 +
   1.177 +// ========================== OTHER EXPORTED FUNCTIONS =========================
   1.178 +// None
   1.179 +
   1.180 +//  [End of File] - Do not remove