sl@0: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // This file contains the definition of the class MUnitTestObserver sl@0: // sl@0: // sl@0: sl@0: /** sl@0: @test sl@0: */ sl@0: sl@0: #ifndef __UNITTESTOBSERVER_H__ sl@0: #define __UNITTESTOBSERVER_H__ sl@0: sl@0: class CUnitTest; sl@0: sl@0: /** sl@0: @internalAll sl@0: Comments : Provides a callback method to the CComponentTester to sl@0: indicate that the unit test has completed sl@0: */ sl@0: sl@0: class MUnitTestObserver sl@0: { sl@0: public: sl@0: /** sl@0: @fn virtual Complete(CUnitTest* aUnitTest) = 0 sl@0: Intended Usage : Allows a 'callback' to indicate that the observed class has sl@0: completed its task sl@0: Error Condition : None sl@0: @since 7.0 sl@0: @param aUnitTest The unit test which has completed sl@0: @pre Should be called to indicate that all transitions in the unit test have completed sl@0: @post The unit test should have completed all operation as it could now be unloaded sl@0: */ sl@0: sl@0: virtual void Complete(CUnitTest* aUnitTest) = 0; sl@0: }; sl@0: sl@0: #endif