[gstreamermm: 124/167] start wrapping test framework - unfortunatelly, i don't know for now, how to avoid using 'gstreamer



commit 3325020d0c368b351e85791645efe9dd220541b3
Author: Marcin Kolny at Flytronic <marcin kolny flytronic pl>
Date:   Fri Aug 2 16:41:35 2013 +0200

    start wrapping test framework - unfortunatelly, i don't know for now, how to avoid using 'gstreamer check 
framework', and using only test gst_check functions with any framework. But I'm sure, it might be done'

 .gitignore                |    2 ++
 gstreamer/src/check.ccg   |   10 ++++++++++
 gstreamer/src/check.hg    |   38 ++++++++++++++++++++++++++++++++++++++
 gstreamer/src/filelist.am |    1 +
 4 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index f52d16d..282b325 100644
--- a/.gitignore
+++ b/.gitignore
@@ -71,6 +71,8 @@ gstreamer/gstreamermm/bus.cc
 gstreamer/gstreamermm/bus.h
 gstreamer/gstreamermm/caps.cc
 gstreamer/gstreamermm/caps.h
+gstreamer/gstreamermm/check.cc
+gstreamer/gstreamermm/check.h
 gstreamer/gstreamermm/cddabasesrc.cc
 gstreamer/gstreamermm/cddabasesrc.h
 gstreamer/gstreamermm/childproxy.cc
diff --git a/gstreamer/src/check.ccg b/gstreamer/src/check.ccg
new file mode 100644
index 0000000..9d94fa1
--- /dev/null
+++ b/gstreamer/src/check.ccg
@@ -0,0 +1,10 @@
+/*
+ * check.ccg
+ *
+ *  Created on: Aug 2, 2013
+ *      Author: m.kolny
+ */
+
+
+
+
diff --git a/gstreamer/src/check.hg b/gstreamer/src/check.hg
new file mode 100644
index 0000000..7ef1580
--- /dev/null
+++ b/gstreamer/src/check.hg
@@ -0,0 +1,38 @@
+/*
+ * check.hg
+ *
+ *  Created on: Aug 2, 2013
+ *      Author: m.kolny
+ */
+
+#include <gst/gst.h>
+#include <gst/check/gstcheck.h>
+#include <gstreamermm/element.h>
+#include <gstreamermm/buffer.h>
+#include <gstreamermm/caps.h>
+
+_DEFS(gstreamermm,gst)
+
+namespace Gst
+{
+
+class Check
+{
+_CLASS_GENERIC(Check, GObject)
+public:
+    void init(int* argc, char** argv);
+    Check();
+    Check(const Check &);
+    Check & operator = (const Check&);
+
+    _WRAP_METHOD(static Glib::RefPtr<Gst::Element> setup_element(const Glib::ustring& factory), 
gst_check_setup_element)
+    _WRAP_METHOD(static void teardown_pad_by_name(Glib::RefPtr<Gst::Element> element, const Glib::ustring& 
name), gst_check_teardown_pad_by_name)
+    _WRAP_METHOD(static void teardown_element(Glib::RefPtr<Gst::Element> element), 
gst_check_teardown_element)
+    _WRAP_METHOD(static void teardown_sink_pad(Glib::RefPtr<Gst::Element> element), 
gst_check_teardown_sink_pad)
+    _WRAP_METHOD(static void teardown_src_pad(Glib::RefPtr<Gst::Element> element), 
gst_check_teardown_src_pad)
+    _WRAP_METHOD(static void drop_buffers(), gst_check_drop_buffers)
+    _WRAP_METHOD(static void buffer_data(Glib::RefPtr<Gst::Buffer> buffer, gconstpointer data, gsize size), 
gst_check_buffer_data)
+    _WRAP_METHOD(static void caps_equal(Glib::RefPtr<Gst::Caps> caps1, Glib::RefPtr<Gst::Caps> caps2), 
gst_check_caps_equal)
+};
+
+}
diff --git a/gstreamer/src/filelist.am b/gstreamer/src/filelist.am
index daec533..7cb37c1 100644
--- a/gstreamer/src/filelist.am
+++ b/gstreamer/src/filelist.am
@@ -98,6 +98,7 @@ files_hg  =                     \
         bufferlist.hg           \
         bus.hg                  \
         caps.hg                 \
+        check.hg                \
         childproxy.hg           \
         clock.hg                \
         colorbalance.hg         \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]