[gnome-keyring] egg: Add egg_tests_copy_scratch_file() method for fixture files



commit f63d9c0972b821fa48f357e391e6ca2e00a400a1
Author: Stef Walter <stefw gnome org>
Date:   Thu Mar 6 16:12:16 2014 +0100

    egg: Add egg_tests_copy_scratch_file() method for fixture files

 egg/egg-testing.c |    8 ++++----
 egg/egg-testing.h |    3 +++
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/egg/egg-testing.c b/egg/egg-testing.c
index 0fc72f8..0db594e 100644
--- a/egg/egg-testing.c
+++ b/egg/egg-testing.c
@@ -230,9 +230,9 @@ egg_tests_run_with_loop (void)
        return ret;
 }
 
-static void
-copy_scratch_file (const gchar *filename,
-                   const gchar *directory)
+void
+egg_tests_copy_scratch_file (const gchar *directory,
+                             const gchar *filename)
 {
        GError *error = NULL;
        gchar *basename;
@@ -273,7 +273,7 @@ egg_tests_create_scratch_directory (const gchar *file_to_copy,
        va_start (va, file_to_copy);
 
        while (file_to_copy != NULL) {
-               copy_scratch_file (file_to_copy, directory);
+               egg_tests_copy_scratch_file (directory, file_to_copy);
                file_to_copy = va_arg (va, const gchar *);
        }
 
diff --git a/egg/egg-testing.h b/egg/egg-testing.h
index 402e667..c51c7d0 100644
--- a/egg/egg-testing.h
+++ b/egg/egg-testing.h
@@ -59,6 +59,9 @@ gint       egg_tests_run_with_loop             (void);
 
 gint       egg_tests_run_in_thread_with_loop   (void);
 
+void       egg_tests_copy_scratch_file         (const gchar *directory,
+                                                const gchar *file_to_copy);
+
 gchar *    egg_tests_create_scratch_directory  (const gchar *file_to_copy,
                                                 ...) G_GNUC_NULL_TERMINATED;
 


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