Update contrib.
1 // Copyright (c) 1997-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // This file contains the definitions for
15 // the transition classes for testing the
16 // CExampleInterface interface.
20 #ifndef __SUICIDETRANSITION_H__
21 #define __SUICIDETRANSITION_H__
23 #include <test_bed/transition.h>
24 #include "LeakTestTransition.h"
25 #include "Interface.h"
27 class CExampleInterface;
29 #define CTransitionType CLeakTestTransition
31 // ______________________________________________________________________________
34 Comments : The context in which the transitions will run
35 That is to say the container in which the transition
36 parameters are passed around
38 class CSuicideInterface_UnitTestContext : public CUnitTestContext
41 inline CSuicideInterface_UnitTestContext(CDataLogger& aDataLogger,
42 MStateAccessor& aAccessor,
43 MTransitionObserver& aObserver);
44 inline ~CSuicideInterface_UnitTestContext();
46 CExampleInterface* iExampleInterface;
50 Comments : Transition of the NewL method
52 class CSuicideInterfaceNewLTransition : public CTransitionType
55 inline CSuicideInterfaceNewLTransition( CUnitTestContext& aUTContext,
56 TTransitionValidator& aValidator);
57 inline void TransitMethodL();
58 inline CSuicideInterface_UnitTestContext& Context();
62 Comments : Transition of the destructor method
64 class CSuicideInterfaceDtorTransition : public CTransition
67 inline CSuicideInterfaceDtorTransition( CUnitTestContext& aUTContext,
68 TTransitionValidator& aValidator);
69 inline void TransitMethodL();
70 inline CSuicideInterface_UnitTestContext& Context();
75 Comments : Transition of the FireAndForget method
77 class CSuicideInterfaceFireAndForgetTransition : public CTransition
80 inline CSuicideInterfaceFireAndForgetTransition( CUnitTestContext& aUTContext,
81 TTransitionValidator& aValidator);
82 inline void TransitMethodL();
83 inline CSuicideInterface_UnitTestContext& Context();
86 #include "SuicideTransitions.inl"
88 #endif // __SUICIDETRANSITION_H__