[gstreamermm] Tests: fix unittests
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] Tests: fix unittests
- Date: Sun, 25 Sep 2016 12:49:22 +0000 (UTC)
commit 9f19e82849babba5b87177d134e56a30cbbbbae8
Author: Marcin Kolny <marcin kolny gmail com>
Date: Sun Sep 25 14:49:01 2016 +0200
Tests: fix unittests
.gitignore | 2 +-
tests/Makefile.am | 16 ++++----
tests/mmtest.h | 9 ++++
tests/plugins/test-plugin-appsink.cc | 34 ++++++++--------
tests/plugins/test-plugin-appsrc.cc | 32 ++++++++--------
tests/plugins/test-plugin-derivedfromappsink.cc | 30 +++++++-------
tests/plugins/test-plugin-derivedfromappsrc.cc | 28 +++++++-------
.../test-plugin-derivedfrombasetransform.cc | 40 ++++++++++----------
tests/plugins/test-plugin-pushsrc.cc | 10 ++--
tests/plugins/test-plugin-register.cc | 24 ++++++------
tests/regression/test-regression-bininpipeline.cc | 14 +++---
tests/regression/test-regression-binplugin.cc | 16 ++++----
tests/regression/test-regression-rewritefile.cc | 6 +-
tests/regression/test-regression-seekonstartup.cc | 18 ++++----
tests/regression/test-regression-videoduration.cc | 12 +++---
tests/test-allocator.cc | 30 +++++++-------
tests/test-atomicqueue.cc | 4 +-
tests/test-bin.cc | 30 +++++++-------
tests/test-buffer.cc | 14 +++---
tests/test-bufferlist.cc | 6 +-
tests/test-bus.cc | 10 ++--
tests/test-caps.cc | 12 +++---
tests/test-capsfeatures.cc | 2 +-
tests/test-element.cc | 12 +++---
tests/test-ghostpad.cc | 6 +-
tests/test-init.cc | 4 +-
tests/test-memory.cc | 2 +-
tests/test-message.cc | 2 +-
tests/test-miniobject.cc | 2 +-
tests/test-pad.cc | 8 ++--
tests/test-pipeline.cc | 2 +-
tests/test-query.cc | 14 +++---
tests/test-sample.cc | 4 +-
tests/test-structure.cc | 4 +-
tests/test-taglist.cc | 4 +-
tests/test-urihandler.cc | 2 +-
tests/test-value.cc | 2 +-
37 files changed, 238 insertions(+), 229 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e403d4e..fb2388c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -532,7 +532,7 @@ gst-plugins-bad/gstreamermm-plugins-bad/wrap_init.cc
gst-plugins-bad/gstreamermm-*.pc
#tests/ gtest files
-tests/gtest.zip
+tests/release-1.7.0.zip
tests/gtest
#tests/
diff --git a/tests/Makefile.am b/tests/Makefile.am
index fca1aa1..80e08d7 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -15,8 +15,8 @@
gstreamermm_includes = -I$(top_builddir)/gstreamer $(if $(srcdir:.=),-I$(top_srcdir)/gstreamer)
local_libgstreamermm = $(top_builddir)/gstreamer/gstreamermm/libgstreamermm-$(GSTREAMERMM_API_VERSION).la
-gtest_includes = -I$(srcdir)/gtest/gtest-1.7.0 -I$(srcdir)/gtest/gtest-1.7.0/include
-AM_CPPFLAGS = -I$(top_builddir) $(gstreamermm_includes) $(gtest_includes) $(GSTREAMERMM_CFLAGS) -std=c++0x
-Wall -Werror -Wextra
+gtest_includes = -I$(srcdir)/gtest/googletest-release-1.7.0
-I$(srcdir)/gtest/googletest-release-1.7.0/include
+AM_CPPFLAGS = -I$(top_builddir) -I$(srcdir) $(gstreamermm_includes) $(gtest_includes) $(GSTREAMERMM_CFLAGS)
-std=c++0x -Wall -Werror -Wextra
AM_CXXFLAGS = $(GSTREAMERMM_WXXFLAGS) -g -Wno-missing-field-initializers
LDADD = $(GSTREAMERMM_LIBS) $(local_libgstreamermm) -lpthread
@@ -62,10 +62,10 @@ check_PROGRAMS = \
# Include run of test programs in check:
TESTS = $(check_PROGRAMS)
-TEST_GTEST_SOURCES = main.cc gtest/gtest-1.7.0/src/gtest-all.cc
+TEST_GTEST_SOURCES = main.cc gtest/googletest-release-1.7.0/src/gtest-all.cc
TEST_REGRESSION_UTILS = regression/utils.cc
-$(TEST_GTEST_SOURCES): gtest.zip
+$(TEST_GTEST_SOURCES): release-1.7.0.zip
test_allocator_SOURCES = $(TEST_GTEST_SOURCES) test-allocator.cc
test_atomicqueue_SOURCES = $(TEST_GTEST_SOURCES) test-atomicqueue.cc
@@ -107,9 +107,9 @@ test_regression_videoduration_SOURCES = $(TEST_GTEST_SOURCES) $(TEST_R
download_curl = $(CURL) --compressed --connect-timeout 300 -g -L -m 3600 -R --retry 5 \
$(if $(wildcard $@),-z $@) -o $@
download_wget = $(WGET) -N -nd -T 300 -t 5 -P $(dir $@)
-gtest_url = https://googletest.googlecode.com/files/gtest-1.7.0.zip
+gtest_url = https://github.com/google/googletest/archive/release-1.7.0.zip
-gtest.zip:
+release-1.7.0.zip:
$(AM_V_GEN)$(if $(filter no,$(ENABLE_UNITTESTS)),\
echo 'Error: $@ does not exist.';\
echo 'Unit tests are disabled.';\
@@ -118,9 +118,9 @@ gtest.zip:
$(if\
$(CURL),$(download_curl) '$(gtest_url)',$(if\
$(WGET),$(download_wget) '$(gtest_url)',test -f $@))); \
- $(AM_V_GEN)unzip -nq -d gtest gtest.zip
+ $(AM_V_GEN)unzip -nq -d gtest release-1.7.0.zip
check_DATA = gtest
-CLEANFILES = gtest.zip
+CLEANFILES = release-1.7.0.zip
clean-local:
rm -rf gtest
diff --git a/tests/mmtest.h b/tests/mmtest.h
new file mode 100644
index 0000000..09e1cee
--- /dev/null
+++ b/tests/mmtest.h
@@ -0,0 +1,9 @@
+#ifndef _MM_TEST_H_
+#define _MM_TEST_H_
+
+#include <gtest/gtest.h>
+
+#define MM_ASSERT_TRUE(condition) ASSERT_TRUE(!!(condition))
+#define MM_ASSERT_FALSE(condition) ASSERT_FALSE(!!(condition))
+
+#endif
diff --git a/tests/plugins/test-plugin-appsink.cc b/tests/plugins/test-plugin-appsink.cc
index da3f459..34c97bf 100644
--- a/tests/plugins/test-plugin-appsink.cc
+++ b/tests/plugins/test-plugin-appsink.cc
@@ -5,7 +5,7 @@
* Author: loganek
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <gstreamermm/appsink.h>
#include <gstreamermm/appsrc.h>
@@ -27,8 +27,8 @@ protected:
sink = ElementFactory::create_element("appsink", "sink");
source = ElementFactory::create_element("appsrc", "source");
- ASSERT_TRUE(sink);
- ASSERT_TRUE(source);
+ MM_ASSERT_TRUE(sink);
+ MM_ASSERT_TRUE(source);
ASSERT_NO_THROW(pipeline->add(source)->add(sink));
ASSERT_NO_THROW(source->link(sink));
@@ -38,13 +38,13 @@ protected:
TEST_F(AppSinkPluginTest, CorrectCreatedAppSinkElement)
{
RefPtr<AppSink> source = AppSink::create("sink");
- ASSERT_TRUE(source);
+ MM_ASSERT_TRUE(source);
RefPtr<Element> source_element = ElementFactory::create_element("appsink", "source");
- ASSERT_TRUE(source_element);
+ MM_ASSERT_TRUE(source_element);
source = source.cast_dynamic(source_element);
- ASSERT_TRUE(source);
+ MM_ASSERT_TRUE(source);
}
TEST_F(AppSinkPluginTest, CreatePipelineWithAppsink)
@@ -58,15 +58,15 @@ TEST_F(AppSinkPluginTest, SinkPadQueryCapsShouldReturnProperCapsObjects)
RefPtr<BaseSink> basesink;
basesink = basesink.cast_dynamic(sink);
- ASSERT_TRUE(basesink);
+ MM_ASSERT_TRUE(basesink);
RefPtr<Pad> sink_pad = basesink->get_sink_pad();
- ASSERT_TRUE(sink_pad);
- ASSERT_TRUE(GST_IS_PAD(sink_pad->gobj()));
+ MM_ASSERT_TRUE(sink_pad);
+ MM_ASSERT_TRUE(GST_IS_PAD(sink_pad->gobj()));
RefPtr<Caps> caps = sink_pad->query_caps(Caps::create_any());
- ASSERT_TRUE(caps);
- ASSERT_TRUE(caps->gobj());
- ASSERT_TRUE(GST_IS_CAPS(caps->gobj()));
+ MM_ASSERT_TRUE(caps);
+ MM_ASSERT_TRUE(caps->gobj());
+ MM_ASSERT_TRUE(GST_IS_CAPS(caps->gobj()));
RefPtr<Caps> template_caps = Glib::wrap(gst_pad_get_pad_template_caps(sink_pad->gobj()), false);
sink_pad.reset();
@@ -97,9 +97,9 @@ TEST_F(AppSinkPluginTest, UseAppSinkDuringDataFlowInPipeline)
std::string data = "hello world";
RefPtr<Buffer> buf = Buffer::create(data.length() + 1);
- ASSERT_TRUE(buf);
+ MM_ASSERT_TRUE(buf);
MapInfo map_info;
- ASSERT_TRUE(buf->map(map_info, MAP_WRITE));
+ MM_ASSERT_TRUE(buf->map(map_info, MAP_WRITE));
strcpy((char *)map_info.get_data(), data.c_str());
buf->unmap(map_info);
@@ -107,16 +107,16 @@ TEST_F(AppSinkPluginTest, UseAppSinkDuringDataFlowInPipeline)
RefPtr<Buffer> buf_out;
RefPtr<Sample> sample = appsink->pull_sample();
- ASSERT_TRUE(sample);
+ MM_ASSERT_TRUE(sample);
buf_out = sample->get_buffer();
- ASSERT_TRUE(buf_out);
+ MM_ASSERT_TRUE(buf_out);
EXPECT_TRUE(buf_out->memcmp(0, data.c_str(), data.length()) == 0);
EXPECT_EQ(FLOW_OK, appsrc->end_of_stream());
RefPtr<Message> msg = pipeline->get_bus()->poll((MessageType)(MESSAGE_EOS | MESSAGE_ERROR) , 1*SECOND);
- ASSERT_TRUE(msg);
+ MM_ASSERT_TRUE(msg);
EXPECT_EQ(MESSAGE_EOS, msg->get_message_type());
EXPECT_EQ(STATE_CHANGE_SUCCESS, pipeline->set_state(STATE_NULL));
}
diff --git a/tests/plugins/test-plugin-appsrc.cc b/tests/plugins/test-plugin-appsrc.cc
index 36f509a..8adc4c3 100644
--- a/tests/plugins/test-plugin-appsrc.cc
+++ b/tests/plugins/test-plugin-appsrc.cc
@@ -5,7 +5,7 @@
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <gstreamermm/appsrc.h>
@@ -26,8 +26,8 @@ protected:
sink = ElementFactory::create_element("fakesink", "sink");
source = ElementFactory::create_element("appsrc", "source");
- ASSERT_TRUE(sink);
- ASSERT_TRUE(source);
+ MM_ASSERT_TRUE(sink);
+ MM_ASSERT_TRUE(source);
ASSERT_NO_THROW(pipeline->add(source)->add(sink));
ASSERT_NO_THROW(source->link(sink));
@@ -37,13 +37,13 @@ protected:
TEST_F(AppSrcPluginTest, CorrectCreatedAppSrcElement)
{
RefPtr<AppSrc> source = AppSrc::create("source");
- ASSERT_TRUE(source);
+ MM_ASSERT_TRUE(source);
RefPtr<Element> source_element = ElementFactory::create_element("appsrc", "source");
- ASSERT_TRUE(source_element);
+ MM_ASSERT_TRUE(source_element);
source = source.cast_dynamic(source_element);
- ASSERT_TRUE(source);
+ MM_ASSERT_TRUE(source);
}
TEST_F(AppSrcPluginTest, CreatePipelineWithAppSrcElement)
@@ -57,15 +57,15 @@ TEST_F(AppSrcPluginTest, SrcPadQueryCapsShouldReturnProperCapsObjects)
RefPtr<BaseSrc> basesrc;
basesrc = basesrc.cast_dynamic(source);
- ASSERT_TRUE(basesrc);
+ MM_ASSERT_TRUE(basesrc);
RefPtr<Pad> src_pad = basesrc->get_src_pad();
- ASSERT_TRUE(src_pad);
- ASSERT_TRUE(GST_IS_PAD(src_pad->gobj()));
+ MM_ASSERT_TRUE(src_pad);
+ MM_ASSERT_TRUE(GST_IS_PAD(src_pad->gobj()));
RefPtr<Caps> caps = src_pad->query_caps(Caps::create_any());
- ASSERT_TRUE(caps);
- ASSERT_TRUE(caps->gobj());
- ASSERT_TRUE(GST_IS_CAPS(caps->gobj()));
+ MM_ASSERT_TRUE(caps);
+ MM_ASSERT_TRUE(caps->gobj());
+ MM_ASSERT_TRUE(GST_IS_CAPS(caps->gobj()));
RefPtr<Caps> template_caps = Glib::wrap(gst_pad_get_pad_template_caps(src_pad->gobj()), false);
src_pad.reset();
@@ -93,14 +93,14 @@ TEST_F(AppSrcPluginTest, SimpleDataFlowInPipelineWithAppSrcElement)
std::string data = "hello world";
RefPtr<Buffer> buf = Buffer::create(data.length() + 1);
- ASSERT_TRUE(buf);
+ MM_ASSERT_TRUE(buf);
MapInfo mapinfo;
- ASSERT_TRUE(buf->map(mapinfo, MAP_WRITE));
+ MM_ASSERT_TRUE(buf->map(mapinfo, MAP_WRITE));
strcpy((char *)mapinfo.get_data(), data.c_str());
RefPtr<AppSrc> appsrc;
appsrc = appsrc.cast_dynamic(source);
- ASSERT_TRUE(appsrc);
+ MM_ASSERT_TRUE(appsrc);
EXPECT_EQ(FLOW_OK, appsrc->push_buffer(buf));
@@ -114,7 +114,7 @@ TEST_F(AppSrcPluginTest, SimpleDataFlowInPipelineWithAppSrcElement)
EXPECT_EQ(FLOW_OK, appsrc->end_of_stream());
RefPtr<Message> msg = pipeline->get_bus()->poll((MessageType)(MESSAGE_EOS | MESSAGE_ERROR) , 1*SECOND);
- ASSERT_TRUE(msg);
+ MM_ASSERT_TRUE(msg);
EXPECT_EQ(MESSAGE_EOS, msg->get_message_type());
EXPECT_EQ(STATE_CHANGE_SUCCESS, pipeline->set_state(STATE_NULL));
}
diff --git a/tests/plugins/test-plugin-derivedfromappsink.cc b/tests/plugins/test-plugin-derivedfromappsink.cc
index f014bb6..a6706af 100644
--- a/tests/plugins/test-plugin-derivedfromappsink.cc
+++ b/tests/plugins/test-plugin-derivedfromappsink.cc
@@ -1,4 +1,4 @@
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <gstreamermm/appsrc.h>
#include <gstreamermm/appsink.h>
@@ -22,8 +22,8 @@ protected:
sink = ElementFactory::create_element("derivedfromappsink", "sink");
source = ElementFactory::create_element("appsrc", "source");
- ASSERT_TRUE(sink);
- ASSERT_TRUE(source);
+ MM_ASSERT_TRUE(sink);
+ MM_ASSERT_TRUE(source);
ASSERT_NO_THROW(pipeline->add(source)->add(sink));
ASSERT_NO_THROW(source->link(sink));
@@ -42,7 +42,7 @@ TEST_F(DerivedFromAppSinkPluginTest, CreateRegisteredElement)
{
RefPtr<Element> sink_element = ElementFactory::create_element("derivedfromappsink", "source");
- ASSERT_TRUE(sink_element);
+ MM_ASSERT_TRUE(sink_element);
}
TEST_F(DerivedFromAppSinkPluginTest, CreatePipelineWithRegisteredElement)
@@ -56,15 +56,15 @@ TEST_F(DerivedFromAppSinkPluginTest, SinkPadQueryCapsShouldReturnProperCapsObjec
RefPtr<BaseSink> basesink;
basesink = basesink.cast_dynamic(sink);
- ASSERT_TRUE(basesink);
+ MM_ASSERT_TRUE(basesink);
RefPtr<Pad> sink_pad = basesink->get_sink_pad();
- ASSERT_TRUE(sink_pad);
- ASSERT_TRUE(GST_IS_PAD(sink_pad->gobj()));
+ MM_ASSERT_TRUE(sink_pad);
+ MM_ASSERT_TRUE(GST_IS_PAD(sink_pad->gobj()));
RefPtr<Caps> caps = sink_pad->query_caps(Caps::create_any());
- ASSERT_TRUE(caps);
- ASSERT_TRUE(caps->gobj());
- ASSERT_TRUE(GST_IS_CAPS(caps->gobj()));
+ MM_ASSERT_TRUE(caps);
+ MM_ASSERT_TRUE(caps->gobj());
+ MM_ASSERT_TRUE(GST_IS_CAPS(caps->gobj()));
RefPtr<Caps> template_caps = Glib::wrap(gst_pad_get_pad_template_caps(sink_pad->gobj()), false);
sink_pad.reset();
@@ -95,9 +95,9 @@ TEST_F(DerivedFromAppSinkPluginTest, UseAppSinkDuringDataFlowInPipeline)
std::string data = "hello world";
RefPtr<Buffer> buf = Buffer::create(data.length() + 1);
- ASSERT_TRUE(buf);
+ MM_ASSERT_TRUE(buf);
MapInfo map_info;
- ASSERT_TRUE(buf->map(map_info, MAP_WRITE));
+ MM_ASSERT_TRUE(buf->map(map_info, MAP_WRITE));
strcpy((char *)map_info.get_data(), data.c_str());
buf->unmap(map_info);
@@ -105,16 +105,16 @@ TEST_F(DerivedFromAppSinkPluginTest, UseAppSinkDuringDataFlowInPipeline)
RefPtr<Buffer> buf_out;
RefPtr<Sample> sample = appsink->pull_sample();
- ASSERT_TRUE(sample);
+ MM_ASSERT_TRUE(sample);
buf_out = sample->get_buffer();
- ASSERT_TRUE(buf_out);
+ MM_ASSERT_TRUE(buf_out);
EXPECT_TRUE(buf_out->memcmp(0, data.c_str(), data.length()) == 0);
EXPECT_EQ(FLOW_OK, appsrc->end_of_stream());
RefPtr<Message> msg = pipeline->get_bus()->poll((MessageType)(MESSAGE_EOS | MESSAGE_ERROR) , 1*SECOND);
- ASSERT_TRUE(msg);
+ MM_ASSERT_TRUE(msg);
EXPECT_EQ(MESSAGE_EOS, msg->get_message_type());
EXPECT_EQ(STATE_CHANGE_SUCCESS, pipeline->set_state(STATE_NULL));
}
diff --git a/tests/plugins/test-plugin-derivedfromappsrc.cc b/tests/plugins/test-plugin-derivedfromappsrc.cc
index 0de7f03..00fc159 100644
--- a/tests/plugins/test-plugin-derivedfromappsrc.cc
+++ b/tests/plugins/test-plugin-derivedfromappsrc.cc
@@ -1,4 +1,4 @@
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <gstreamermm/appsrc.h>
@@ -21,8 +21,8 @@ protected:
sink = ElementFactory::create_element("fakesink", "sink");
source = ElementFactory::create_element("derivedfromappsrc", "source");
- ASSERT_TRUE(sink);
- ASSERT_TRUE(source);
+ MM_ASSERT_TRUE(sink);
+ MM_ASSERT_TRUE(source);
ASSERT_NO_THROW(pipeline->add(source)->add(sink));
ASSERT_NO_THROW(source->link(sink));
@@ -41,7 +41,7 @@ TEST_F(DerivedFromAppSrcPluginTest, CreateRegisteredElement)
{
RefPtr<Element> source_element = ElementFactory::create_element("derivedfromappsrc", "source");
- ASSERT_TRUE(source_element);
+ MM_ASSERT_TRUE(source_element);
}
TEST_F(DerivedFromAppSrcPluginTest, CreatePipelineWithRegisteredElement)
@@ -55,15 +55,15 @@ TEST_F(DerivedFromAppSrcPluginTest, SrcPadQueryCapsShouldReturnProperCapsObjects
RefPtr<BaseSrc> basesrc;
basesrc = basesrc.cast_dynamic(source);
- ASSERT_TRUE(basesrc);
+ MM_ASSERT_TRUE(basesrc);
RefPtr<Pad> src_pad = basesrc->get_src_pad();
- ASSERT_TRUE(src_pad);
- ASSERT_TRUE(GST_IS_PAD(src_pad->gobj()));
+ MM_ASSERT_TRUE(src_pad);
+ MM_ASSERT_TRUE(GST_IS_PAD(src_pad->gobj()));
RefPtr<Caps> caps = src_pad->query_caps(Caps::create_any());
- ASSERT_TRUE(caps);
- ASSERT_TRUE(caps->gobj());
- ASSERT_TRUE(GST_IS_CAPS(caps->gobj()));
+ MM_ASSERT_TRUE(caps);
+ MM_ASSERT_TRUE(caps->gobj());
+ MM_ASSERT_TRUE(GST_IS_CAPS(caps->gobj()));
RefPtr<Caps> template_caps = Glib::wrap(gst_pad_get_pad_template_caps(src_pad->gobj()), false);
src_pad.reset();
@@ -91,14 +91,14 @@ TEST_F(DerivedFromAppSrcPluginTest, SimpleDataFlowInPipelineWithAppSrcElement)
std::string data = "hello world";
RefPtr<Buffer> buf = Buffer::create(data.length() + 1);
- ASSERT_TRUE(buf);
+ MM_ASSERT_TRUE(buf);
MapInfo mapinfo;
- ASSERT_TRUE(buf->map(mapinfo, MAP_WRITE));
+ MM_ASSERT_TRUE(buf->map(mapinfo, MAP_WRITE));
strcpy((char *)mapinfo.get_data(), data.c_str());
RefPtr<AppSrc> appsrc;
appsrc = appsrc.cast_dynamic(source);
- ASSERT_TRUE(appsrc);
+ MM_ASSERT_TRUE(appsrc);
EXPECT_EQ(FLOW_OK, appsrc->push_buffer(buf));
@@ -112,7 +112,7 @@ TEST_F(DerivedFromAppSrcPluginTest, SimpleDataFlowInPipelineWithAppSrcElement)
EXPECT_EQ(FLOW_OK, appsrc->end_of_stream());
RefPtr<Message> msg = pipeline->get_bus()->poll((MessageType)(MESSAGE_EOS | MESSAGE_ERROR) , 1*SECOND);
- ASSERT_TRUE(msg);
+ MM_ASSERT_TRUE(msg);
EXPECT_EQ(MESSAGE_EOS, msg->get_message_type());
EXPECT_EQ(STATE_CHANGE_SUCCESS, pipeline->set_state(STATE_NULL));
}
diff --git a/tests/plugins/test-plugin-derivedfrombasetransform.cc
b/tests/plugins/test-plugin-derivedfrombasetransform.cc
index 3778b9e..57b5df2 100644
--- a/tests/plugins/test-plugin-derivedfrombasetransform.cc
+++ b/tests/plugins/test-plugin-derivedfrombasetransform.cc
@@ -1,4 +1,4 @@
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <gstreamermm/appsink.h>
#include <gstreamermm/appsrc.h>
@@ -32,9 +32,9 @@ protected:
filter = ElementFactory::create_element("derivedfrombasetransform", "filter");
sink = AppSink::create("sink");
- ASSERT_TRUE(source);
- ASSERT_TRUE(filter);
- ASSERT_TRUE(sink);
+ MM_ASSERT_TRUE(source);
+ MM_ASSERT_TRUE(filter);
+ MM_ASSERT_TRUE(sink);
EXPECT_NO_THROW(pipeline->add(source)->add(filter)->add(sink));
EXPECT_NO_THROW(source->link(filter)->link(sink));
@@ -45,7 +45,7 @@ TEST_F(DerivedFromBaseTransformPluginTest, CreateRegisteredElement)
{
RefPtr<Element> filter_element = Gst::ElementFactory::create_element("derivedfrombasetransform", "filter");
- ASSERT_TRUE(filter_element);
+ MM_ASSERT_TRUE(filter_element);
}
TEST_F(DerivedFromBaseTransformPluginTest, CreatePipelineWithRegisteredElement)
@@ -58,28 +58,28 @@ TEST_F(DerivedFromBaseTransformPluginTest, VFuncsShouldReturnProperlyRefcountedG
bool plugin_registered = Plugin::register_static(GST_VERSION_MAJOR, GST_VERSION_MINOR,
"derivedfrombasetransform", "exemplary element C++-derived from Gst::BaseTransform",
sigc::ptr_fun(&DerivedFromBaseTransform::register_element), "0.123", "LGPL", "source?", "package?",
"http://example.com");
- ASSERT_TRUE(plugin_registered);
+ MM_ASSERT_TRUE(plugin_registered);
Glib::RefPtr<Gst::Element> element = Gst::ElementFactory::create_element("derivedfrombasetransform");
- ASSERT_TRUE(element);
+ MM_ASSERT_TRUE(element);
Glib::RefPtr<DerivedFromBaseTransform> derived_from_base_transform =
Glib::RefPtr<DerivedFromBaseTransform>::cast_dynamic(element);
- ASSERT_TRUE(derived_from_base_transform);
+ MM_ASSERT_TRUE(derived_from_base_transform);
{
Glib::RefPtr<Caps> caps = derived_from_base_transform->transform_caps_vfunc(PAD_SINK,
Caps::create_any(), Glib::RefPtr<Caps>());
- ASSERT_TRUE(caps);
- ASSERT_TRUE(caps->gobj());
- ASSERT_TRUE(GST_IS_CAPS(caps->gobj()));
+ MM_ASSERT_TRUE(caps);
+ MM_ASSERT_TRUE(caps->gobj());
+ MM_ASSERT_TRUE(GST_IS_CAPS(caps->gobj()));
ASSERT_EQ(1, caps->gobj()->mini_object.refcount);
}
{
GstBaseTransform *gobj = derived_from_base_transform->gobj();
Glib::RefPtr<Caps> caps = Glib::wrap(GST_BASE_TRANSFORM_GET_CLASS(gobj)->transform_caps(gobj,
GST_PAD_SINK, Glib::unwrap(Caps::create_any()), NULL));
- ASSERT_TRUE(caps);
- ASSERT_TRUE(caps->gobj());
- ASSERT_TRUE(GST_IS_CAPS(caps->gobj()));
+ MM_ASSERT_TRUE(caps);
+ MM_ASSERT_TRUE(caps->gobj());
+ MM_ASSERT_TRUE(GST_IS_CAPS(caps->gobj()));
ASSERT_EQ(1, caps->get_refcount());
}
}
@@ -92,10 +92,10 @@ TEST_F(DerivedFromBaseTransformPluginTest, CheckDataFlowThroughCreatedElement)
std::vector<guint8> data = {4, 5, 2, 7, 1};
RefPtr<Buffer> buf = Buffer::create(data.size());
- ASSERT_TRUE(buf);
+ MM_ASSERT_TRUE(buf);
Gst::MapInfo mapinfo;
- ASSERT_TRUE(buf->map(mapinfo, MAP_WRITE));
+ MM_ASSERT_TRUE(buf->map(mapinfo, MAP_WRITE));
std::copy(data.begin(), data.end(), mapinfo.get_data());
EXPECT_EQ(FLOW_OK, source->push_buffer(buf));
buf->unmap(mapinfo);
@@ -103,11 +103,11 @@ TEST_F(DerivedFromBaseTransformPluginTest, CheckDataFlowThroughCreatedElement)
RefPtr<Gst::Buffer> buf_out;
RefPtr<Gst::Sample> samp = sink->pull_preroll();
- ASSERT_TRUE(samp);
+ MM_ASSERT_TRUE(samp);
buf_out = samp->get_buffer();
- ASSERT_TRUE(buf_out->map(mapinfo, MAP_READ));
- ASSERT_TRUE(mapinfo.get_data());
- ASSERT_TRUE(std::equal(data.begin(), data.end(), mapinfo.get_data()));
+ MM_ASSERT_TRUE(buf_out->map(mapinfo, MAP_READ));
+ MM_ASSERT_TRUE(mapinfo.get_data());
+ MM_ASSERT_TRUE(std::equal(data.begin(), data.end(), mapinfo.get_data()));
buf_out->unmap(mapinfo);
EXPECT_EQ(FLOW_OK, source->end_of_stream());
diff --git a/tests/plugins/test-plugin-pushsrc.cc b/tests/plugins/test-plugin-pushsrc.cc
index 72ed09a..a207724 100644
--- a/tests/plugins/test-plugin-pushsrc.cc
+++ b/tests/plugins/test-plugin-pushsrc.cc
@@ -5,7 +5,7 @@
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <string>
#include <gstreamermm/appsink.h>
@@ -83,13 +83,13 @@ protected:
{
RefPtr<Pipeline> pipeline = Pipeline::create("my-pipeline");
- EXPECT_TRUE(pipeline);
+ EXPECT_TRUE(!!pipeline);
RefPtr<Element> source = ElementFactory::create_element("foosrcmm", "src");
RefPtr<AppSink> sink = AppSink::create("sink");
- EXPECT_TRUE(source);
- EXPECT_TRUE(sink);
+ EXPECT_TRUE(!!source);
+ EXPECT_TRUE(!!sink);
pipeline->add(source)->add(sink);
source->link(sink);
@@ -102,7 +102,7 @@ TEST_F(PushSrcPluginTest, CreateRegisteredElement)
{
Glib::RefPtr<Gst::Element> source = Gst::ElementFactory::create_element("foosrcmm", "src");
- ASSERT_TRUE(source);
+ MM_ASSERT_TRUE(source);
}
TEST_F(PushSrcPluginTest, DISABLED_CreatePipelineWithRegisteredElement)
diff --git a/tests/plugins/test-plugin-register.cc b/tests/plugins/test-plugin-register.cc
index 4445e45..a912dc2 100644
--- a/tests/plugins/test-plugin-register.cc
+++ b/tests/plugins/test-plugin-register.cc
@@ -5,7 +5,7 @@
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <gstreamermm/appsink.h>
#include <gstreamermm/appsrc.h>
@@ -38,9 +38,9 @@ protected:
filter = ElementFactory::create_element("foomm", "filter");
sink = AppSink::create("sink");
- ASSERT_TRUE(source);
- ASSERT_TRUE(filter);
- ASSERT_TRUE(sink);
+ MM_ASSERT_TRUE(source);
+ MM_ASSERT_TRUE(filter);
+ MM_ASSERT_TRUE(sink);
EXPECT_NO_THROW(pipeline->add(source)->add(filter)->add(sink));
EXPECT_NO_THROW(source->link(filter)->link(sink));
@@ -51,14 +51,14 @@ TEST_F(RegisterPluginTest, CreateRegisteredElement)
{
filter = Gst::ElementFactory::create_element("foomm", "filter");
- ASSERT_TRUE(filter);
+ MM_ASSERT_TRUE(filter);
}
TEST_F(RegisterPluginTest, CheckPropertyUsage)
{
filter = Gst::ElementFactory::create_element("foomm", "filter");
- ASSERT_TRUE(filter);
+ MM_ASSERT_TRUE(filter);
Glib::ustring property_value;
filter->get_property("sample_property", property_value);
@@ -83,10 +83,10 @@ TEST_F(RegisterPluginTest, CheckDataFlowThroughCreatedElement)
std::vector<guint8> data = {4, 5, 2, 7, 1};
RefPtr<Buffer> buf = Buffer::create(data.size());
- ASSERT_TRUE(buf);
+ MM_ASSERT_TRUE(buf);
Gst::MapInfo mapinfo;
- ASSERT_TRUE(buf->map(mapinfo, MAP_WRITE));
+ MM_ASSERT_TRUE(buf->map(mapinfo, MAP_WRITE));
std::copy(data.begin(), data.end(), mapinfo.get_data());
EXPECT_EQ(FLOW_OK, source->push_buffer(buf));
buf->unmap(mapinfo);
@@ -94,12 +94,12 @@ TEST_F(RegisterPluginTest, CheckDataFlowThroughCreatedElement)
RefPtr<Gst::Buffer> buf_out;
RefPtr<Gst::Sample> samp = sink->pull_preroll();
- ASSERT_TRUE(samp);
+ MM_ASSERT_TRUE(samp);
buf_out = samp->get_buffer();
- ASSERT_TRUE(buf_out->map(mapinfo, MAP_READ));
- ASSERT_TRUE(mapinfo.get_data());
+ MM_ASSERT_TRUE(buf_out->map(mapinfo, MAP_READ));
+ MM_ASSERT_TRUE(mapinfo.get_data());
std::sort(data.begin(), data.end());
- ASSERT_TRUE(std::equal(data.begin(), data.end(), mapinfo.get_data()));
+ MM_ASSERT_TRUE(std::equal(data.begin(), data.end(), mapinfo.get_data()));
buf_out->unmap(mapinfo);
EXPECT_EQ(FLOW_OK, source->end_of_stream());
diff --git a/tests/regression/test-regression-bininpipeline.cc
b/tests/regression/test-regression-bininpipeline.cc
index c6fadb6..71123bf 100644
--- a/tests/regression/test-regression-bininpipeline.cc
+++ b/tests/regression/test-regression-bininpipeline.cc
@@ -5,7 +5,7 @@
* Author: loganek
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <gstreamermm/filesrc.h>
#include <gstreamermm/filesink.h>
@@ -73,21 +73,21 @@ TEST(BinInPipelineRegressionTest, CustomBinShouldCorrectPassThroughImage)
output_jpg = "resources/test-regression-bininpipeline-output-image.jpg";
mainloop = Glib::MainLoop::create();
- ASSERT_TRUE(mainloop);
+ MM_ASSERT_TRUE(mainloop);
RefPtr<CustomBin> custom_bin = CustomBin::create("file-png-decoder");
- ASSERT_TRUE(custom_bin);
+ MM_ASSERT_TRUE(custom_bin);
RefPtr<Element> queue = ElementFactory::create_element("queue");
- ASSERT_TRUE(queue);
+ MM_ASSERT_TRUE(queue);
RefPtr<FileSink> file_sink = FileSink::create("file-sink");
- ASSERT_TRUE(file_sink);
+ MM_ASSERT_TRUE(file_sink);
RefPtr<Pipeline> pipeline = Pipeline::create("image-converter-pipeline");
- ASSERT_TRUE(custom_bin);
+ MM_ASSERT_TRUE(custom_bin);
ASSERT_NO_THROW(pipeline->add(custom_bin)->add(queue)->add(file_sink));
ASSERT_NO_THROW(custom_bin->link(queue)->link(file_sink));
Glib::RefPtr<Gst::Bus> bus = pipeline->get_bus();
- ASSERT_TRUE(bus);
+ MM_ASSERT_TRUE(bus);
bus->add_watch(sigc::ptr_fun(&on_bus_message));
custom_bin->set_location(input_png);
diff --git a/tests/regression/test-regression-binplugin.cc b/tests/regression/test-regression-binplugin.cc
index 160dfd7..117ef88 100644
--- a/tests/regression/test-regression-binplugin.cc
+++ b/tests/regression/test-regression-binplugin.cc
@@ -5,7 +5,7 @@
* Author: loganek
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <glibmm.h>
@@ -43,21 +43,21 @@ TEST(BinPluginRegressionTest, DISABLED_ShouldDecodeAndEncodeFile)
output_jpg = "resources/test-regression-binplugin-output-image.jpg";
mainloop = Glib::MainLoop::create();
- ASSERT_TRUE(mainloop);
+ MM_ASSERT_TRUE(mainloop);
RefPtr<Element> pluginbin = Gst::ElementFactory::create_element("pluginbin", "sample-pluginbin");
- ASSERT_TRUE(pluginbin);
+ MM_ASSERT_TRUE(pluginbin);
RefPtr<Element> jpg_encoder = ElementFactory::create_element("queue");
- ASSERT_TRUE(jpg_encoder);
+ MM_ASSERT_TRUE(jpg_encoder);
RefPtr<FileSink> file_sink = FileSink::create("file-sink");
- ASSERT_TRUE(file_sink);
+ MM_ASSERT_TRUE(file_sink);
RefPtr<Pipeline> pipeline = Pipeline::create("image-converter-pipeline");
- ASSERT_TRUE(pipeline);
+ MM_ASSERT_TRUE(pipeline);
ASSERT_NO_THROW(pipeline->add(pluginbin)->add(jpg_encoder)->add(file_sink));
ASSERT_NO_THROW(pluginbin->link(jpg_encoder)->link(file_sink));
Glib::RefPtr<Gst::Bus> bus = pipeline->get_bus();
- ASSERT_TRUE(bus);
+ MM_ASSERT_TRUE(bus);
bus->add_watch(sigc::ptr_fun(&on_bus_message));
pluginbin->set_property("location", input_png);
@@ -70,5 +70,5 @@ TEST(BinPluginRegressionTest, DISABLED_ShouldDecodeAndEncodeFile)
struct stat st;
stat(output_jpg.c_str(), &st);
- ASSERT_TRUE( st.st_size > 0 ); // weak checking
+ MM_ASSERT_TRUE( st.st_size > 0 ); // weak checking
}
diff --git a/tests/regression/test-regression-rewritefile.cc b/tests/regression/test-regression-rewritefile.cc
index 72fff18..f8b551d 100644
--- a/tests/regression/test-regression-rewritefile.cc
+++ b/tests/regression/test-regression-rewritefile.cc
@@ -5,7 +5,7 @@
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <glibmm.h>
#include <cstdio>
@@ -42,14 +42,14 @@ TEST(RegressionRewriteFileTest, CreateAndRewriteFile)
Glib::RefPtr<Gst::Pipeline> pipeline;
RefPtr<FileSrc> filesrc = Gst::FileSrc::create();
- ASSERT_TRUE(filesrc);
+ MM_ASSERT_TRUE(filesrc);
filesrc->property_location() = input_filename;
mainloop = Glib::MainLoop::create();
pipeline = Gst::Pipeline::create("rewriter");
Glib::RefPtr<Gst::FileSink> filesink = Gst::FileSink::create();
- ASSERT_TRUE(filesink);
+ MM_ASSERT_TRUE(filesink);
filesink->property_location() = output_filename;
diff --git a/tests/regression/test-regression-seekonstartup.cc
b/tests/regression/test-regression-seekonstartup.cc
index f444639..9696c05 100644
--- a/tests/regression/test-regression-seekonstartup.cc
+++ b/tests/regression/test-regression-seekonstartup.cc
@@ -5,7 +5,7 @@
* Author: loganek
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <gstreamermm/fakesink.h>
#include <glibmm.h>
@@ -95,7 +95,7 @@ void on_pad_added(const RefPtr<Pad>& newPad)
PadLinkReturn ret = newPad->link(sink_pad);
- ASSERT_TRUE(PAD_LINK_OK == ret || PAD_LINK_WAS_LINKED == ret);
+ MM_ASSERT_TRUE(PAD_LINK_OK == ret || PAD_LINK_WAS_LINKED == ret);
}
void no_more_pads()
@@ -114,9 +114,9 @@ TEST(RegressionSeekOnStartupTest, SeekToPositionWhenPipelineStarts)
mainloop = Glib::MainLoop::create();
pipeline = Pipeline::create("seekonstartup-pipeline");
- ASSERT_TRUE(pipeline);
+ MM_ASSERT_TRUE(pipeline);
bus = pipeline->get_bus();
- ASSERT_TRUE(bus);
+ MM_ASSERT_TRUE(bus);
bus->add_watch(sigc::ptr_fun(&on_bus_message));
RefPtr<Element> src = ElementFactory::create_element("uridecodebin"),
@@ -124,10 +124,10 @@ TEST(RegressionSeekOnStartupTest, SeekToPositionWhenPipelineStarts)
vs = ElementFactory::create_element("videoscale"),
sink = ElementFactory::create_element("ximagesink");
- ASSERT_TRUE(src);
- ASSERT_TRUE(csp);
- ASSERT_TRUE(vs);
- ASSERT_TRUE(sink);
+ MM_ASSERT_TRUE(src);
+ MM_ASSERT_TRUE(csp);
+ MM_ASSERT_TRUE(vs);
+ MM_ASSERT_TRUE(sink);
ASSERT_NO_THROW(src->set_property("uri", URIHandler::filename_to_uri(input_filename)));
@@ -148,7 +148,7 @@ TEST(RegressionSeekOnStartupTest, SeekToPositionWhenPipelineStarts)
pipeline->set_state(Gst::STATE_NULL);
- ASSERT_TRUE(was_check);
+ MM_ASSERT_TRUE(was_check);
remove(input_filename.c_str());
}
diff --git a/tests/regression/test-regression-videoduration.cc
b/tests/regression/test-regression-videoduration.cc
index cb80483..e688810 100644
--- a/tests/regression/test-regression-videoduration.cc
+++ b/tests/regression/test-regression-videoduration.cc
@@ -5,7 +5,7 @@
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <gstreamermm/fakesink.h>
#include <glibmm.h>
@@ -40,7 +40,7 @@ void on_pad_added(const Glib::RefPtr<Gst::Pad>& newPad)
RefPtr<Gst::Pad> sinkPad = decoder->get_static_pad("sink");
PadLinkReturn ret = newPad->link(sinkPad);
- ASSERT_TRUE(PAD_LINK_OK == ret || PAD_LINK_WAS_LINKED == ret);
+ MM_ASSERT_TRUE(PAD_LINK_OK == ret || PAD_LINK_WAS_LINKED == ret);
}
@@ -64,7 +64,7 @@ TEST(RegressionVideodurationTest, CreateVideoAndCheckDuration)
GenerateSampleOggFile(10, input_filename);
RefPtr<FileSrc> filesrc = Gst::FileSrc::create();
- ASSERT_TRUE(filesrc);
+ MM_ASSERT_TRUE(filesrc);
filesrc->property_location() = input_filename;
@@ -73,9 +73,9 @@ TEST(RegressionVideodurationTest, CreateVideoAndCheckDuration)
RefPtr<Element> sink = ElementFactory::create_element("fakesink"),
demuxer = ElementFactory::create_element("oggdemux");
decoder = ElementFactory::create_element("theoradec");
- ASSERT_TRUE(sink);
- ASSERT_TRUE(demuxer);
- ASSERT_TRUE(decoder);
+ MM_ASSERT_TRUE(sink);
+ MM_ASSERT_TRUE(demuxer);
+ MM_ASSERT_TRUE(decoder);
RefPtr<Bus> bus = pipeline->get_bus();
bus->add_watch(sigc::ptr_fun(&on_bus_message));
diff --git a/tests/test-allocator.cc b/tests/test-allocator.cc
index ca21356..5543c3c 100644
--- a/tests/test-allocator.cc
+++ b/tests/test-allocator.cc
@@ -5,7 +5,7 @@
* Author: loganek
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
using namespace Gst;
@@ -14,7 +14,7 @@ TEST(AllocatorTest, ShouldFindSystemAllocator)
{
Glib::RefPtr<Allocator> allocator = Allocator::find(GST_ALLOCATOR_SYSMEM);
- ASSERT_TRUE(allocator);
+ MM_ASSERT_TRUE(allocator);
}
TEST(AllocatorTest, DefaultAllocatorTheSameAsSystemAllocator)
@@ -22,7 +22,7 @@ TEST(AllocatorTest, DefaultAllocatorTheSameAsSystemAllocator)
Glib::RefPtr<Allocator> allocator1 = Allocator::find(GST_ALLOCATOR_SYSMEM),
allocator2 = Allocator::get_default_allocator();
- ASSERT_TRUE(allocator1);
+ MM_ASSERT_TRUE(allocator1);
ASSERT_EQ(allocator1, allocator2);
}
@@ -35,7 +35,7 @@ TEST(AllocatorTest, ShouldCorrectAllocateMemory)
Glib::RefPtr<Allocator> allocator = Allocator::get_default_allocator();
Glib::RefPtr<Memory> mem = allocator->alloc(10, params);
- ASSERT_TRUE(mem);
+ MM_ASSERT_TRUE(mem);
EXPECT_EQ(10ul, mem->get_size());
EXPECT_EQ(7ul, mem->get_align());
EXPECT_TRUE(flags & mem->get_flags());
@@ -77,9 +77,9 @@ public:
TEST(AllocatorTest, DerivedFromAllocatorShouldReturnProperlyRefcountedWrappedGstMemory)
{
Glib::RefPtr<Allocator> allocator = DerivedFromAllocator::create();
- ASSERT_TRUE(allocator);
- ASSERT_TRUE(allocator->gobj());
- ASSERT_TRUE(GST_IS_ALLOCATOR(allocator->gobj()));
+ MM_ASSERT_TRUE(allocator);
+ MM_ASSERT_TRUE(allocator->gobj());
+ MM_ASSERT_TRUE(GST_IS_ALLOCATOR(allocator->gobj()));
AllocationParams params;
params.set_align(7);
@@ -87,9 +87,9 @@ TEST(AllocatorTest, DerivedFromAllocatorShouldReturnProperlyRefcountedWrappedGst
params.set_flags(flags);
Glib::RefPtr<Memory> mem = allocator->alloc(10, params);
- ASSERT_TRUE(mem);
- ASSERT_TRUE(mem->gobj());
- ASSERT_TRUE(GST_IS_MINI_OBJECT_TYPE(mem->gobj(), GST_TYPE_MEMORY));
+ MM_ASSERT_TRUE(mem);
+ MM_ASSERT_TRUE(mem->gobj());
+ MM_ASSERT_TRUE(GST_IS_MINI_OBJECT_TYPE(mem->gobj(), GST_TYPE_MEMORY));
ASSERT_EQ(1, mem->get_refcount());
EXPECT_EQ(10ul, mem->get_size());
EXPECT_EQ(7ul, mem->get_align());
@@ -101,9 +101,9 @@ TEST(AllocatorTest, DerivedFromAllocatorShouldReturnProperlyRefcountedWrappedGst
TEST(AllocatorTest, DerivedFromAllocatorShouldReturnProperlyRefcountedGstMemory)
{
Glib::RefPtr<Allocator> allocator = DerivedFromAllocator::create();
- ASSERT_TRUE(allocator);
- ASSERT_TRUE(allocator->gobj());
- ASSERT_TRUE(GST_IS_ALLOCATOR(allocator->gobj()));
+ MM_ASSERT_TRUE(allocator);
+ MM_ASSERT_TRUE(allocator->gobj());
+ MM_ASSERT_TRUE(GST_IS_ALLOCATOR(allocator->gobj()));
AllocationParams params;
params.set_align(7);
@@ -111,8 +111,8 @@ TEST(AllocatorTest, DerivedFromAllocatorShouldReturnProperlyRefcountedGstMemory)
params.set_flags(flags);
GstMemory *mem = gst_allocator_alloc(allocator->gobj(), 10, params.gobj());
- ASSERT_TRUE(mem);
- ASSERT_TRUE(GST_IS_MINI_OBJECT_TYPE(mem, GST_TYPE_MEMORY));
+ MM_ASSERT_TRUE(mem);
+ MM_ASSERT_TRUE(GST_IS_MINI_OBJECT_TYPE(mem, GST_TYPE_MEMORY));
ASSERT_EQ(1, mem->mini_object.refcount);
EXPECT_EQ(10ul, mem->size);
EXPECT_EQ(7ul, mem->align);
diff --git a/tests/test-atomicqueue.cc b/tests/test-atomicqueue.cc
index 067658f..7611fe8 100644
--- a/tests/test-atomicqueue.cc
+++ b/tests/test-atomicqueue.cc
@@ -5,7 +5,7 @@
* Author: loganek
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <string>
@@ -52,7 +52,7 @@ TEST(AtomicQueueTest, ShouldImitateGstAtomicQueueStructByGpointerAsTemplate)
int* new_data = static_cast<int*>(queue->pop());
GstElement* new_element = static_cast<GstElement*>(queue->pop());
ASSERT_EQ(*new_data, *data);
- ASSERT_TRUE(GST_IS_ELEMENT(element));
+ MM_ASSERT_TRUE(GST_IS_ELEMENT(element));
ASSERT_EQ(new_element, element);
EXPECT_STREQ("dummy-name", gst_element_get_name(new_element));
delete new_data;
diff --git a/tests/test-bin.cc b/tests/test-bin.cc
index 890369d..923ca09 100644
--- a/tests/test-bin.cc
+++ b/tests/test-bin.cc
@@ -5,7 +5,7 @@
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <string>
@@ -37,14 +37,14 @@ std::string BinTest::element_name = "source";
TEST_F(BinTest, ShouldCreateBinWithGivenName)
{
- ASSERT_TRUE(bin);
+ MM_ASSERT_TRUE(bin);
}
TEST_F(BinTest, ShouldCreateBinWithAutogeneratedName)
{
RefPtr<Bin> test_bin = Bin::create();
- ASSERT_TRUE(test_bin);
+ MM_ASSERT_TRUE(test_bin);
}
TEST_F(BinTest, ShouldThrowExceptionOnNullElementAdded)
@@ -59,7 +59,7 @@ TEST_F(BinTest, ShouldFindElementInBin)
AddElementToBin();
RefPtr<Element> source_copy = bin->get_element(element_name);
- ASSERT_TRUE(source_copy);
+ MM_ASSERT_TRUE(source_copy);
}
TEST_F(BinTest, ShouldntFindNonexistingElementInBin)
@@ -67,7 +67,7 @@ TEST_F(BinTest, ShouldntFindNonexistingElementInBin)
AddElementToBin();
RefPtr<Element> source_copy = bin->get_element("element-with-this-name-cannot-exists-in-bin");
- ASSERT_FALSE(source_copy);
+ MM_ASSERT_FALSE(source_copy);
}
TEST_F(BinTest, ShouldRemoveElementFromBin)
@@ -77,7 +77,7 @@ TEST_F(BinTest, ShouldRemoveElementFromBin)
bin->remove(source);
RefPtr<Element> source_copy = bin->get_element(element_name);
- ASSERT_FALSE(source_copy);
+ MM_ASSERT_FALSE(source_copy);
}
TEST_F(BinTest, ShouldFindElementRecursive)
@@ -87,7 +87,7 @@ TEST_F(BinTest, ShouldFindElementRecursive)
bin->add(bin_child);
RefPtr<Element> source = bin_child->get_element_recurse_up(element_name);
- ASSERT_TRUE(source);
+ MM_ASSERT_TRUE(source);
}
TEST_F(BinTest, AddTwoElementsWithTheSameName)
@@ -105,8 +105,8 @@ TEST_F(BinTest, ShouldFindUnlinkedPads)
RefPtr<Pad> pad_sink = bin->find_unlinked_pad(PAD_SINK);
RefPtr<Pad> pad_src = bin->find_unlinked_pad(PAD_SRC);
- ASSERT_TRUE(pad_sink);
- ASSERT_TRUE(pad_src);
+ MM_ASSERT_TRUE(pad_sink);
+ MM_ASSERT_TRUE(pad_src);
}
TEST_F(BinTest, ShouldNotFindUnlinkedPads)
@@ -119,8 +119,8 @@ TEST_F(BinTest, ShouldNotFindUnlinkedPads)
RefPtr<Pad> pad_sink = bin->find_unlinked_pad(PAD_SINK);
RefPtr<Pad> pad_src = bin->find_unlinked_pad(PAD_SRC);
- ASSERT_FALSE(pad_sink);
- ASSERT_FALSE(pad_src);
+ MM_ASSERT_FALSE(pad_sink);
+ MM_ASSERT_FALSE(pad_src);
}
TEST_F(BinTest, ShouldReturnCorrectQuantityOfChildren)
@@ -175,7 +175,7 @@ TEST_F(BinTest, ShouldCallOnElementAddedHandler)
call = true;
});
AddElementToBin();
- ASSERT_TRUE(call);
+ MM_ASSERT_TRUE(call);
}
TEST_F(BinTest, ShouldCallOnElementRemovedHandler)
@@ -187,7 +187,7 @@ TEST_F(BinTest, ShouldCallOnElementRemovedHandler)
});
bin->remove(e);
- ASSERT_TRUE(call);
+ MM_ASSERT_TRUE(call);
}
class OverrideBin : public Bin
@@ -216,7 +216,7 @@ TEST_F(BinTest, ShouldCorrectOverrideAddAndRemoveElementFunction)
OverrideBin bin;
RefPtr<Element> element = ElementFactory::create_element("tee");
bin.add(element);
- ASSERT_TRUE(bin.get_add_flag());
+ MM_ASSERT_TRUE(bin.get_add_flag());
bin.remove(element);
- ASSERT_TRUE(bin.get_remove_flag());
+ MM_ASSERT_TRUE(bin.get_remove_flag());
}
diff --git a/tests/test-buffer.cc b/tests/test-buffer.cc
index 374f7af..1ed18ab 100644
--- a/tests/test-buffer.cc
+++ b/tests/test-buffer.cc
@@ -5,7 +5,7 @@
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <glibmm/threads.h>
#include <gstreamermm/buffer.h>
@@ -54,7 +54,7 @@ TEST(BufferTest, ShouldInsertMemoryObjectAndResetItButAllowToMakeExplicityRef)
Glib::RefPtr<Buffer> buf = Buffer::create(10);
mem2 = mem;
buf->insert_memory(0, std::move(mem));
- ASSERT_FALSE(mem);
+ MM_ASSERT_FALSE(mem);
ASSERT_EQ(2, mem2->gobj()->mini_object.refcount); // two - one handled by mem2,
//and the second by memory stored in buffer
}
@@ -79,7 +79,7 @@ TEST(BufferTest, ShouldResetMemoryPointerButAllowIncreaseRefcount)
Glib::RefPtr<Buffer> buf = Buffer::create(10);
buf->replace_memory_range(0, -1, std::move(mem));
}
- ASSERT_FALSE(mem);
+ MM_ASSERT_FALSE(mem);
ASSERT_EQ(1, mem2->gobj()->mini_object.refcount);
}
@@ -128,21 +128,21 @@ TEST(BufferTest, CheckRefcountAppendBufferToBuffer)
Glib::RefPtr<Gst::Buffer> buf2 = Gst::Buffer::create(6);
Glib::RefPtr<Gst::Buffer> dummy = buf1;
Glib::RefPtr<Gst::Buffer> b = buf1->append(std::move(buf2));
- ASSERT_FALSE(buf2);
+ MM_ASSERT_FALSE(buf2);
ASSERT_EQ(2, buf1->get_refcount()); // dummy + buf1
ASSERT_EQ(1, b->get_refcount());
ASSERT_EQ(16u, b->get_size());
ASSERT_EQ(10u, buf1->get_size());
- ASSERT_FALSE(b == buf1);
+ MM_ASSERT_FALSE(b == buf1);
}
{ // buf1 writable
Glib::RefPtr<Gst::Buffer> buf2 = Gst::Buffer::create(6);
Glib::RefPtr<Gst::Buffer> b = buf1->append(std::move(buf2));
- ASSERT_FALSE(buf2);
+ MM_ASSERT_FALSE(buf2);
ASSERT_EQ(2, buf1->get_refcount()); // b + buf1
ASSERT_EQ(2, b->get_refcount());
ASSERT_EQ(16u, b->get_size());
- ASSERT_TRUE(b == buf1);
+ MM_ASSERT_TRUE(b == buf1);
}
}
diff --git a/tests/test-bufferlist.cc b/tests/test-bufferlist.cc
index 01b1272..9b701ef 100644
--- a/tests/test-bufferlist.cc
+++ b/tests/test-bufferlist.cc
@@ -5,7 +5,7 @@
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm/bufferlist.h>
#include <gstreamermm/buffer.h>
@@ -17,7 +17,7 @@ TEST(BufferTest, BufferShouldBeReleasedAfterAddToAList)
Glib::RefPtr<Gst::Buffer> buff = Gst::Buffer::create();
Glib::RefPtr<Gst::Buffer> buff2 = buff;
list->insert(0, std::move(buff));
- ASSERT_FALSE(buff);
+ MM_ASSERT_FALSE(buff);
buff = list->get(0);
- ASSERT_TRUE(buff == buff2);
+ MM_ASSERT_TRUE(buff == buff2);
}
diff --git a/tests/test-bus.cc b/tests/test-bus.cc
index 712d34b..4f688fd 100644
--- a/tests/test-bus.cc
+++ b/tests/test-bus.cc
@@ -5,7 +5,7 @@
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
using namespace Gst;
@@ -19,7 +19,7 @@ protected:
void PostMessage()
{
bool message_posted = bus->post(MessageEos::create(Glib::RefPtr<Object>()));
- ASSERT_TRUE(message_posted);
+ MM_ASSERT_TRUE(message_posted);
}
void CheckPending(bool expected = true)
@@ -33,7 +33,7 @@ TEST_F(BusTest, CorrectCreateBus)
{
bus = Bus::create();
- ASSERT_TRUE(bus);
+ MM_ASSERT_TRUE(bus);
}
TEST_F(BusTest, PostMessageAndPeekIt)
@@ -45,7 +45,7 @@ TEST_F(BusTest, PostMessageAndPeekIt)
Glib::RefPtr<Message> msg = bus->peek();
- ASSERT_TRUE(msg);
+ MM_ASSERT_TRUE(msg);
}
TEST_F(BusTest, PostMessageAndPopIt)
@@ -57,7 +57,7 @@ TEST_F(BusTest, PostMessageAndPopIt)
Glib::RefPtr<Message> msg = bus->pop();
- ASSERT_TRUE(msg);
+ MM_ASSERT_TRUE(msg);
CheckPending(false);
}
diff --git a/tests/test-caps.cc b/tests/test-caps.cc
index d2b6a1d..b70ea67 100644
--- a/tests/test-caps.cc
+++ b/tests/test-caps.cc
@@ -5,7 +5,7 @@
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
using namespace Gst;
@@ -35,7 +35,7 @@ protected:
T output;
bool ok = caps->get_structure(struct_id).get_field(field_name, output);
- ASSERT_TRUE(ok);
+ MM_ASSERT_TRUE(ok);
MakeAssert(expected, output);
}
};
@@ -47,7 +47,7 @@ TEST_F(CapsTest, CapsCreateSimple)
{
caps = Caps::create_simple("video/x-raw");
- ASSERT_TRUE(caps);
+ MM_ASSERT_TRUE(caps);
}
TEST_F(CapsTest, CapsCreateUsingStructure)
@@ -88,7 +88,7 @@ TEST_F(CapsTest, AppendCapsToCaps)
CheckCaps("width", width, 1);
CheckCaps("framerate", framerate);
- ASSERT_FALSE(new_caps);
+ MM_ASSERT_FALSE(new_caps);
}
TEST_F(CapsTest, GetNonExistingValue)
@@ -98,7 +98,7 @@ TEST_F(CapsTest, GetNonExistingValue)
int output;
bool ok = caps->get_structure(0).get_field("nonexisting-value", output);
- ASSERT_FALSE(ok);
+ MM_ASSERT_FALSE(ok);
}
TEST_F(CapsTest, SetCapsToElement)
@@ -119,7 +119,7 @@ TEST_F(CapsTest, MergeCaps)
Glib::RefPtr<Caps> tmp2 = Caps::create_from_string("video/x-raw, format=RGB");
tmp = tmp->merge(std::move(tmp2));
ASSERT_EQ(1, tmp->get_refcount());
- ASSERT_FALSE(tmp2);
+ MM_ASSERT_FALSE(tmp2);
}
TEST_F(CapsTest, CapsBoxedType)
diff --git a/tests/test-capsfeatures.cc b/tests/test-capsfeatures.cc
index 12b7d69..abe8575 100644
--- a/tests/test-capsfeatures.cc
+++ b/tests/test-capsfeatures.cc
@@ -5,7 +5,7 @@
* Author: mkolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
using namespace Gst;
diff --git a/tests/test-element.cc b/tests/test-element.cc
index 4d47b70..d3fc8d6 100644
--- a/tests/test-element.cc
+++ b/tests/test-element.cc
@@ -1,4 +1,4 @@
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <glibmm/threads.h>
#include <gstreamermm/identity.h>
#include <gstreamermm/iterator.h>
@@ -10,13 +10,13 @@ using namespace Glib;
TEST(ElementTest, PostMessageShouldProperlyRefcountGivenMessage)
{
RefPtr<Bus> bus = Bus::create();
- ASSERT_TRUE(bus);
+ MM_ASSERT_TRUE(bus);
RefPtr<Element> element = Identity::create();
- ASSERT_TRUE(element);
+ MM_ASSERT_TRUE(element);
element->set_bus(bus);
- ASSERT_TRUE(element->post_message(MessageStateDirty::create(element)));
+ MM_ASSERT_TRUE(element->post_message(MessageStateDirty::create(element)));
RefPtr<Message> msg = bus->pop();
- ASSERT_TRUE(msg);
- ASSERT_TRUE(GST_IS_MESSAGE(msg->gobj()));
+ MM_ASSERT_TRUE(msg);
+ MM_ASSERT_TRUE(GST_IS_MESSAGE(msg->gobj()));
ASSERT_EQ(1, msg->get_refcount());
}
diff --git a/tests/test-ghostpad.cc b/tests/test-ghostpad.cc
index 12315c5..792d05c 100644
--- a/tests/test-ghostpad.cc
+++ b/tests/test-ghostpad.cc
@@ -5,7 +5,7 @@
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
using namespace Gst;
@@ -17,7 +17,7 @@ TEST(GhostPadTest, CreatingGhostPad)
PadDirection direction = PAD_SINK;
RefPtr<GhostPad> ghost_pad = GhostPad::create(direction, pad_name);
- ASSERT_TRUE(ghost_pad);
+ MM_ASSERT_TRUE(ghost_pad);
ASSERT_EQ(direction, ghost_pad->get_direction());
ASSERT_STREQ(pad_name.c_str(), ghost_pad->get_name().c_str());
}
@@ -30,6 +30,6 @@ TEST(GhostPadTest, CreatingGhostPadFromTemplate)
RefPtr<GhostPad> ghost_pad = GhostPad::create(templ);
- ASSERT_TRUE(ghost_pad);
+ MM_ASSERT_TRUE(ghost_pad);
ASSERT_EQ(direction, ghost_pad->get_direction());
}
diff --git a/tests/test-init.cc b/tests/test-init.cc
index efbd085..6d35b8b 100644
--- a/tests/test-init.cc
+++ b/tests/test-init.cc
@@ -5,7 +5,7 @@
* Author: loganek
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <glibmm.h>
@@ -29,7 +29,7 @@ protected:
TEST(InitTest, ShouldValidInitializeAndDeinitialize)
{
init();
- ASSERT_TRUE(is_initialized());
+ MM_ASSERT_TRUE(is_initialized());
}
TEST(InitTest, ShouldReturnCorrectGstreamerVersion)
diff --git a/tests/test-memory.cc b/tests/test-memory.cc
index 6b394d9..dc502c0 100644
--- a/tests/test-memory.cc
+++ b/tests/test-memory.cc
@@ -4,7 +4,7 @@
* Created on: Feb 28, 2015
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
using namespace Gst;
diff --git a/tests/test-message.cc b/tests/test-message.cc
index c0efe40..884e39f 100644
--- a/tests/test-message.cc
+++ b/tests/test-message.cc
@@ -4,7 +4,7 @@
* Created on: Feb 27, 2015
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
using namespace Gst;
diff --git a/tests/test-miniobject.cc b/tests/test-miniobject.cc
index f6cb05c..039c634 100644
--- a/tests/test-miniobject.cc
+++ b/tests/test-miniobject.cc
@@ -5,7 +5,7 @@
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
using namespace Gst;
diff --git a/tests/test-pad.cc b/tests/test-pad.cc
index 53635fb..aa2590b 100644
--- a/tests/test-pad.cc
+++ b/tests/test-pad.cc
@@ -5,7 +5,7 @@
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
using namespace Gst;
@@ -20,7 +20,7 @@ protected:
void CheckPad()
{
- ASSERT_TRUE(pad);
+ MM_ASSERT_TRUE(pad);
EXPECT_EQ(pad_direction, pad->get_direction());
ASSERT_STREQ(pad_name.c_str(), pad->get_name().c_str());
}
@@ -67,7 +67,7 @@ TEST_F(PadTest, PadPushVerifyBufferRefcount)
ASSERT_EQ(1, buffer->get_refcount());
pad->push(std::move(buffer));
- ASSERT_FALSE(buffer);
+ MM_ASSERT_FALSE(buffer);
}
TEST_F(PadTest, PadEventDefault)
@@ -77,5 +77,5 @@ TEST_F(PadTest, PadEventDefault)
ASSERT_EQ(1, event->get_refcount());
pad->event_default(std::move(event));
- ASSERT_FALSE(event);
+ MM_ASSERT_FALSE(event);
}
diff --git a/tests/test-pipeline.cc b/tests/test-pipeline.cc
index 9e23ec9..065b4b8 100644
--- a/tests/test-pipeline.cc
+++ b/tests/test-pipeline.cc
@@ -5,7 +5,7 @@
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
using namespace Gst;
diff --git a/tests/test-query.cc b/tests/test-query.cc
index 43168d5..133bfa3 100644
--- a/tests/test-query.cc
+++ b/tests/test-query.cc
@@ -5,7 +5,7 @@
* Author: loganek
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <functional>
@@ -17,7 +17,7 @@ void CreatingQueryTest(std::function<RefPtr<QType>()> create_method, QueryType t
{
RefPtr<QType> query = create_method();
- ASSERT_TRUE(query);
+ MM_ASSERT_TRUE(query);
ASSERT_EQ(type, query->get_query_type());
}
@@ -26,12 +26,12 @@ void CreatingQueryTestStatic(std::function<RefPtr<Query>()> create_method, Query
{
RefPtr<Query> query = create_method();
- ASSERT_TRUE(query);
+ MM_ASSERT_TRUE(query);
ASSERT_EQ(type, query->get_query_type());
RefPtr<QType> query_position = RefPtr<QType>::cast_static(query);
- ASSERT_TRUE(query_position);
+ MM_ASSERT_TRUE(query_position);
}
TEST(QueryTest, CorrectCreatingQueryBuffering)
@@ -93,13 +93,13 @@ TEST(QueryTest, ShouldCastToAnotherQueryTypeWithoutAdditionalReference)
{
Glib::RefPtr<Gst::QueryUri> query_uri(static_cast<Gst::QueryUri*>(query.release()));
- ASSERT_FALSE(query);
+ MM_ASSERT_FALSE(query);
// QueryUri::set requires writable query object, so query object's refcount has to equal 1
- ASSERT_TRUE(query_uri->is_writable());
+ MM_ASSERT_TRUE(query_uri->is_writable());
query_uri->set(uri);
ASSERT_STREQ(uri.c_str(), query_uri->parse().c_str());
query = std::move(query_uri);
- ASSERT_FALSE(query_uri);
+ MM_ASSERT_FALSE(query_uri);
}
ASSERT_EQ(1, query->get_refcount());
}
diff --git a/tests/test-sample.cc b/tests/test-sample.cc
index a23efc8..967a5cd 100644
--- a/tests/test-sample.cc
+++ b/tests/test-sample.cc
@@ -1,4 +1,4 @@
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
using namespace Gst;
@@ -15,7 +15,7 @@ TEST(SampleTest, CheckGetCapsMethod)
{
auto tmp_caps = sample->get_caps();
ASSERT_EQ(3, caps->get_refcount());
- ASSERT_TRUE(tmp_caps->equals(caps));
+ MM_ASSERT_TRUE(tmp_caps->equals(caps));
}
ASSERT_EQ(2, caps->get_refcount());
diff --git a/tests/test-structure.cc b/tests/test-structure.cc
index 82fefc0..ad6e366 100644
--- a/tests/test-structure.cc
+++ b/tests/test-structure.cc
@@ -6,7 +6,7 @@
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
using namespace Gst;
@@ -75,7 +75,7 @@ TEST_F(StructureTest, GetSetInt64Variable)
{
structure.set_field<gint64>("int64", 123);
guint64 val;
- ASSERT_FALSE(structure.get_field<guint64>("int64", val));
+ MM_ASSERT_FALSE(structure.get_field<guint64>("int64", val));
}
TEST_F(StructureTest, GetSetIntegerVariable)
diff --git a/tests/test-taglist.cc b/tests/test-taglist.cc
index f076c67..0d29450 100644
--- a/tests/test-taglist.cc
+++ b/tests/test-taglist.cc
@@ -5,7 +5,7 @@
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
using namespace Gst;
@@ -80,5 +80,5 @@ TEST_F(TagListTest, GetNonExistingTag)
bool album_exists = tag_list.get(TAG_ALBUM, album);
- ASSERT_FALSE(album_exists);
+ MM_ASSERT_FALSE(album_exists);
}
diff --git a/tests/test-urihandler.cc b/tests/test-urihandler.cc
index 717ab09..49d4389 100644
--- a/tests/test-urihandler.cc
+++ b/tests/test-urihandler.cc
@@ -4,7 +4,7 @@
* Created on: May 16, 2014
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
#include <gstreamermm/private/element_p.h>
diff --git a/tests/test-value.cc b/tests/test-value.cc
index 696322f..edb2ee0 100644
--- a/tests/test-value.cc
+++ b/tests/test-value.cc
@@ -4,7 +4,7 @@
* Created on: Aug 27, 2016
* Author: m.kolny
*/
-#include <gtest/gtest.h>
+#include "mmtest.h"
#include <gstreamermm.h>
TEST(ValueTest, TestDefaultRangeValue)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]