1 | /**************************************************************************** |
---|---|
2 | ** |
3 | ** Copyright (C) 2016 The Qt Company Ltd. |
4 | ** Contact: https://www.qt.io/licensing/ |
5 | ** |
6 | ** This file is part of the test suite of the Qt Toolkit. |
7 | ** |
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ |
9 | ** Commercial License Usage |
10 | ** Licensees holding valid commercial Qt licenses may use this file in |
11 | ** accordance with the commercial license agreement provided with the |
12 | ** Software or, alternatively, in accordance with the terms contained in |
13 | ** a written agreement between you and The Qt Company. For licensing terms |
14 | ** and conditions see https://www.qt.io/terms-conditions. For further |
15 | ** information use the contact form at https://www.qt.io/contact-us. |
16 | ** |
17 | ** GNU General Public License Usage |
18 | ** Alternatively, this file may be used under the terms of the GNU |
19 | ** General Public License version 3 as published by the Free Software |
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT |
21 | ** included in the packaging of this file. Please review the following |
22 | ** information to ensure the GNU General Public License requirements will |
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html. |
24 | ** |
25 | ** $QT_END_LICENSE$ |
26 | ** |
27 | ****************************************************************************/ |
28 | |
29 | //TESTED_COMPONENT=src/multimedia |
30 | |
31 | #include <QtTest/QtTest> |
32 | #include "qvideoencodersettingscontrol.h" |
33 | class MyVideEncoderControl: public QVideoEncoderSettingsControl |
34 | { |
35 | Q_OBJECT |
36 | |
37 | public: |
38 | MyVideEncoderControl(QObject *parent = 0 ):QVideoEncoderSettingsControl(parent) |
39 | { |
40 | |
41 | } |
42 | |
43 | ~MyVideEncoderControl() |
44 | { |
45 | |
46 | } |
47 | |
48 | QList<QSize> supportedResolutions(const QVideoEncoderSettings &settings,bool *continuous = 0) const |
49 | { |
50 | Q_UNUSED(settings); |
51 | Q_UNUSED(continuous); |
52 | |
53 | return (QList<QSize>()); |
54 | } |
55 | |
56 | QList<qreal> supportedFrameRates(const QVideoEncoderSettings &settings, bool *continuous = 0) const |
57 | { |
58 | Q_UNUSED(settings); |
59 | Q_UNUSED(continuous); |
60 | |
61 | return (QList<qreal>()); |
62 | |
63 | } |
64 | |
65 | QStringList supportedVideoCodecs() const |
66 | { |
67 | return QStringList(); |
68 | |
69 | } |
70 | |
71 | QString videoCodecDescription(const QString &codecName) const |
72 | { |
73 | Q_UNUSED(codecName) |
74 | return QString(); |
75 | |
76 | } |
77 | |
78 | QVideoEncoderSettings videoSettings() const |
79 | { |
80 | return QVideoEncoderSettings(); |
81 | } |
82 | |
83 | void setVideoSettings(const QVideoEncoderSettings &settings) |
84 | { |
85 | Q_UNUSED(settings); |
86 | } |
87 | }; |
88 | |
89 | class tst_QVideoEncoderSettingsControl: public QObject |
90 | { |
91 | Q_OBJECT |
92 | private slots: |
93 | void constructor(); |
94 | }; |
95 | |
96 | void tst_QVideoEncoderSettingsControl::constructor() |
97 | { |
98 | QObject parent; |
99 | MyVideEncoderControl control(&parent); |
100 | } |
101 | |
102 | QTEST_MAIN(tst_QVideoEncoderSettingsControl) |
103 | #include "tst_qvideoencodersettingscontrol.moc" |
104 | |
105 | |
106 |