1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/imagingandcamerafws/cameraunittest/src/TSU_ECM_ADV/ECamObserverTest.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,62 @@
1.4 +
1.5 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of "Eclipse Public License v1.0"
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +#ifndef ECAMOBSERVERTEST_H
1.21 +#define ECAMOBSERVERTEST_H
1.22 +
1.23 +#include <testframework.h>
1.24 +#include <ecam.h>
1.25 +#include <ecamadvsettings.h>
1.26 +
1.27 +class RECamObserverTest : public RTestStep, public MCameraObserver2
1.28 + {
1.29 +public:
1.30 + //MCameraObserver2
1.31 + void HandleEvent(const TECAMEvent& aEvent);
1.32 + void ViewFinderReady(MCameraBuffer& aCameraBuffer,TInt aError);
1.33 + void ImageBufferReady(MCameraBuffer& aCameraBuffer,TInt aError);
1.34 + void VideoBufferReady(MCameraBuffer& aCameraBuffer,TInt aError);
1.35 + void CheckNotification(const TUid& aEventUid, TVerdict& aResult);
1.36 + void CheckNotificationTwo(const TUid& aEventUid, TVerdict& aResult);
1.37 + void CheckNotificationNeg(const TUid& aEventUid, TVerdict& aResult);
1.38 + void CheckNotificationImgProc(const TUid& aEventUid, TInt aParam, TVerdict& aResult);
1.39 +
1.40 +protected:
1.41 + // from RTestStep;
1.42 + TVerdict DoTestStepL()=0;
1.43 +
1.44 +protected:
1.45 + TUid iEventUid;
1.46 + TUid iEventUidTwo;
1.47 + TInt iError;
1.48 + TInt iParam; //for TECAMEvent2 events
1.49 + };
1.50 +
1.51 +
1.52 +class RECamContinousZoomObserverTest : public RTestStep, public MContinuousZoomObserver
1.53 + {
1.54 +public:
1.55 + //MContinuousZoomObserver
1.56 + void ContinuousZoomProgress(CCamera::CCameraContinuousZoom& aContinuousZoomHandle, TInt aZoomFactor, TInt aError);
1.57 + void ContinuousZoomCompleted(CCamera::CCameraContinuousZoom& aContinuousZoomHandle, TInt aFinalZoomFactor, TInt aError);
1.58 + TInt CustomInterface(TUid aInterface, TAny*& aPtrInterface);
1.59 +
1.60 +protected:
1.61 + // from RTestStep
1.62 + TVerdict DoTestStepL()=0;
1.63 + };
1.64 +
1.65 +#endif // ECAMOBSERVERTEST_H