[cheese] Add basic CheeseEffect test
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Add basic CheeseEffect test
- Date: Sat, 24 Dec 2011 09:57:39 +0000 (UTC)
commit 70602ee8b6ec7dc279e1c666b9aaa5ee2dae0637
Author: David King <amigadave amigadave com>
Date: Sat Dec 24 10:54:45 2011 +0100
Add basic CheeseEffect test
tests/test-libcheese.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-libcheese.c b/tests/test-libcheese.c
index 592bc7c..619dd58 100644
--- a/tests/test-libcheese.c
+++ b/tests/test-libcheese.c
@@ -20,8 +20,26 @@
#include "cheese-config.h"
#include <glib/gi18n.h>
+#include "cheese-effect.h"
#include "cheese-fileutil.h"
+/* Test CheeseEffect */
+static void
+effect_create (void)
+{
+ CheeseEffect *effect;
+ static const gchar name[] = "No effect";
+ static const gchar desc[] = "identity";
+
+ effect = cheese_effect_new (name, desc);
+ g_assert (effect != NULL);
+
+ g_assert_cmpstr (name, ==, cheese_effect_get_name (effect));
+ g_assert_cmpstr (desc, ==, cheese_effect_get_pipeline_desc (effect));
+
+ g_object_unref (effect);
+}
+
/* Test CheeseFileUtil */
static void
fileutil_burst (void)
@@ -129,6 +147,8 @@ int main (int argc, gchar *argv[])
g_test_init (&argc, &argv, NULL);
+ g_test_add_func ("/libcheese/effect/create", effect_create);
+
if (g_test_slow ())
{
g_test_add_func ("/libcheese/fileutil/burst", fileutil_burst);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]