mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 17:09:48 +00:00
add gst.message_application_new test case
Original commit message from CVS: add gst.message_application_new test case
This commit is contained in:
parent
b10d8306fe
commit
ca54d806eb
2 changed files with 17 additions and 1 deletions
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 959da4a43c2e6218eb4f43e8c7e29c1db4157db1
|
||||
Subproject commit 657b549dfb640a76f3d7ab7676e453c801a83dca
|
|
@ -30,5 +30,21 @@ class NewTest(TestCase):
|
|||
m = gst.message_new_eos(b)
|
||||
gst.info("got message : %s" % m)
|
||||
|
||||
def _testApplication(self):
|
||||
gst.info("creating new pipeline")
|
||||
bin = gst.Pipeline()
|
||||
bus = bin.get_bus()
|
||||
bus.add_signal_watch()
|
||||
got_message = False
|
||||
def message_application_cb(bus, message):
|
||||
got_message = True
|
||||
bus.connect('message::application', message_application_cb)
|
||||
|
||||
gst.info("creating new application message from that bin")
|
||||
msg = gst.message_new_application(bin, gst.Structure('foo'))
|
||||
bus.post(msg)
|
||||
self.failUnless(got_message == True)
|
||||
self.gccollect()
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in a new issue