<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>CTC++ Coverage Report - Execution Profile - testinstantmsgalert.cpp</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keyword" content="CTC++, Testwell, Test Coverage Analyzer">
<meta name="date" content="Wed Sep 30 16:37:09 2009">
<meta name="generator" content="Testwell CTC++ add-on utility ctc2html v2.5">
<link rel="stylesheet" type="text/css" href="ctc.css">
<link rel="contents" href="index.html">
</head>
<body text="#150040" bgcolor="#ffffff" link="#000088" vlink="#007788">
<span class="head1">CTC++ Coverage Report - </span>
<span class="head2">Execution Profile</span>
<span class="head3"> #5/8</span><br><br>
<span class="black"><a href="indexF.html" target="_top">Directory Summary</a> | <a href="index.html" target="_top">Files Summary</a> | <a href="indexB1.html" target="_top">Functions Summary</a> | <a href="indexD1.html">Execution Profile</a><br>
To files: <a href="indexD1.html">First</a> | <a href="indexD4.html">Previous</a> | <a href="indexD6.html">Next</a> | <a href="indexD8.html">Last</a> | <a href="indexA.html#a5">Index</a> | <a href="indexD5.html" target="_top">No Index</a></span><br><br>
<span class="black"><strong>File: \meco_domain\conversations\instantmessagesalert\tsrc\testinstantmsgalert\src\testinstantmsgalert.cpp</strong></span><br>
<span class="black"><strong>Instrumentation mode: </strong>function-decision</span><br>
<span class="black"><strong>TER: </strong></span><span class="red">79 % ( 11/ 14)</span><br><br>
<table cellspacing="0">
<tr><td align="right" class="black"><strong>Start/</strong> </td><td align="right" class="black"><strong>End/</strong> </td><td> </td><td> </td><td> </td></tr>
<tr><td align="right" class="black"><strong>True</strong> </td><td align="right" class="black"><strong>False</strong> </td><td align="right" class="black"><strong>-</strong></td><td align="right" class="black"> <a href="indexD5.html#ut1" title="First untested"><strong>Line</strong></a> </td><td class="black"><strong>Source</strong></td></tr>
<tr><td colspan="5"><hr></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 1 </td><td class="black_source">/*</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 2 </td><td class="black_source">* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 3 </td><td class="black_source">* All rights reserved.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 4 </td><td class="black_source">* This component and the accompanying materials are made available</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 5 </td><td class="black_source">* under the terms of the License "Eclipse Public License v1.0"</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 6 </td><td class="black_source">* which accompanies this distribution, and is available</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 7 </td><td class="black_source">* at the URL "http://www.eclipse.org/legal/epl-v10.html".</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 8 </td><td class="black_source">*</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 9 </td><td class="black_source">* Initial Contributors:</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 10 </td><td class="black_source">* Nokia Corporation - initial contribution.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 11 </td><td class="black_source">*</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 12 </td><td class="black_source">* Contributors:</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 13 </td><td class="black_source">* </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 14 </td><td class="black_source">* Description: This file contains testclass implementation.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 15 </td><td class="black_source">*</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 16 </td><td class="black_source">*/</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 17 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 18 </td><td class="black_source">// INCLUDE FILES</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 19 </td><td class="black_source">#include <Stiftestinterface.h></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 20 </td><td class="black_source">#include "testinstantmsgalert.h"</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 21 </td><td class="black_source">#include <SettingServerClient.h></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 22 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 23 </td><td class="black_source">// EXTERNAL DATA STRUCTURES</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 24 </td><td class="black_source">//extern ?external_data;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 25 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 26 </td><td class="black_source">// EXTERNAL FUNCTION PROTOTYPES </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 27 </td><td class="black_source">//extern ?external_function( ?arg_type,?arg_type );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 28 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 29 </td><td class="black_source">// CONSTANTS</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 30 </td><td class="black_source">//const ?type ?constant_var = ?constant;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 31 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 32 </td><td class="black_source">// MACROS</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 33 </td><td class="black_source">//#define ?macro ?macro_def</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 34 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 35 </td><td class="black_source">// LOCAL CONSTANTS AND MACROS</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 36 </td><td class="black_source">//const ?type ?constant_var = ?constant;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 37 </td><td class="black_source">//#define ?macro_name ?macro_def</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 38 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 39 </td><td class="black_source">// MODULE DATA STRUCTURES</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 40 </td><td class="black_source">//enum ?declaration</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 41 </td><td class="black_source">//typedef ?declaration</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 42 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 43 </td><td class="black_source">// LOCAL FUNCTION PROTOTYPES</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 44 </td><td class="black_source">//?type ?function_name( ?arg_type, ?arg_type );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 45 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 46 </td><td class="black_source">// FORWARD DECLARATIONS</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 47 </td><td class="black_source">//class ?FORWARD_CLASSNAME;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 48 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 49 </td><td class="black_source">// ============================= LOCAL FUNCTIONS ===============================</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 50 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 51 </td><td class="black_source">// -----------------------------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 52 </td><td class="black_source">// ?function_name ?description.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 53 </td><td class="black_source">// ?description</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 54 </td><td class="black_source">// Returns: ?value_1: ?description</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 55 </td><td class="black_source">// ?value_n: ?description_line1</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 56 </td><td class="black_source">// ?description_line2</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 57 </td><td class="black_source">// -----------------------------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 58 </td><td class="black_source">//</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 59 </td><td class="black_source">/*</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 60 </td><td class="black_source">?type ?function_name(</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 61 </td><td class="black_source"> ?arg_type arg, // ?description</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 62 </td><td class="black_source"> ?arg_type arg) // ?description</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 63 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 64 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 65 </td><td class="black_source"> ?code // ?comment</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 66 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 67 </td><td class="black_source"> // ?comment</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 68 </td><td class="black_source"> ?code</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 69 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 70 </td><td class="black_source">*/</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 71 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 72 </td><td class="black_source">// ============================ MEMBER FUNCTIONS ===============================</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 73 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 74 </td><td class="black_source">// -----------------------------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 75 </td><td class="black_source">// Ctestinstantmsgalert::Ctestinstantmsgalert</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 76 </td><td class="black_source">// C++ default constructor can NOT contain any code, that</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 77 </td><td class="black_source">// might leave.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 78 </td><td class="black_source">// -----------------------------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 79 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD5.html" title="\meco_domain\conversations\instantmessagesalert\tsrc\testinstantmsgalert\src\testinstantmsgalert.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a41"></a>17 </td><td align="right" class="black_profile">17 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 80 </td><td class="black_source">Ctestinstantmsgalert::Ctestinstantmsgalert( </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 81 </td><td class="black_source"> CTestModuleIf& aTestModuleIf ):</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 82 </td><td class="black_source"> CScriptBase( aTestModuleIf )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 83 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 84 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 85 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 86 </td><td class="black_source">// -----------------------------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 87 </td><td class="black_source">// Ctestinstantmsgalert::ConstructL</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 88 </td><td class="black_source">// Symbian 2nd phase constructor can leave.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 89 </td><td class="black_source">// -----------------------------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 90 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD5.html" title="\meco_domain\conversations\instantmessagesalert\tsrc\testinstantmsgalert\src\testinstantmsgalert.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a42"></a>17 </td><td align="right" class="black_profile">17 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 91 </td><td class="black_source">void Ctestinstantmsgalert::ConstructL()</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 92 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 93 </td><td class="black_source"> //Read logger settings to check whether test case name is to be</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 94 </td><td class="black_source"> //appended to log file name.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 95 </td><td class="black_source"> RSettingServer settingServer;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 96 </td><td class="black_source"> TInt ret = settingServer.Connect();</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut1" href="indexD5.html#ut2">97</a> </td><td class="red_source"> if(ret != KErrNone)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 98 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 99 </td><td class="black_source"> User::Leave(ret);</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 100 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 101 </td><td class="black_source"> // Struct to StifLogger settigs.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 102 </td><td class="black_source"> TLoggerSettings loggerSettings; </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 103 </td><td class="black_source"> // Parse StifLogger defaults from STIF initialization file.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 104 </td><td class="black_source"> ret = settingServer.GetLoggerSettings(loggerSettings);</td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut2" href="indexD5.html#ut3">105</a> </td><td class="red_source"> if(ret != KErrNone)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 106 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 107 </td><td class="black_source"> User::Leave(ret);</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 108 </td><td class="black_source"> } </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 109 </td><td class="black_source"> // Close Setting server session</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 110 </td><td class="black_source"> settingServer.Close();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 111 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 112 </td><td class="black_source"> TFileName logFileName;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 113 </td><td class="black_source"> </td></tr>
<tr><td align="right" class="red_profile">0 </td><td align="right" class="black_profile">17 </td><td align="right" class="red_profile">-</td><td align="right" class="red_profile"> <a name="ut3" href="indexD5.html#ut4">114</a> </td><td class="red_source"> if(loggerSettings.iAddTestCaseTitle)</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 115 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 116 </td><td class="black_source"> TName title;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 117 </td><td class="black_source"> TestModuleIf().GetTestCaseTitleL(title);</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 118 </td><td class="black_source"> logFileName.Format(KtestinstantmsgalertLogFileWithTitle, &title);</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 119 </td><td class="black_source"> }</td></tr>
<tr><td align="right" class="red_profile"> </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 120 </td><td class="black_source"> else</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 121 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 122 </td><td class="black_source"> logFileName.Copy(KtestinstantmsgalertLogFile);</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 123 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 124 </td><td class="black_source"> TestModuleIf().SetBehavior( CTestModuleIf::ETestLeaksRequests ); </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 125 </td><td class="black_source"> TestModuleIf().SetBehavior( CTestModuleIf::ETestLeaksHandles ); </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 126 </td><td class="black_source"> iLog = CStifLogger::NewL( KtestinstantmsgalertLogPath, </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 127 </td><td class="black_source"> logFileName,</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 128 </td><td class="black_source"> CStifLogger::ETxt,</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 129 </td><td class="black_source"> CStifLogger::EFile,</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 130 </td><td class="black_source"> EFalse );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 131 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 132 </td><td class="black_source"> SendTestClassVersion();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 133 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 134 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 135 </td><td class="black_source">// -----------------------------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 136 </td><td class="black_source">// Ctestinstantmsgalert::NewL</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 137 </td><td class="black_source">// Two-phased constructor.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 138 </td><td class="black_source">// -----------------------------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 139 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD5.html" title="\meco_domain\conversations\instantmessagesalert\tsrc\testinstantmsgalert\src\testinstantmsgalert.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a43"></a>17 </td><td align="right" class="black_profile">0 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 140 </td><td class="black_source">Ctestinstantmsgalert* Ctestinstantmsgalert::NewL( </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 141 </td><td class="black_source"> CTestModuleIf& aTestModuleIf )</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 142 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 143 </td><td class="black_source"> Ctestinstantmsgalert* self = new (ELeave) Ctestinstantmsgalert( aTestModuleIf );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 144 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 145 </td><td class="black_source"> CleanupStack::PushL( self );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 146 </td><td class="black_source"> self->ConstructL();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 147 </td><td class="black_source"> CleanupStack::Pop();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 148 </td><td class="black_source"></td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 149 </td><td class="black_source"> return self;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 150 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 151 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 152 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 153 </td><td class="black_source">// Destructor</td></tr>
<tr><td colspan="5" class="black"><a href="indexD5.html" title="\meco_domain\conversations\instantmessagesalert\tsrc\testinstantmsgalert\src\testinstantmsgalert.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a44"></a>17 </td><td align="right" class="black_profile">17 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 154 </td><td class="black_source">Ctestinstantmsgalert::~Ctestinstantmsgalert()</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 155 </td><td class="black_source"> { </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 156 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 157 </td><td class="black_source"> // Delete resources allocated from test methods</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 158 </td><td class="black_source"> Delete();</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 159 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 160 </td><td class="black_source"> // Delete logger</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 161 </td><td class="black_source"> delete iLog; </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 162 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 163 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 164 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 165 </td><td class="black_source">//-----------------------------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 166 </td><td class="black_source">// Ctestinstantmsgalert::SendTestClassVersion</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 167 </td><td class="black_source">// Method used to send version of test class</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 168 </td><td class="black_source">//-----------------------------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 169 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD5.html" title="\meco_domain\conversations\instantmessagesalert\tsrc\testinstantmsgalert\src\testinstantmsgalert.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a45"></a>17 </td><td align="right" class="black_profile">17 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 170 </td><td class="black_source">void Ctestinstantmsgalert::SendTestClassVersion()</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 171 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 172 </td><td class="black_source"> TVersion moduleVersion;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 173 </td><td class="black_source"> moduleVersion.iMajor = TEST_CLASS_VERSION_MAJOR;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 174 </td><td class="black_source"> moduleVersion.iMinor = TEST_CLASS_VERSION_MINOR;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 175 </td><td class="black_source"> moduleVersion.iBuild = TEST_CLASS_VERSION_BUILD;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 176 </td><td class="black_source"> </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 177 </td><td class="black_source"> TFileName moduleName;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 178 </td><td class="black_source"> moduleName = _L("testinstantmsgalert.dll");</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 179 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 180 </td><td class="black_source"> TBool newVersionOfMethod = ETrue;</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 181 </td><td class="black_source"> TestModuleIf().SendTestModuleVersion(moduleVersion, moduleName, newVersionOfMethod);</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 182 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 183 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 184 </td><td class="black_source">// ========================== OTHER EXPORTED FUNCTIONS =========================</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 185 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 186 </td><td class="black_source">// -----------------------------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 187 </td><td class="black_source">// LibEntryL is a polymorphic Dll entry point.</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 188 </td><td class="black_source">// Returns: CScriptBase: New CScriptBase derived object</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 189 </td><td class="black_source">// -----------------------------------------------------------------------------</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 190 </td><td class="black_source">//</td></tr>
<tr><td colspan="5" class="black"><a href="indexD5.html" title="\meco_domain\conversations\instantmessagesalert\tsrc\testinstantmsgalert\src\testinstantmsgalert.cpp">Top</a></td></tr>
<tr><td align="right" class="black_profile"><a name="a46"></a>17 </td><td align="right" class="black_profile">0 </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 191 </td><td class="black_source">EXPORT_C CScriptBase* LibEntryL( </td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 192 </td><td class="black_source"> CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 193 </td><td class="black_source"> {</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 194 </td><td class="black_source"></td></tr>
<tr><td align="right" class="black_profile">17 </td><td align="right" class="red_profile"> </td><td align="right" class="black_profile"> </td><td align="right" class="black_profile"> 195 </td><td class="black_source"> return ( CScriptBase* ) Ctestinstantmsgalert::NewL( aTestModuleIf );</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 196 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 197 </td><td class="black_source"> }</td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 198 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 199 </td><td class="black_source"></td></tr>
<tr><td colspan="3" class="black_profile"> </td><td align="right" class="black_profile"> 200 </td><td class="black_source">// End of File</td></tr>
<tr><td colspan="5" class="red"><strong>***TER 79% (11/14) of SOURCE FILE <a name="ut4"></a>testinstantmsgalert.cpp</strong></td></tr>
</table><br>
<span class="black"><a href="indexF.html" target="_top">Directory Summary</a> | <a href="index.html" target="_top">Files Summary</a> | <a href="indexB1.html" target="_top">Functions Summary</a> | <a href="indexD1.html">Execution Profile</a><br>
To files: <a href="indexD1.html">First</a> | <a href="indexD4.html">Previous</a> | <a href="indexD6.html">Next</a> | <a href="indexD8.html">Last</a> | <a href="indexD5.html">Top</a> | <a href="indexA.html#a5">Index</a> | <a href="indexD5.html" target="_top">No Index</a></span><br><br>
</body></html>