Debian Codegraph @

tests/fw-iso-resource-once

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.FwIsoResourceOnce
13 props = (
14 # From interface.
15 'generation',
16 )
17 methods = (
18 'new',
19 'deallocate',
20 'deallocate_wait',
21 # From interface.
22 'open',
23 'create_source',
24 'allocate',
25 'allocate_wait',
26 )
27 vmethods = (
28 # From interface.
29 'do_open',
30 'do_allocate',
31 'do_create_source',
32 'do_allocated',
33 'do_deallocated',
34 )
35 signals = (
36 # From interface.
37 'allocated',
38 'deallocated',
39 )
40
41
42 if not test_object(target_type, props, methods, vmethods, signals):
43 exit(ENXIO)
44