diff options
Diffstat (limited to 'tests/compilation/CompilationTests.cmake')
-rw-r--r-- | tests/compilation/CompilationTests.cmake | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/compilation/CompilationTests.cmake b/tests/compilation/CompilationTests.cmake index b774af0..ea63bd5 100644 --- a/tests/compilation/CompilationTests.cmake +++ b/tests/compilation/CompilationTests.cmake @@ -164,3 +164,38 @@ int main() ") ######### END disconnect tests ######## +######### BEGIN bin add() tests ######## + +cxx_compilation_test(bin_add_test_1 SHOULD_COMPILE " +#include <QGst/Bin> + +int main() +{ + QGst::ElementPtr tee; + QGst::BinPtr bin; + + bool b = bin->add(tee); + bin->add(tee, tee); + bin->add(tee, tee, tee); + bin->add(tee, tee, tee, tee); + bin->add(tee, tee, tee, tee, tee); + bin->add(tee, tee, tee, tee, tee, tee); + bin->add(tee, tee, tee, tee, tee, tee, tee); + bin->add(tee, tee, tee, tee, tee, tee, tee, tee); + bin->add(tee, tee, tee, tee, tee, tee, tee, tee, tee); + bin->add(tee, tee, tee, tee, tee, tee, tee, tee, tee, tee); +} +") + +cxx_compilation_test(bin_add_test_2 SHOULD_COMPILE " +#define QGST_BIN_ADD_MAX_ARGS 12 +#include <QGst/Bin> + +int main() +{ + QGst::ElementPtr tee; + QGst::BinPtr bin; + bin->add(tee, tee, tee, tee, tee, tee, tee, tee, tee, tee, tee, tee); +} +") +######### END bin add() tests ######## |