os/ossrv/lowlevellibsandfws/pluginfw/Test_Bed/DefaultLogOutputTest/DefaultLogOutputTransitions.inl
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// The implementation of the transition classes upon the CDefaultLogOutput class methods.
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
// ______________________________________________________________________________
sl@0
    19
//
sl@0
    20
_LIT(KDefaultLogOutputNewLTransition,"CDefaultLogOutput_NewL_Transition");
sl@0
    21
sl@0
    22
inline CDefaultLogOutput_NewL_Transition::CDefaultLogOutput_NewL_Transition(CUnitTestContext& aUTContext,
sl@0
    23
													TTransitionValidator& aValidator)
sl@0
    24
: CTransitionType(KDefaultLogOutputNewLTransition, aUTContext, aValidator)
sl@0
    25
	{
sl@0
    26
	// Do nothing here.
sl@0
    27
	}
sl@0
    28
sl@0
    29
inline void CDefaultLogOutput_NewL_Transition::TransitMethodL()
sl@0
    30
	{
sl@0
    31
	_LIT(KDefaultLogOutputNewLTransitMethod, "CDefaultLogOutput::NewL transition");
sl@0
    32
	_LIT(KTitle, "TestLogFile.html");
sl@0
    33
	Context().DataLogger().LogInformation(KDefaultLogOutputNewLTransitMethod);
sl@0
    34
	Context().iDefaultLogOutput = new(ELeave) CDefaultLogOutput(KTitle);
sl@0
    35
	}
sl@0
    36
sl@0
    37
inline CDefaultLogOutput_UnitTestContext& CDefaultLogOutput_NewL_Transition::Context() const
sl@0
    38
	{
sl@0
    39
	return REINTERPRET_CAST(CDefaultLogOutput_UnitTestContext&,iUTContext);
sl@0
    40
	}
sl@0
    41
sl@0
    42
// ______________________________________________________________________________
sl@0
    43
//
sl@0
    44
_LIT(KDefaultLogOutputDtorTransition,"CDefaultLogOutput_Dtor_Transition");
sl@0
    45
sl@0
    46
inline CDefaultLogOutput_Dtor_Transition::CDefaultLogOutput_Dtor_Transition(CUnitTestContext& aUTContext,
sl@0
    47
													TTransitionValidator& aValidator)
sl@0
    48
: CTransition(KDefaultLogOutputDtorTransition, aUTContext, aValidator)
sl@0
    49
	{
sl@0
    50
	// Do nothing here.
sl@0
    51
	}
sl@0
    52
sl@0
    53
inline void CDefaultLogOutput_Dtor_Transition::TransitMethodL()
sl@0
    54
	{
sl@0
    55
	_LIT(KDefaultLogOutputDtorTransitMethod, "CDefaultLogOutput::Dtor transition");
sl@0
    56
	Context().DataLogger().LogInformation(KDefaultLogOutputDtorTransitMethod);
sl@0
    57
	delete Context().iDefaultLogOutput;
sl@0
    58
	Context().iDefaultLogOutput = NULL;
sl@0
    59
	}
sl@0
    60
sl@0
    61
inline CDefaultLogOutput_UnitTestContext& CDefaultLogOutput_Dtor_Transition::Context() const
sl@0
    62
	{
sl@0
    63
	return REINTERPRET_CAST(CDefaultLogOutput_UnitTestContext&,iUTContext);
sl@0
    64
	}
sl@0
    65
sl@0
    66
// ______________________________________________________________________________
sl@0
    67
//
sl@0
    68
_LIT(KDefaultLogOutputOpenLTransition,"CDefaultLogOutput_OpenL_Transition");
sl@0
    69
sl@0
    70
inline CDefaultLogOutput_OpenL_Transition::CDefaultLogOutput_OpenL_Transition(CUnitTestContext& aUTContext,
sl@0
    71
													TTransitionValidator& aValidator)
sl@0
    72
: CTransitionType(KDefaultLogOutputOpenLTransition, aUTContext, aValidator)
sl@0
    73
	{
sl@0
    74
	// Do nothing here.
sl@0
    75
	}
sl@0
    76
sl@0
    77
inline void CDefaultLogOutput_OpenL_Transition::TransitMethodL()
sl@0
    78
	{
sl@0
    79
	_LIT(KDefaultLogOutputOpenLTransitMethod, "CDefaultLogOutput::OpenL transition");
sl@0
    80
	Context().DataLogger().LogInformation(KDefaultLogOutputOpenLTransitMethod);
sl@0
    81
	Context().iDefaultLogOutput->OpenL();
sl@0
    82
	}
sl@0
    83
sl@0
    84
inline CDefaultLogOutput_UnitTestContext& CDefaultLogOutput_OpenL_Transition::Context() const
sl@0
    85
	{
sl@0
    86
	return REINTERPRET_CAST(CDefaultLogOutput_UnitTestContext&,iUTContext);
sl@0
    87
	}
sl@0
    88
sl@0
    89
// ______________________________________________________________________________
sl@0
    90
//
sl@0
    91
_LIT(KDefaultLogOutputCloseTransition,"CDefaultLogOutput_Close_Transition");
sl@0
    92
sl@0
    93
inline CDefaultLogOutput_Close_Transition::CDefaultLogOutput_Close_Transition(CUnitTestContext& aUTContext,
sl@0
    94
													TTransitionValidator& aValidator)
sl@0
    95
: CTransition(KDefaultLogOutputCloseTransition, aUTContext, aValidator)
sl@0
    96
	{
sl@0
    97
	// Do nothing here.
sl@0
    98
	}
sl@0
    99
sl@0
   100
inline void CDefaultLogOutput_Close_Transition::TransitMethodL()
sl@0
   101
	{
sl@0
   102
	_LIT(KDefaultLogOutputCloseTransitMethod, "CDefaultLogOutput::Close transition");
sl@0
   103
	Context().DataLogger().LogInformation(KDefaultLogOutputCloseTransitMethod);
sl@0
   104
	Context().iDefaultLogOutput->Close();
sl@0
   105
	}
sl@0
   106
sl@0
   107
inline CDefaultLogOutput_UnitTestContext& CDefaultLogOutput_Close_Transition::Context() const
sl@0
   108
	{
sl@0
   109
	return REINTERPRET_CAST(CDefaultLogOutput_UnitTestContext&,iUTContext);
sl@0
   110
	}
sl@0
   111
sl@0
   112
// ______________________________________________________________________________
sl@0
   113
//
sl@0
   114
_LIT(KDefaultLogOutputWriteTransition,"CDefaultLogOutput_Write_Transition");
sl@0
   115
sl@0
   116
inline CDefaultLogOutput_Write_Transition::CDefaultLogOutput_Write_Transition(CUnitTestContext& aUTContext,
sl@0
   117
													TTransitionValidator& aValidator)
sl@0
   118
: CTransition(KDefaultLogOutputWriteTransition, aUTContext, aValidator)
sl@0
   119
	{
sl@0
   120
	// Do nothing here.
sl@0
   121
	}
sl@0
   122
sl@0
   123
inline void CDefaultLogOutput_Write_Transition::TransitMethodL()
sl@0
   124
	{
sl@0
   125
	_LIT(KDefaultLogOutputWriteTransitMethod, "CDefaultLogOutput::Write transition");
sl@0
   126
	Context().DataLogger().LogInformation(KDefaultLogOutputWriteTransitMethod);
sl@0
   127
	Context().iDefaultLogOutput->Write(*(Context().iOutput));
sl@0
   128
	}
sl@0
   129
sl@0
   130
inline CDefaultLogOutput_UnitTestContext& CDefaultLogOutput_Write_Transition::Context() const
sl@0
   131
	{
sl@0
   132
	return REINTERPRET_CAST(CDefaultLogOutput_UnitTestContext&,iUTContext);
sl@0
   133
	}
sl@0
   134
sl@0
   135
// Add additional Transition class Implementations here...
sl@0
   136