[gnote] Fix NoteManager tests
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix NoteManager tests
- Date: Sun, 22 Dec 2019 20:28:49 +0000 (UTC)
commit 2ac29838cc0f7eda938582a28b7ef2205f6fee23
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Dec 22 22:25:53 2019 +0200
Fix NoteManager tests
src/test/unit/notemanagerutests.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/test/unit/notemanagerutests.cpp b/src/test/unit/notemanagerutests.cpp
index d8ba4f79..63aca856 100644
--- a/src/test/unit/notemanagerutests.cpp
+++ b/src/test/unit/notemanagerutests.cpp
@@ -20,6 +20,7 @@
#include <UnitTest++/UnitTest++.h>
+#include "test/testgnote.hpp"
#include "test/testnotemanager.hpp"
@@ -31,7 +32,9 @@ SUITE(NoteManager)
char *notes_dir = g_mkdtemp(notes_dir_tmpl);
CHECK(notes_dir != NULL);
- test::NoteManager manager(notes_dir);
+ test::Gnote g;
+ test::NoteManager manager(notes_dir, g);
+ g.notebook_manager(&manager.notebook_manager());
manager.create();
manager.create();
gnote::NoteBase::Ptr test_note = manager.create("test note");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]