Debian Codegraph @

tests/fw-iso-resource-auto

raw
1 #!/usr/bin/env python3
2
3 from sys import exit
4 from errno import ENXIO
5
6 from helper import test_object
7
8 import gi
9 gi.require_version('Hinoko', '1.0')
10 from gi.repository import Hinoko
11
12 target_type = Hinoko.FwIsoResourceAuto
13 props = (
14 'is-allocated',
15 'channel',
16 'bandwidth',
17 # From interface.
18 'generation',
19 )
20 methods = (
21 'new',
22 'deallocate',
23 'deallocate_wait',
24 # From interface.
25 'open',
26 'create_source',
27 'allocate',
28 'allocate_wait',
29 )
30 vmethods = (
31 # From interface.
32 'do_open',
33 'do_allocate',
34 'do_create_source',
35 'do_allocated',
36 'do_deallocated',
37 )
38 signals = (
39 # From interface.
40 'allocated',
41 'deallocated',
42 )
43
44 if not test_object(target_type, props, methods, vmethods, signals):
45 exit(ENXIO)
46