[gstreamermm: 129/167] added another test for caps
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm: 129/167] added another test for caps
- Date: Tue, 3 Sep 2013 19:29:54 +0000 (UTC)
commit 244f8f8af5ba9e8d626822c372b8061a54f427dc
Author: Marcin Kolny [loganek] <marcin kolny gmail com>
Date: Mon Aug 5 02:21:54 2013 +0200
added another test for caps
tests/test-caps.cc | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-caps.cc b/tests/test-caps.cc
index 6ab4250..505f4f1 100644
--- a/tests/test-caps.cc
+++ b/tests/test-caps.cc
@@ -99,3 +99,15 @@ TEST_F(CapsTest, GetNonExistingValue)
ASSERT_FALSE(ok);
}
+
+TEST_F(CapsTest, SetCapsToElement)
+{
+ Glib::RefPtr<Element> element = ElementFactory::create_element("multifilesrc", "source");
+
+ gchar* str_caps = "image/jpeg, framerate=(fraction)2/1";
+
+ element->set_property("caps", Caps::create_from_string(str_caps));
+ element->get_property("caps", caps);
+
+ ASSERT_STREQ(str_caps, caps->to_string().c_str());
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]