~ubuntu-branches/ubuntu/saucy/gstreamer0.10/saucy

« back to all changes in this revision

Viewing changes to tests/check/gst/gstminiobject.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2011-12-11 18:52:12 UTC
  • mfrom: (32.1.14 experimental)
  • Revision ID: package-import@ubuntu.com-20111211185212-3k215ps4qtyz2qa5
Tags: 0.10.35.2-1
* New upstream pre-release:
  + debian/control.in:
    - Build-depend on GLib >= 2.24.
  + debian/patches/99_ltmain_as-needed.patch:
    - Refreshed to apply cleanly again.
  + debian/libgstreamer.symbols:
    - Update symbols file with new API.
* debian/rules:
  + Remove all dependency_libs from the .la files (Closes: #633319).
* debian/control.in:
  + Put GI package into section introspection.
* debian/compat,
  debian/control.in,
  debian/gir1.2-gstreamer.install,
  debian/libgstreamer-dev.install,
  debian/libgstreamer.install,
  debian/patches/79_multiarch-backwards-compat.patch,
  debian/patches/80_ia32-hack.patch,
  debian/rules:
  + Transition package to multi-arch (Closes: #647481).
    Patch taken from the Ubuntu package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
 
176
176
GST_END_TEST;
177
177
 
 
178
/* ======== weak ref test ======== */
 
179
 
 
180
static gboolean weak_ref_notify_succeeded = FALSE;
 
181
 
 
182
static void
 
183
on_weak_ref_notify (gpointer data, GstMiniObject * where_object_was)
 
184
{
 
185
  weak_ref_notify_succeeded = TRUE;
 
186
}
 
187
 
 
188
GST_START_TEST (test_weak_ref)
 
189
{
 
190
  GstBuffer *buffer;
 
191
 
 
192
  buffer = gst_buffer_new_and_alloc (4);
 
193
 
 
194
  gst_mini_object_weak_ref (GST_MINI_OBJECT (buffer), on_weak_ref_notify,
 
195
      &buffer);
 
196
 
 
197
  gst_buffer_unref (buffer);
 
198
 
 
199
  fail_unless (weak_ref_notify_succeeded,
 
200
      "No weak reference notification took place.");
 
201
}
 
202
 
 
203
GST_END_TEST;
 
204
 
178
205
/* ======== recycle test ======== */
179
206
 
180
207
static gint recycle_buffer_count = 10;
479
506
  tcase_add_test (tc_chain, test_make_writable);
480
507
  tcase_add_test (tc_chain, test_ref_threaded);
481
508
  tcase_add_test (tc_chain, test_unref_threaded);
 
509
  tcase_add_test (tc_chain, test_weak_ref);
482
510
  tcase_add_test (tc_chain, test_recycle_threaded);
483
511
  tcase_add_test (tc_chain, test_value_collection);
484
512
  tcase_add_test (tc_chain, test_dup_null_mini_object);