QVideoProbe unit test.

Change-Id: If8d391734b08eee2edbc2250fbcbe7f45cf94b3e
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
Lev Zelenskiy
2012-04-18 14:18:49 +10:00
committed by Qt by Nokia
parent 46f67a8b69
commit 41cf8853da
6 changed files with 270 additions and 2 deletions

View File

@@ -48,6 +48,7 @@
#include "mockmediastreamscontrol.h"
#include "mockmedianetworkaccesscontrol.h"
#include "mockvideorenderercontrol.h"
#include "mockvideoprobecontrol.h"
#if defined(QT_MULTIMEDIA_MOCK_WIDGETS)
#include "mockvideowindowcontrol.h"
#endif
@@ -64,6 +65,7 @@ public:
mockNetworkControl = new MockNetworkAccessControl;
rendererControl = new MockVideoRendererControl;
rendererRef = 0;
mockVideoProbeControl = new MockVideoProbeControl;
#if defined(QT_MULTIMEDIA_MOCK_WIDGETS)
windowControl = new MockVideoWindowControl;
windowRef = 0;
@@ -76,6 +78,7 @@ public:
delete mockStreamsControl;
delete mockNetworkControl;
delete rendererControl;
delete mockVideoProbeControl;
#if defined(QT_MULTIMEDIA_MOCK_WIDGETS)
delete windowControl;
#endif
@@ -90,6 +93,8 @@ public:
rendererRef += 1;
return rendererControl;
}
} else if (qstrcmp(iid, QMediaVideoProbeControl_iid) == 0) {
return mockVideoProbeControl;
}
#if defined(QT_MULTIMEDIA_MOCK_WIDGETS)
if (qstrcmp(iid, QVideoWindowControl_iid) == 0) {
@@ -164,6 +169,7 @@ public:
MockStreamsControl *mockStreamsControl;
MockNetworkAccessControl *mockNetworkControl;
MockVideoRendererControl *rendererControl;
MockVideoProbeControl *mockVideoProbeControl;
#if defined(QT_MULTIMEDIA_MOCK_WIDGETS)
MockVideoWindowControl *windowControl;
int windowRef;