File: GstTypeFindFactory.t

package info (click to toggle)
libgstreamer-perl 0.19-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 900 kB
  • ctags: 59
  • sloc: perl: 2,456; ansic: 32; makefile: 6
file content (25 lines) | stat: -rw-r--r-- 570 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 2;

# $Id$

use GStreamer -init;

SKIP: {
  my $factory = (GStreamer::TypeFindFactory -> get_list())[0];
  skip 'could not find a "type find factory"', 2
    unless defined $factory;

  isa_ok($factory, "GStreamer::TypeFindFactory");

  # Can't rely on this returning something != NULL
  my @extensions = $factory -> get_extensions();

  # This might be undef, too
  my $caps = $factory -> get_caps();
  skip 'get_caps() returned undef', 1
    unless defined $caps;
  isa_ok($caps, "GStreamer::Caps");
}