Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions tests/auto/allocatortest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,25 @@ void AllocatorTest::testAllocationParams()
p->setPadding(30ul);

QCOMPARE(p->flags(), QGst::MemoryFlagReadonly | QGst::MemoryFlagNotMappable);
QCOMPARE(p->align(), 10ul);
QCOMPARE(p->prefix(), 20ul);
QCOMPARE(p->padding(), 30ul);
QCOMPARE(p->align(), static_cast<size_t>(10));
QCOMPARE(p->prefix(), static_cast<size_t>(20));
QCOMPARE(p->padding(), static_cast<size_t>(30));

// Does copy work?
QGst::AllocationParams c(*p);

QCOMPARE(c.flags(), QGst::MemoryFlagReadonly | QGst::MemoryFlagNotMappable);
QCOMPARE(c.align(), 10ul);
QCOMPARE(c.prefix(), 20ul);
QCOMPARE(c.padding(), 30ul);
QCOMPARE(c.align(), static_cast<size_t>(10));
QCOMPARE(c.prefix(), static_cast<size_t>(20));
QCOMPARE(c.padding(), static_cast<size_t>(30));

// Does copy really work. (delete the source)
delete p;

QCOMPARE(c.flags(), QGst::MemoryFlagReadonly | QGst::MemoryFlagNotMappable);
QCOMPARE(c.align(), 10ul);
QCOMPARE(c.prefix(), 20ul);
QCOMPARE(c.padding(), 30ul);
QCOMPARE(c.align(), static_cast<size_t>(10));
QCOMPARE(c.prefix(), static_cast<size_t>(20));
QCOMPARE(c.padding(), static_cast<size_t>(30));
}

void AllocatorTest::testAllocator()
Expand Down
2 changes: 2 additions & 0 deletions tests/auto/discoverertest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "qgsttest.h"

#include <functional>
#include <QGlib/Connect>
#include <QGlib/Error>

Expand Down