2 * This file is part of QMAFW
4 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights
7 * Contact: Visa Smolander <visa.smolander@nokia.com>
9 * This software, including documentation, is protected by copyright controlled
10 * by Nokia Corporation. All rights are reserved. Copying, including
11 * reproducing, storing, adapting or translating, any or all of this material
12 * requires the prior written consent of Nokia Corporation. This material also
13 * contains confidential information which may not be disclosed to others
14 * without the prior written consent of Nokia.
18 #ifndef UT_MAFWGSTRENDERER_H_
19 #define UT_MAFWGSTRENDERER_H_
21 #include <QtTest/QtTest>
22 #include <MafwError.h>
23 #include <contextsubscriber/contextproperty.h>
25 class MafwInternalRegistry;
26 class MafwGstRenderer;
29 class MafwRendererPolicyStub;
32 Q_DECLARE_METATYPE(QVariant)
33 Q_DECLARE_METATYPE(MafwError::Code)
35 class Ut_MafwGstRenderer: public QObject
41 void cleanupTestCase();
44 void testPlayPlaylistFile();
49 void testErrorCodeScenarios();
50 void testErrorCodeScenarios_data();
54 void testProperty_data();
55 void testPlaybackSpeedProperty();
57 void testDefaultConfiguration();
58 void testConfiguration();
59 void testGetCurrentMediaInfo();
60 void testGetCurrentMediaInfo_data();
61 void testBlankingPreventer();
62 void testPolicyPropertyHandler();
63 void testMediaRouting();
65 void testNetworkChangesWhenPlaying();
66 void testNetworkChangesWithNoPlaylistFileUtil();
67 void testNetworkChangesWhenPaused();
68 void testNetworkChangesWhenPausedAndRendererStopped();
69 void testNetworkChangesToInactiveAndPauseResumeRequested();
70 void testNetworkChangesToInactiveAndPauseResumeRequested_data();
71 void testNetworkChangesHaltStateDecay();
72 void testNetworkChangesWithPlaylistURI();
76 * @param error The status of the completed request.
77 * @param rndr Reference to instance of MafwRenderer invoked the callback slot
79 void play_result(const MafwError& error, MafwRenderer& rndr);
81 void positionChanged(uint position);
82 void positionError(const MafwError& error);
83 void media_info_result(const MafwMediaInfo& mediaInfo);
86 void propertyChanged(const QString& name, const QVariant& value);
90 MafwGstRenderer* m_renderer;
91 MafwStubHelper* m_stubHelper;
92 MafwRendererPolicyStub* m_rendererPolicy;
97 QList<QVariant> m_media_values;
99 ContextProperty *m_videoRoute;
102 #endif /*UT_MAFWGSTRENDERER_H_*/