aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fw-iso-resource-auto
blob: d5cb3d4521b870dac1748d708fe74d818dfabf53 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python3

from sys import exit
from errno import ENXIO

from helper import test_object

import gi
gi.require_version('Hinoko', '0.0')
from gi.repository import Hinoko

target_type = Hinoko.FwIsoResourceAuto
props = (
    'is-allocated',
    'channel',
    'bandwidth',
    'generation',
)
methods = (
    'new',
    'open',
    'create_source',
    'allocate_async',
    'deallocate_async',
    'allocate_sync',
    'deallocate_sync',
)
vmethods = (
    #'do_allocated',
    #'do_deallocated',
)
signals = (
    #'allocated',
    #'deallocated',
)

if not test_object(target_type,  props, methods, vmethods, signals):
    exit(ENXIO)