ACF $AcfVersion:0$
CSelectionParamCompTest.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QObject>
7#include <QtTest/QtTest>
8
9// ACF includes
13#include <GeneratedFiles/SelectionParamComponentTest/CSelectionParamComponentTest.h>
14
15class CSelectionParamCompTest: public QObject
16{
17 Q_OBJECT
18private slots:
19 void initTestCase();
20
21 // Tests for selection parameter without constraints
22 void testCreationNoConstraints();
23 void testDefaultIndexNoConstraints();
24 void testSerializationNoConstraints();
25 void testCopyNoConstraints();
26 void testCloneNoConstraints();
27
28 // Tests for selection parameter with constraints
29 void testCreationWithConstraints();
30 void testDefaultIndexWithConstraints();
31 void testInvalidDefaultIndexWithConstraints();
32 void testSerializationWithConstraints();
33 void testCopyWithConstraints();
34 void testCloneWithConstraints();
35
36 // Tests for selection parameter with subselection
37 void testCreationWithSubselection();
38 void testGetSubselection();
39 void testSerializationWithSubselection();
40
41 void cleanupTestCase();
42
43private:
44 std::shared_ptr<CSelectionParamComponentTest> m_testPartituraInstanceCompPtr;
45
46 iprm::ISelectionParam* m_selectionNoConstraintsPtr = nullptr;
47 iprm::ISelectionParam* m_selectionWithDefaultIndexPtr = nullptr;
48 iprm::IOptionsManager* m_optionsConstraintsPtr = nullptr;
49 iprm::IOptionsManager* m_optionsConstraintsPresetPtr = nullptr;
50 iprm::ISelectionParam* m_selectionWithConstraintsPtr = nullptr;
51 iprm::ISelectionParam* m_selectionWithConstraintsAndDefaultPtr = nullptr;
52 iprm::ISelectionParam* m_selectionWithInvalidDefaultPtr = nullptr;
53 iprm::ISelectionParam* m_subselectionPtr = nullptr;
54 iprm::ISelectionParam* m_selectionWithSubselectionPtr = nullptr;
55};
Common interface for the management of dynamic selection constraints.
Interface allowing to select single option from list of options.