1 /* GStreamer
2 * Copyright (C) 2011 Tim-Philipp Müller <tim centricular net>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20 #ifdef HAVE_CONFIG_H
21 #include <config.h>
22 #endif
23
24 #include <gst/gst.h>
25 #include <gst/check/gstcheck.h>
26
27 #include <gst/app/gstappsink.h>
28 #include <gst/app/gstappsrc.h>
29
30 #include <gst/audio/audio-enumtypes.h>
31 #include <gst/audio/audio.h>
32 #include <gst/audio/gstaudiocdsrc.h>
33 #include <gst/audio/gstaudioclock.h>
34 #include <gst/audio/gstaudiofilter.h>
35 #include <gst/audio/gstaudiosink.h>
36 #include <gst/audio/gstaudiosrc.h>
37 #include <gst/audio/gstaudiobasesink.h>
38 #include <gst/audio/gstaudiobasesrc.h>
39 #include <gst/audio/gstaudioringbuffer.h>
40 #include <gst/audio/streamvolume.h>
41
42 #include <gst/fft/gstfftf32.h>
43 #include <gst/fft/gstfftf64.h>
44 #include <gst/fft/gstfft.h>
45 #include <gst/fft/gstffts16.h>
46 #include <gst/fft/gstffts32.h>
47
48 #include <gst/pbutils/codec-utils.h>
49 #include <gst/pbutils/descriptions.h>
50 #include <gst/pbutils/encoding-profile.h>
51 #include <gst/pbutils/encoding-target.h>
52 #include <gst/pbutils/gstdiscoverer.h>
53 #include <gst/pbutils/gstpluginsbaseversion.h>
54 #include <gst/pbutils/install-plugins.h>
55 #include <gst/pbutils/missing-plugins.h>
56 #include <gst/pbutils/pbutils-enumtypes.h>
57 #include <gst/pbutils/pbutils.h>
58
59 #include <gst/riff/riff-ids.h>
60 #include <gst/riff/riff-media.h>
61 #include <gst/riff/riff-read.h>
62
63 #include <gst/rtp/gstrtpbaseaudiopayload.h>
64 #include <gst/rtp/gstrtpbasedepayload.h>
65 #include <gst/rtp/gstrtpbasepayload.h>
66 #include <gst/rtp/gstrtcpbuffer.h>
67 #include <gst/rtp/gstrtpbuffer.h>
68 #include <gst/rtp/gstrtppayloads.h>
69
70 #include <gst/rtsp/gstrtspconnection.h>
71 #include <gst/rtsp/gstrtspdefs.h>
72 #include <gst/rtsp/gstrtsp-enumtypes.h>
73 #include <gst/rtsp/gstrtspextension.h>
74 #include <gst/rtsp/gstrtsp.h>
75 #include <gst/rtsp/gstrtspmessage.h>
76 #include <gst/rtsp/gstrtsprange.h>
77 #include <gst/rtsp/gstrtsptransport.h>
78 #include <gst/rtsp/gstrtspurl.h>
79
80 #include <gst/sdp/gstsdp.h>
81 #include <gst/sdp/gstsdpmessage.h>
82 #include <gst/tag/gsttagdemux.h>
83
84 #include <gst/tag/tag.h>
85
86 #include <gst/video/gstvideofilter.h>
87 #include <gst/video/gstvideosink.h>
88 #include <gst/video/video-enumtypes.h>
89 #include <gst/video/video.h>
90 #include <gst/video/colorbalancechannel.h>
91 #include <gst/video/colorbalance.h>
92 #include <gst/video/videodirection.h>
93 #include <gst/video/videoorientation.h>
94 #include <gst/video/videooverlay.h>
95 #include <gst/video/navigation.h>
96
97 /* we mostly just want to make sure that our library headers don't
98 * contain anything a C++ compiler might not like */
GST_START_TEST(test_nothing)99 GST_START_TEST (test_nothing)
100 {
101 gst_init (NULL, NULL);
102 }
103
104 GST_END_TEST;
105
GST_START_TEST(test_init_macros)106 GST_START_TEST (test_init_macros)
107 {
108 GstRTCPBuffer rtcp = GST_RTCP_BUFFER_INIT;
109 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
110
111 fail_unless_equals_int (rtp.size[0], 0)
112 fail_unless_equals_int (rtcp.map.size, 0);
113 }
114
115 GST_END_TEST;
116
117 static Suite *
libscpp_suite(void)118 libscpp_suite (void)
119 {
120 Suite *s = suite_create ("GstLibsCpp");
121 TCase *tc_chain = tcase_create ("C++ libs header tests");
122
123 suite_add_tcase (s, tc_chain);
124 tcase_add_test (tc_chain, test_nothing);
125 tcase_add_test (tc_chain, test_init_macros);
126
127 return s;
128 }
129
130 GST_CHECK_MAIN (libscpp);
131