[gnome-photos/wip/rishi/unit-tests] tests: Test the Pipeline



commit d8ad05a6deb3f1747b32aecd3753add1ca35f429
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Nov 2 14:19:46 2018 +0100

    tests: Test the Pipeline
    
    https://gitlab.gnome.org/GNOME/gnome-photos/merge_requests/80

 tests/unit/Makefile.am                            |   21 +
 tests/unit/meson.build                            |    4 +
 tests/unit/photos-test-pipeline-edited-00.xml     |   57 +
 tests/unit/photos-test-pipeline-not-edited-00.xml |    3 +
 tests/unit/photos-test-pipeline.c                 | 1284 +++++++++++++++++++++
 5 files changed, 1369 insertions(+)
---
diff --git a/tests/unit/Makefile.am b/tests/unit/Makefile.am
index a1720f17..a08055b7 100644
--- a/tests/unit/Makefile.am
+++ b/tests/unit/Makefile.am
@@ -5,9 +5,30 @@ AM_TESTS_ENVIRONMENT += \
        $(NULL)
 
 dist_test_data = \
+       photos-test-pipeline-edited-00.xml \
+       photos-test-pipeline-not-edited-00.xml \
        $(NULL)
 
 test_programs = \
+       photos-test-pipeline \
+       $(NULL)
+
+photos_test_pipeline_CPPFLAGS = \
+       -DPACKAGE_TEST_DIR=\""${abs_srcdir}"\" \
+       $(GDK_PIXBUF_CFLAGS) \
+       $(GEGL_CFLAGS) \
+       $(GIO_CFLAGS) \
+       $(GLIB_CFLAGS) \
+       -I$(top_builddir)/src \
+       -I$(top_srcdir)/src \
+       $(NULL)
+
+photos_test_pipeline_LDADD = \
+       $(GDK_PIXBUF_LIBS) \
+       $(GEGL_LIBS) \
+       $(GIO_LIBS) \
+       $(GLIB_LIBS) \
+       $(top_builddir)/src/libgnome-photos.la \
        $(NULL)
 
 AM_CFLAGS = \
diff --git a/tests/unit/meson.build b/tests/unit/meson.build
index 97b2d1e5..a799055c 100644
--- a/tests/unit/meson.build
+++ b/tests/unit/meson.build
@@ -12,6 +12,10 @@ test_env.set('MALLOC_CHECK_', '2')
 test_env.set('MALLOC_PERTURB_', '@0@'.format(random_number % 256))
 
 tests = {
+  'photos-test-pipeline': {
+    'c_args': ['-DPACKAGE_TEST_DIR="@0@"'.format(meson.current_source_dir())],
+    'dependencies': [gdk_pixbuf_dep, gegl_dep, gio_dep, gio_unix_dep, glib_dep, libgnome_photos_dep]
+  },
 }
 
 foreach test_name, extra_args: tests
diff --git a/tests/unit/photos-test-pipeline-edited-00.xml b/tests/unit/photos-test-pipeline-edited-00.xml
new file mode 100644
index 00000000..0dba944e
--- /dev/null
+++ b/tests/unit/photos-test-pipeline-edited-00.xml
@@ -0,0 +1,57 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+  <node operation='gegl:brightness-contrast'>
+      <params>
+        <param name='contrast'>2</param>
+        <param name='brightness'>0</param>
+      </params>
+  </node>
+  <node operation='gegl:exposure'>
+      <params>
+        <param name='black-level'>0.1</param>
+        <param name='exposure'>3</param>
+      </params>
+  </node>
+  <node operation='gegl:unsharp-mask'>
+      <params>
+        <param name='std-dev'>3</param>
+        <param name='scale'>10</param>
+        <param name='threshold'>0</param>
+      </params>
+  </node>
+  <node operation='photos:magic-filter'>
+      <params>
+        <param name='preset'>1947</param>
+      </params>
+  </node>
+  <node operation='photos:saturation'>
+      <params>
+        <param name='scale'>2</param>
+      </params>
+  </node>
+  <node operation='gegl:shadows-highlights'>
+      <params>
+        <param name='shadows'>100</param>
+        <param name='highlights'>-100</param>
+        <param name='whitepoint'>0</param>
+        <param name='radius'>100</param>
+        <param name='compress'>50</param>
+        <param name='shadows-ccorrect'>100</param>
+        <param name='highlights-ccorrect'>50</param>
+      </params>
+  </node>
+  <node operation='gegl:noise-reduction'>
+      <params>
+        <param name='iterations'>16</param>
+      </params>
+  </node>
+  <node operation='gegl:crop'>
+      <params>
+        <param name='x'>120.52800000000001</param>
+        <param name='y'>185.77600000000004</param>
+        <param name='width'>199.584</param>
+        <param name='height'>308.44799999999998</param>
+        <param name='reset-origin'>false</param>
+      </params>
+  </node>
+</gegl>
diff --git a/tests/unit/photos-test-pipeline-not-edited-00.xml 
b/tests/unit/photos-test-pipeline-not-edited-00.xml
new file mode 100644
index 00000000..3e0d17e2
--- /dev/null
+++ b/tests/unit/photos-test-pipeline-not-edited-00.xml
@@ -0,0 +1,3 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gegl>
+</gegl>
diff --git a/tests/unit/photos-test-pipeline.c b/tests/unit/photos-test-pipeline.c
new file mode 100644
index 00000000..42776ab3
--- /dev/null
+++ b/tests/unit/photos-test-pipeline.c
@@ -0,0 +1,1284 @@
+/*
+ * Photos - access, organize and share your photos on GNOME
+ * Copyright © 2018 Red Hat, Inc.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+#include "config.h"
+
+#include <locale.h>
+
+#include <gegl.h>
+#include <gio/gio.h>
+#include <glib.h>
+
+#include "photos-debug.h"
+#include "photos-gegl.h"
+#include "photos-pipeline.h"
+
+
+typedef struct _PhotosTestPipelineFixture PhotosTestPipelineFixture;
+
+struct _PhotosTestPipelineFixture
+{
+  GMainContext *context;
+  GMainLoop *loop;
+};
+
+
+static gchar *
+photos_test_pipeline_filename_to_uri (const gchar *filename)
+{
+  g_autoptr (GFile) file = NULL;
+  g_autofree gchar *path_relative = NULL;
+  gchar *uri = NULL;
+
+  path_relative = g_test_build_filename (G_TEST_DIST, filename, NULL);
+  file = g_file_new_for_path (path_relative);
+  uri = g_file_get_uri (file);
+  return uri;
+}
+
+
+static void
+photos_test_pipeline_setup (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  fixture->context = g_main_context_new ();
+  g_main_context_push_thread_default (fixture->context);
+  fixture->loop = g_main_loop_new (fixture->context, FALSE);
+}
+
+
+static void
+photos_test_pipeline_teardown (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  g_main_context_pop_thread_default (fixture->context);
+  g_clear_pointer (&fixture->context, g_main_context_unref);
+  g_clear_pointer (&fixture->loop, g_main_loop_unref);
+}
+
+
+static void
+photos_test_pipeline_check_empty (PhotosPipeline *pipeline)
+{
+  g_autoptr (GSList) children = NULL;
+  GeglNode *graph;
+  GeglNode *input;
+  GeglNode *output;
+  GeglNode *previous;
+  gboolean is_edited;
+  const gchar *operation;
+  g_autofree gchar *previous_pad_name = NULL;
+  guint length;
+
+  g_assert_true (PHOTOS_IS_PIPELINE (pipeline));
+
+  graph = photos_pipeline_get_graph (pipeline);
+
+  input = gegl_node_get_input_proxy (graph, "input");
+  output = gegl_node_get_output_proxy (graph, "output");
+  previous = gegl_node_get_producer (output, "input", &previous_pad_name);
+  g_assert_true (previous == input);
+  g_assert_cmpstr (previous_pad_name, ==, "output");
+
+  children = gegl_node_get_children (graph);
+  length = g_slist_length (children);
+  g_assert_cmpuint (length, ==, 2);
+  operation = gegl_node_get_operation (GEGL_NODE (children->data));
+  g_assert_cmpstr (operation, ==, "gegl:nop");
+  operation = gegl_node_get_operation (GEGL_NODE (children->next->data));
+  g_assert_cmpstr (operation, ==, "gegl:nop");
+
+  is_edited = photos_pipeline_is_edited (pipeline);
+  g_assert_false (is_edited);
+}
+
+
+static void
+photos_test_pipeline_check_full (PhotosPipeline *pipeline)
+{
+  g_autoptr (GSList) children = NULL;
+  GeglNode *graph;
+  GeglNode *input;
+  GeglNode *output;
+  GeglNode *previous;
+  gboolean is_edited;
+  const gchar *operation;
+  g_autofree gchar *previous_pad_name = NULL;
+  guint length;
+
+  g_assert_true (PHOTOS_IS_PIPELINE (pipeline));
+
+  graph = photos_pipeline_get_graph (pipeline);
+
+  children = gegl_node_get_children (graph);
+  length = g_slist_length (children);
+  g_assert_cmpuint (length, ==, 10);
+
+  input = gegl_node_get_input_proxy (graph, "input");
+  output = gegl_node_get_output_proxy (graph, "output");
+
+  previous = gegl_node_get_producer (output, "input", &previous_pad_name);
+  g_assert_true (previous != input);
+  g_assert_cmpstr (previous_pad_name, ==, "output");
+
+  operation = gegl_node_get_operation (GEGL_NODE (previous));
+  g_assert_cmpstr (operation, ==, "gegl:brightness-contrast");
+
+  previous = gegl_node_get_producer (previous, "input", &previous_pad_name);
+  g_assert_true (previous != input);
+  g_assert_cmpstr (previous_pad_name, ==, "output");
+
+  operation = gegl_node_get_operation (GEGL_NODE (previous));
+  g_assert_cmpstr (operation, ==, "gegl:exposure");
+
+  previous = gegl_node_get_producer (previous, "input", &previous_pad_name);
+  g_assert_true (previous != input);
+  g_assert_cmpstr (previous_pad_name, ==, "output");
+
+  operation = gegl_node_get_operation (GEGL_NODE (previous));
+  g_assert_cmpstr (operation, ==, "gegl:unsharp-mask");
+
+  previous = gegl_node_get_producer (previous, "input", &previous_pad_name);
+  g_assert_true (previous != input);
+  g_assert_cmpstr (previous_pad_name, ==, "output");
+
+  operation = gegl_node_get_operation (GEGL_NODE (previous));
+  g_assert_cmpstr (operation, ==, "photos:magic-filter");
+
+  previous = gegl_node_get_producer (previous, "input", &previous_pad_name);
+  g_assert_true (previous != input);
+  g_assert_cmpstr (previous_pad_name, ==, "output");
+
+  operation = gegl_node_get_operation (GEGL_NODE (previous));
+  g_assert_cmpstr (operation, ==, "photos:saturation");
+
+  previous = gegl_node_get_producer (previous, "input", &previous_pad_name);
+  g_assert_true (previous != input);
+  g_assert_cmpstr (previous_pad_name, ==, "output");
+
+  operation = gegl_node_get_operation (GEGL_NODE (previous));
+  g_assert_cmpstr (operation, ==, "gegl:shadows-highlights");
+
+  previous = gegl_node_get_producer (previous, "input", &previous_pad_name);
+  g_assert_true (previous != input);
+  g_assert_cmpstr (previous_pad_name, ==, "output");
+
+  operation = gegl_node_get_operation (GEGL_NODE (previous));
+  g_assert_cmpstr (operation, ==, "gegl:noise-reduction");
+
+  previous = gegl_node_get_producer (previous, "input", &previous_pad_name);
+  g_assert_true (previous != input);
+  g_assert_cmpstr (previous_pad_name, ==, "output");
+
+  operation = gegl_node_get_operation (GEGL_NODE (previous));
+  g_assert_cmpstr (operation, ==, "gegl:crop");
+
+  previous = gegl_node_get_producer (previous, "input", &previous_pad_name);
+  g_assert_true (previous == input);
+  g_assert_cmpstr (previous_pad_name, ==, "output");
+
+  is_edited = photos_pipeline_is_edited (pipeline);
+  g_assert_true (is_edited);
+}
+
+
+static void
+photos_test_pipeline_pipeline_new_async (GeglNode *parent,
+                                         const gchar *const *filenames,
+                                         GCancellable *cancellable,
+                                         GAsyncReadyCallback callback,
+                                         gpointer user_data)
+{
+  g_auto (GStrv) uris = NULL;
+  guint i;
+  guint length;
+
+  length = g_strv_length ((GStrv) filenames);
+  uris = (gchar **) g_malloc0_n (length + 1, sizeof (gchar *));
+  for (i = 0; filenames[i] != 0; i++)
+    {
+      if (g_str_has_prefix (filenames[i], "photos-test-pipeline"))
+        uris[i] = photos_test_pipeline_filename_to_uri (filenames[i]);
+      else if (g_str_has_prefix (filenames[i], "this"))
+        uris[i] = g_strconcat ("file:///", filenames[i], NULL);
+      else
+        uris[i] = g_strdup (filenames[i]);
+    }
+
+  photos_pipeline_new_async (parent, uris, cancellable, callback, user_data);
+}
+
+
+static void
+photos_test_pipeline_no_parent_blank_uris_0_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_blank_uris_0 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] = { NULL };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_blank_uris_0_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_blank_uris_1_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_blank_uris_1 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] = { NULL, "this-should-not-be-used", NULL };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_blank_uris_1_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_blank_uris_2_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_blank_uris_2 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] = { "", NULL };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_blank_uris_2_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_blank_uris_3_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_blank_uris_3 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] = { "", "this-should-not-be-used", NULL };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_blank_uris_3_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_null_uris_new (GObject *source_object, GAsyncResult *res, gpointer user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_null_uris (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  photos_pipeline_new_async (NULL, NULL, NULL, photos_test_pipeline_no_parent_null_uris_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_0_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_0 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const filenames[] = { "photos-test-pipeline-not-edited-00.xml", NULL };
+
+  photos_test_pipeline_pipeline_new_async (NULL,
+                                           filenames,
+                                           NULL,
+                                           photos_test_pipeline_no_parent_with_uris_0_new,
+                                           fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_1_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_1 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const filenames[] =
+    {
+      "photos-test-pipeline-not-edited-00.xml",
+      "photos-test-pipeline-edited-00.xml",
+      NULL
+    };
+
+  photos_test_pipeline_pipeline_new_async (NULL,
+                                           filenames,
+                                           NULL,
+                                           photos_test_pipeline_no_parent_with_uris_1_new,
+                                           fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_2_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_2 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const filenames[] = { "photos-test-pipeline-not-edited-00.xml", "this-does-not-exist", NULL };
+
+  photos_test_pipeline_pipeline_new_async (NULL,
+                                           filenames,
+                                           NULL,
+                                           photos_test_pipeline_no_parent_with_uris_2_new,
+                                           fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_3_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_3 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] =
+    {
+      "file://" PACKAGE_TEST_DIR "/photos-test-pipeline-not-edited-00.xml",
+      "this-should-not-be-used",
+      NULL
+    };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_with_uris_3_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_4_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_full (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_4 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] = { "file://" PACKAGE_TEST_DIR "/photos-test-pipeline-edited-00.xml", NULL };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_with_uris_4_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_5_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_full (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_5 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] =
+    {
+      "file://" PACKAGE_TEST_DIR "/photos-test-pipeline-edited-00.xml",
+      "file://" PACKAGE_TEST_DIR "/photos-test-pipeline-not-edited-00.xml",
+      NULL
+    };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_with_uris_5_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_6_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_full (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_6 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] =
+    {
+      "file://" PACKAGE_TEST_DIR "/photos-test-pipeline-edited-00.xml",
+      "file:///this-does-not-exist",
+      NULL
+    };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_with_uris_6_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_7_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_full (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_7 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] =
+    {
+      "file://" PACKAGE_TEST_DIR "/photos-test-pipeline-edited-00.xml",
+      "this-should-not-be-used",
+      NULL
+    };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_with_uris_7_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_8_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_8 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] = { "file:///this-does-not-exist", NULL };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_with_uris_8_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_9_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_9 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] =
+    {
+      "file:///this-does-not-exist",
+      "file://" PACKAGE_TEST_DIR "/photos-test-pipeline-not-edited-00.xml",
+      NULL
+    };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_with_uris_9_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_10_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_full (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_10 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] =
+    {
+      "file:///this-does-not-exist",
+      "file://" PACKAGE_TEST_DIR "/photos-test-pipeline-edited-00.xml",
+      NULL
+    };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_with_uris_10_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_11_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_11 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] = { "file:///this-does-not-exist", "file:///this-does-not-exist-either", NULL };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_with_uris_11_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_12_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED);
+  }
+
+  g_assert_null (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_12 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] = { "file:///this-does-not-exist", "this-should-not-be-used", NULL };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_with_uris_12_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_13_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED);
+  }
+
+  g_assert_null (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_13 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] = { "this-should-not-be-used", NULL };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_with_uris_13_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_14_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED);
+  }
+
+  g_assert_null (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_14 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] =
+    {
+      "this-should-not-be-used",
+      "file://" PACKAGE_TEST_DIR "/photos-test-pipeline-not-edited-00.xml",
+      NULL
+    };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_with_uris_14_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_15_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED);
+  }
+
+  g_assert_null (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_15 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] =
+    {
+      "this-should-not-be-used",
+      "file://" PACKAGE_TEST_DIR "/photos-test-pipeline-edited-00.xml",
+      NULL
+    };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_with_uris_15_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_16_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED);
+  }
+
+  g_assert_null (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_16 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] = { "this-should-not-be-used", "file:///this-does-not-exist", NULL };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_with_uris_16_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_17_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED);
+  }
+
+  g_assert_null (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_no_parent_with_uris_17 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  const gchar *const uris[] = { "this-should-not-be-used", "this-should-not-be-used-either", NULL };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_no_parent_with_uris_17_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_with_parent_blank_uris_0_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_with_parent_blank_uris_0 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  g_autoptr (GeglNode) parent = NULL;
+  const gchar *const uris[] = { NULL };
+
+  parent = gegl_node_new ();
+  photos_pipeline_new_async (parent, uris, NULL, photos_test_pipeline_with_parent_blank_uris_0_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_with_parent_blank_uris_1_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_with_parent_blank_uris_1 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  g_autoptr (GeglNode) parent = NULL;
+  const gchar *const uris[] = { NULL, "this-should-not-be-used", NULL };
+
+  parent = gegl_node_new ();
+  photos_pipeline_new_async (parent, uris, NULL, photos_test_pipeline_with_parent_blank_uris_1_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_with_parent_blank_uris_2_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_with_parent_blank_uris_2 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  g_autoptr (GeglNode) parent = NULL;
+  const gchar *const uris[] = { "", NULL };
+
+  photos_pipeline_new_async (NULL, uris, NULL, photos_test_pipeline_with_parent_blank_uris_2_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_with_parent_blank_uris_3_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_with_parent_blank_uris_3 (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  g_autoptr (GeglNode) parent = NULL;
+  const gchar *const uris[] = { "", "this-should-not-be-used", NULL };
+
+  parent = gegl_node_new ();
+  photos_pipeline_new_async (parent, uris, NULL, photos_test_pipeline_with_parent_blank_uris_3_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_with_parent_null_uris_new (GObject *source_object, GAsyncResult *res, gpointer 
user_data)
+{
+  g_autoptr (PhotosPipeline) pipeline = NULL;
+  PhotosTestPipelineFixture *fixture = (PhotosTestPipelineFixture *) user_data;
+
+  {
+    g_autoptr (GError) error = NULL;
+
+    pipeline = photos_pipeline_new_finish (res, &error);
+    g_assert_no_error (error);
+  }
+
+  photos_test_pipeline_check_empty (pipeline);
+  g_main_loop_quit (fixture->loop);
+}
+
+
+static void
+photos_test_pipeline_with_parent_null_uris (PhotosTestPipelineFixture *fixture, gconstpointer user_data)
+{
+  g_autoptr (GeglNode) parent = NULL;
+
+  parent = gegl_node_new ();
+  photos_pipeline_new_async (parent, NULL, NULL, photos_test_pipeline_with_parent_null_uris_new, fixture);
+  g_main_loop_run (fixture->loop);
+}
+
+
+gint
+main (gint argc, gchar *argv[])
+{
+  gint exit_status;
+
+  setlocale (LC_ALL, "");
+  g_test_init (&argc, &argv, NULL);
+  photos_debug_init ();
+  photos_gegl_init ();
+  photos_gegl_ensure_builtins ();
+
+  g_test_add ("/pipeline/new/no-parent-blank-uris-0",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_blank_uris_0,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-blank-uris-1",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_blank_uris_1,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-blank-uris-2",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_blank_uris_2,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-blank-uris-3",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_blank_uris_3,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-null-uris",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_null_uris,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-0",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_0,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-1",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_1,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-2",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_2,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-3",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_3,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-4",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_4,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-5",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_5,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-6",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_6,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-7",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_7,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-8",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_8,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-9",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_9,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-10",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_10,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-11",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_11,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-12",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_12,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-13",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_13,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-14",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_14,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-15",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_15,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-16",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_16,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/no-parent-with-uris-17",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_no_parent_with_uris_17,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/with-parent-blank-uris-0",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_with_parent_blank_uris_0,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/with-parent-blank-uris-1",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_with_parent_blank_uris_1,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/with-parent-blank-uris-2",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_with_parent_blank_uris_2,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/with-parent-blank-uris-3",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_with_parent_blank_uris_3,
+              photos_test_pipeline_teardown);
+
+  g_test_add ("/pipeline/new/with-parent-null-uris",
+              PhotosTestPipelineFixture,
+              NULL,
+              photos_test_pipeline_setup,
+              photos_test_pipeline_with_parent_null_uris,
+              photos_test_pipeline_teardown);
+
+  exit_status = g_test_run ();
+
+  gegl_exit ();
+  return exit_status;
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]