diff -r 45e72b57a2fd -r e3cecb93e76a videoplayback/videoplaybackview/tsrc/testcontrolscontroller/inc/testcontrolscontroller.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videoplayback/videoplaybackview/tsrc/testcontrolscontroller/inc/testcontrolscontroller.h Wed Aug 18 09:50:14 2010 +0300 @@ -0,0 +1,140 @@ +/** +* Copyright (c) 2010 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: tester for methods in Video Playback Controls Controller +* +*/ + +// Version : %version: 9 % + +#ifndef __TESTCONTROLSCONTROLLER_H__ +#define __TESTCONTROLSCONTROLLER_H__ + + +// INCLUDES +#include +#include "videoplaybackcontrol.hrh" + +// FORWARD DECLARATIONS +class VideoBasePlaybackView; +class CMPXVideoViewWrapper; +class VideoPlaybackControlsController; +class VideoPlaybackViewFileDetails; + +class TestControlsController : public QObject +{ + Q_OBJECT + +public: + + /** + * will be called before each testfunction is executed. + * + */ + void init(); + + /** + * will be called after every testfunction. + * + */ + void cleanup(); + +private: + + void verifyHandleEventStateChangedResult( int value ); + void verifyHandleEventTvOutResult( bool tvOutConnected, bool value ); + +private slots: + + void testAddFileDetails(); + void testHandleEventSetPosition(); + void testHandleEventSetDuration(); + void testHandleEventStateChanged(); + void testHandleEventSetVolume(); + void testHandleEventSetAspectRatio(); + void testHandleEventSetDownloadSize(); + void testHandleEventDownloadUpdated(); + void testHandleEventDownloadComplete(); + void testHandleEventSetDownloadPaused(); + void testHandleEventClearDownloadPaused(); + void testHandleEventTvOutConnected(); + void testHandleEventTvOutDisconnected(); + void testHandleEventHandleErrors(); + void testHandleEventShowVolumeControls(); + void testIsFileDetailsAdded(); + + // + // test handleCommand() + // + void testHandleCommand(); + + // + // test handleTappedOnScreen() + // + void testHandleTappedOnScreen(); + + // + // test updateVideoRectDone() + // + void testUpdateVideoRectDone(); + + // + // test isAttachOperation() + // + void testIsAttachOperation(); + + // + // test private slot skipToNextVideoItem() + // + void testslot_skipToNextVideoItem(); + + // + // test private slot skipToPreviousVideoItem() + // + void testslot_skipToPreviousVideoItem(); + + // + // test private slot attachVideo() + // + void testslot_attachVideo(); + + // + // test private slot attachVideo() + // + void testslot_sendVideo(); + + // + // test private slot handleOrientationChanged() + // + void testslot_handleOrientationChanged(); + + void testslot_handleRNLogoVisibleChanged(); + void testslot_handleRNLogoTimeout(); + void testIsRNLogoBitmapVisible(); + +signals: + void commandSignal(); + void commandSignal( Qt::Orientation ); + +private: + + VideoBasePlaybackView* mBaseVideoView; + CMPXVideoViewWrapper* mViewWrapper; + VideoPlaybackControlsController* mController; + VideoPlaybackViewFileDetails* mFileDetails; + +}; + +#endif // __TESTCONTROLSCONTROLLER_H__ + +// End of file