diff -r b023a8d2866a -r ea65f74e6de4 photosgallery/slideshow/engine/tsrc/t_cshweffects/t_cshweffects_dllmain.cpp --- a/photosgallery/slideshow/engine/tsrc/t_cshweffects/t_cshweffects_dllmain.cpp Thu Jul 15 18:39:01 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Test for control for the slideshow - * -*/ - - - - -// CLASS HEADER -#include "t_cshweffects.h" - -// EXTERNAL INCLUDES -#include - -// CLASS UNDER TEST -#include "shwcrossfadeeffect.h" -#include "shwzoomandpaneffect.h" - -MShwEffect* CreateCrossfadeL() - { - // create the normal zoom and pan - MShwEffect* eff = CShwCrossFadeEffect::NewLC(); - CleanupStack::Pop( eff ); - return eff; - } - -MShwEffect* CreateZoomAndPanL() - { - MShwEffect* eff = CShwZoomAndPanEffect::NewLC(); - CleanupStack::Pop( eff ); - return eff; - } - -EXPORT_C MEUnitTest* CreateTestSuiteL() - { - // Create a root suite to contain tests for both the effects - CEUnitTestSuite* rootSuite = - CEUnitTestSuite::NewLC( _L("ShwEffect Unit Tests") ); - - // Note that NewLC leaves the object in the cleanupstack. - rootSuite->AddL( T_CShwEffects::NewLC( &CreateCrossfadeL ) ); - CleanupStack::Pop(); // T_CShwEffects instance - - rootSuite->AddL( T_CShwEffects::NewLC( &CreateZoomAndPanL ) ); - CleanupStack::Pop(); // T_CShwEffects instance - - CleanupStack::Pop( rootSuite ); // rootSuite instance - - return rootSuite; - } - -// END OF FILE