projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: pass config object to message iterator init method, add can seek forward property
[babeltrace.git]
/
tests
/
data
/
plugins
/
flt.utils.trimmer
/
bt_plugin_trimmer_test.py
diff --git
a/tests/data/plugins/flt.utils.trimmer/bt_plugin_trimmer_test.py
b/tests/data/plugins/flt.utils.trimmer/bt_plugin_trimmer_test.py
index 0fdb78f9f56ff4f94b5cdfff10c69ec67200b83f..9f337356c8552e644a78833f5a4afe55754faecc 100644
(file)
--- a/
tests/data/plugins/flt.utils.trimmer/bt_plugin_trimmer_test.py
+++ b/
tests/data/plugins/flt.utils.trimmer/bt_plugin_trimmer_test.py
@@
-2,7
+2,7
@@
import bt2
class TheIteratorOfAllEvil(bt2._UserMessageIterator):
class TheIteratorOfAllEvil(bt2._UserMessageIterator):
- def __init__(self, port):
+ def __init__(self,
config,
port):
tc, sc, ec1, ec2, params = port.user_data
trace = tc()
stream = trace.create_stream(sc)
tc, sc, ec1, ec2, params = port.user_data
trace = tc()
stream = trace.create_stream(sc)
@@
-33,7
+33,7
@@
class TheIteratorOfAllEvil(bt2._UserMessageIterator):
]
self._at = 0
]
self._at = 0
- def _seek_beginning(self):
+ def _
user_
seek_beginning(self):
self._at = 0
def __next__(self):
self._at = 0
def __next__(self):
@@
-49,7
+49,7
@@
class TheIteratorOfAllEvil(bt2._UserMessageIterator):
class TheSourceOfAllEvil(
bt2._UserSourceComponent, message_iterator_class=TheIteratorOfAllEvil
):
class TheSourceOfAllEvil(
bt2._UserSourceComponent, message_iterator_class=TheIteratorOfAllEvil
):
- def __init__(self,
params
):
+ def __init__(self,
config, params, obj
):
tc = self._create_trace_class()
# Use a clock class with an offset, so we can test with --begin or --end
tc = self._create_trace_class()
# Use a clock class with an offset, so we can test with --begin or --end
This page took
0.02517 seconds
and
4
git commands to generate.