[gnome-logs/wip/test: 26/31] Updated gl-journal files



commit ead572cf19345531ad528e6521483c88f0093e1b
Author: Rashi Aswani <aswanirashi19 gmail com>
Date:   Fri Aug 21 21:52:01 2015 +0530

    Updated gl-journal files

 tests/gl-mock-journal.c |   10 ++++++++++
 tests/gl-mock-journal.h |    6 ++++++
 2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/tests/gl-mock-journal.c b/tests/gl-mock-journal.c
index b0870f1..b6f3fa6 100644
--- a/tests/gl-mock-journal.c
+++ b/tests/gl-mock-journal.c
@@ -18,6 +18,7 @@
  */
 
 #include "gl-mock-journal.h"
+#include "gl-util.h"
 
 #include <glib-unix.h>
 #include <gio/gio.h>
@@ -65,6 +66,15 @@ gl_mock_journal_error_quark (void)
     return g_quark_from_static_string ("gl-mock-journal-error-quark");
 }
 
+gchar *
+gl_mock_journal_get_current_boot_time (GlMockJournal *journal,
+                                  const gchar *boot_match)
+{
+    gchar *time;
+    time="01:00:00";
+    return time;
+}
+
 GArray *
 gl_mock_journal_get_boot_ids (GlMockJournal *journal)
 {
diff --git a/tests/gl-mock-journal.h b/tests/gl-mock-journal.h
index eff29ba..b476564 100644
--- a/tests/gl-mock-journal.h
+++ b/tests/gl-mock-journal.h
@@ -42,6 +42,8 @@
 #define gl_mock_journal_new(void) gl_journal_new(void)
 #define gl_mock_journal_set_matches gl_journal_set_matches
 #define gl_mock_journal_get_boot_ids(GlMockJournal) gl_journal_get_boot_ids(GlMockJournal)
+#define gl_mock_journal_get_current_boot_time gl_journal_get_current_boot_time
+
 G_BEGIN_DECLS
 
 /*
@@ -82,6 +84,8 @@ typedef struct
 {
     gchar *boot_match;
     guint64 realtime;
+    guint64 realtime_first;
+    guint64 realtime_last;
 } GlMockJournalBootID;
 
 #define GL_TYPE_MOCK_JOURNAL (gl_mock_journal_get_type ())
@@ -93,6 +97,8 @@ void gl_mock_journal_set_matches (GlMockJournal *journal, const gchar * const *m
 GArray * gl_mock_journal_get_boot_ids (GlMockJournal *journal);
 GlMockJournalEntry * gl_mock_journal_previous (GlMockJournal *journal);
 GlMockJournal * gl_mock_journal_new (void);
+gchar * gl_mock_journal_get_current_boot_time (GlMockJournal *journal,
+                                        const gchar *boot_match);
 
 guint64                 gl_mock_journal_entry_get_timestamp                  (GlMockJournalEntry *entry);
 const gchar *           gl_mock_journal_entry_get_message                    (GlMockJournalEntry *entry);


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