|
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // The implementation of the transition classes upon the CWspHeaderWriter class methods. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file WspHeaderWriterTransitions.inl |
|
20 */ |
|
21 |
|
22 // ______________________________________________________________________________ |
|
23 // |
|
24 _LIT(KWspHeaderWriterNewLTransition,"CWspHeaderWriter_NewL_Transition"); |
|
25 |
|
26 inline CWspHeaderWriter_NewL_Transition::CWspHeaderWriter_NewL_Transition(CUnitTestContext& aUTContext, |
|
27 TTransitionValidator& aValidator) |
|
28 : CTransitionType(KWspHeaderWriterNewLTransition, aUTContext, aValidator) |
|
29 { |
|
30 // Do nothing here. |
|
31 } |
|
32 |
|
33 inline void CWspHeaderWriter_NewL_Transition::TransitMethodL() |
|
34 { |
|
35 _LIT(KWspHeaderWriterNewLTransitMethod, "CWspHeaderWriter::NewL transition"); |
|
36 Context().DataLogger().LogInformation(KWspHeaderWriterNewLTransitMethod); |
|
37 } |
|
38 |
|
39 inline CWspHeaderWriter_UnitTestContext& CWspHeaderWriter_NewL_Transition::Context() const |
|
40 { |
|
41 return REINTERPRET_CAST(CWspHeaderWriter_UnitTestContext&,iUTContext); |
|
42 } |
|
43 |
|
44 // ______________________________________________________________________________ |
|
45 // |
|
46 _LIT(KWspHeaderWriterDtorTransition,"CWspHeaderWriter_Dtor_Transition"); |
|
47 |
|
48 // WARNING : It is not recommended that CLeakTestTransitions |
|
49 // are used on Dtor methods, so if CTransitionType is defined as CLeakTestTransition |
|
50 // it is suggested that this Dtor transition's base is changed explicitly to CTransition |
|
51 inline CWspHeaderWriter_Dtor_Transition::CWspHeaderWriter_Dtor_Transition(CUnitTestContext& aUTContext, |
|
52 TTransitionValidator& aValidator) |
|
53 : CTransitionType(KWspHeaderWriterDtorTransition, aUTContext, aValidator) |
|
54 { |
|
55 // Do nothing here. |
|
56 } |
|
57 |
|
58 inline void CWspHeaderWriter_Dtor_Transition::TransitMethodL() |
|
59 { |
|
60 _LIT(KWspHeaderWriterDtorTransitMethod, "CWspHeaderWriter::Dtor transition"); |
|
61 Context().DataLogger().LogInformation(KWspHeaderWriterDtorTransitMethod); |
|
62 } |
|
63 |
|
64 inline CWspHeaderWriter_UnitTestContext& CWspHeaderWriter_Dtor_Transition::Context() const |
|
65 { |
|
66 return REINTERPRET_CAST(CWspHeaderWriter_UnitTestContext&,iUTContext); |
|
67 } |
|
68 |
|
69 // ______________________________________________________________________________ |
|
70 // |
|
71 _LIT(KWspHeaderWriterEncodeHeaderLTransition,"CWspHeaderWriter_EncodeHeaderL_Transition"); |
|
72 |
|
73 inline CWspHeaderWriter_EncodeHeaderL_Transition::CWspHeaderWriter_EncodeHeaderL_Transition(CUnitTestContext& aUTContext, |
|
74 TTransitionValidator& aValidator) |
|
75 : CTransitionType(KWspHeaderWriterEncodeHeaderLTransition, aUTContext, aValidator) |
|
76 { |
|
77 // Do nothing here. |
|
78 } |
|
79 |
|
80 inline void CWspHeaderWriter_EncodeHeaderL_Transition::TransitMethodL() |
|
81 { |
|
82 _LIT(KWspHeaderWriterEncodeHeaderLTransitMethod, "CWspHeaderWriter::EncodeHeaderL transition"); |
|
83 Context().DataLogger().LogInformation(KWspHeaderWriterEncodeHeaderLTransitMethod); |
|
84 Context().SetOutputL(); |
|
85 } |
|
86 |
|
87 inline CWspHeaderWriter_UnitTestContext& CWspHeaderWriter_EncodeHeaderL_Transition::Context() const |
|
88 { |
|
89 return REINTERPRET_CAST(CWspHeaderWriter_UnitTestContext&,iUTContext); |
|
90 } |
|
91 |
|
92 // ______________________________________________________________________________ |
|
93 // |
|
94 _LIT(KWspHeaderWriterEncodeHeaderLTrapTransition,"CWspHeaderWriter_EncodeHeaderLTrap_Transition"); |
|
95 |
|
96 inline CWspHeaderWriter_EncodeHeaderLTrap_Transition::CWspHeaderWriter_EncodeHeaderLTrap_Transition(CUnitTestContext& aUTContext, |
|
97 TTransitionValidator& aValidator) |
|
98 : CTransitionType(KWspHeaderWriterEncodeHeaderLTrapTransition, aUTContext, aValidator) |
|
99 { |
|
100 // Do nothing here. |
|
101 } |
|
102 |
|
103 inline void CWspHeaderWriter_EncodeHeaderLTrap_Transition::TransitMethodL() |
|
104 { |
|
105 _LIT(KWspHeaderWriterEncodeHeaderLTrapTransitMethod, "CWspHeaderWriter::EncodeHeaderLTrap transition"); |
|
106 Context().DataLogger().LogInformation(KWspHeaderWriterEncodeHeaderLTrapTransitMethod); |
|
107 Context().SetTrapOutputL(); |
|
108 } |
|
109 |
|
110 inline CWspHeaderWriter_UnitTestContext& CWspHeaderWriter_EncodeHeaderLTrap_Transition::Context() const |
|
111 { |
|
112 return REINTERPRET_CAST(CWspHeaderWriter_UnitTestContext&,iUTContext); |
|
113 } |