summaryrefslogtreecommitdiffstats
path: root/tests/auto/unit/qmultimedia_common/mockmediarecordercontrol.h
diff options
context:
space:
mode:
authorDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2012-01-31 10:08:49 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-01 08:10:20 +0100
commita22a0195f146e83174ee4eacffe33c161ab39e50 (patch)
treeecc72efc2790bce4238c8c1c9df223f54c0b3651 /tests/auto/unit/qmultimedia_common/mockmediarecordercontrol.h
parent9d3102efe29e294971b30aa2ce00be5cb7db5e05 (diff)
Split QMediaRecorder::setEncodingSettings to separate setters.
It's easier to change only the necessary part of encoding settings. The settings are applied during the next event loop or before recording starts. Change-Id: Ia2b5c93826a302212aa7f79a0c75e4cbaaf1dd7a Reviewed-by: Ling Hu <ling.hu@nokia.com> Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Diffstat (limited to 'tests/auto/unit/qmultimedia_common/mockmediarecordercontrol.h')
-rw-r--r--tests/auto/unit/qmultimedia_common/mockmediarecordercontrol.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/auto/unit/qmultimedia_common/mockmediarecordercontrol.h b/tests/auto/unit/qmultimedia_common/mockmediarecordercontrol.h
index eb414f29b..577d09b29 100644
--- a/tests/auto/unit/qmultimedia_common/mockmediarecordercontrol.h
+++ b/tests/auto/unit/qmultimedia_common/mockmediarecordercontrol.h
@@ -53,9 +53,12 @@ class MockMediaRecorderControl : public QMediaRecorderControl
public:
MockMediaRecorderControl(QObject *parent = 0):
QMediaRecorderControl(parent),
- m_state(QMediaRecorder::StoppedState),
- m_position(0),
- m_muted(false) {}
+ m_state(QMediaRecorder::StoppedState),
+ m_position(0),
+ m_muted(false),
+ m_settingAppliedCount(0)
+ {
+ }
QUrl outputLocation() const
{
@@ -83,7 +86,10 @@ public:
return m_muted;
}
- void applySettings() {}
+ void applySettings()
+ {
+ m_settingAppliedCount++;
+ }
using QMediaRecorderControl::error;
@@ -120,6 +126,7 @@ public:
QMediaRecorder::State m_state;
qint64 m_position;
bool m_muted;
+ int m_settingAppliedCount;
};
#endif // MOCKRECORDERCONTROL_H