First public contribution.
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
22 #include <Stiftestinterface.h>
23 #include "tiostreams.h"
25 // EXTERNAL DATA STRUCTURES
26 //extern ?external_data;
28 // EXTERNAL FUNCTION PROTOTYPES
29 //extern ?external_function( ?arg_type,?arg_type );
32 //const ?type ?constant_var = ?constant;
35 //#define ?macro ?macro_def
37 // LOCAL CONSTANTS AND MACROS
38 //const ?type ?constant_var = ?constant;
39 //#define ?macro_name ?macro_def
41 // MODULE DATA STRUCTURES
43 //typedef ?declaration
45 // LOCAL FUNCTION PROTOTYPES
46 //?type ?function_name( ?arg_type, ?arg_type );
48 // FORWARD DECLARATIONS
49 //class ?FORWARD_CLASSNAME;
51 // ============================= LOCAL FUNCTIONS ===============================
53 // -----------------------------------------------------------------------------
54 // ?function_name ?description.
56 // Returns: ?value_1: ?description
57 // ?value_n: ?description_line1
59 // -----------------------------------------------------------------------------
63 ?arg_type arg, // ?description
64 ?arg_type arg) // ?description
74 // ============================ MEMBER FUNCTIONS ===============================
76 // -----------------------------------------------------------------------------
77 // Ctiostreams::Ctiostreams
78 // C++ default constructor can NOT contain any code, that
80 // -----------------------------------------------------------------------------
82 Ctiostreams::Ctiostreams(
83 CTestModuleIf& aTestModuleIf ):
84 CScriptBase( aTestModuleIf )
88 // -----------------------------------------------------------------------------
89 // Ctiostreams::ConstructL
90 // Symbian 2nd phase constructor can leave.
91 // -----------------------------------------------------------------------------
93 void Ctiostreams::ConstructL()
95 iLog = CStifLogger::NewL( KtiostreamsLogPath,
103 // -----------------------------------------------------------------------------
105 // Two-phased constructor.
106 // -----------------------------------------------------------------------------
108 Ctiostreams* Ctiostreams::NewL(
109 CTestModuleIf& aTestModuleIf )
112 #pragma diag_suppress 830
114 Ctiostreams* self = new (ELeave) Ctiostreams( aTestModuleIf );
117 CleanupStack::PushL( self );
126 Ctiostreams::~Ctiostreams()
129 // Delete resources allocated from test methods
137 // ========================== OTHER EXPORTED FUNCTIONS =========================
139 // -----------------------------------------------------------------------------
140 // LibEntryL is a polymorphic Dll entry point.
141 // Returns: CScriptBase: New CScriptBase derived object
142 // -----------------------------------------------------------------------------
144 EXPORT_C CScriptBase* LibEntryL(
145 CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework
148 return ( CScriptBase* ) Ctiostreams::NewL( aTestModuleIf );