[gnote] Fix GnoteSyncClient tests
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix GnoteSyncClient tests
- Date: Sun, 22 Dec 2019 20:28:44 +0000 (UTC)
commit a621d7013c6b335aeb70904f37b40549f4526605
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Dec 22 22:25:29 2019 +0200
Fix GnoteSyncClient tests
src/test/unit/gnotesyncclientutests.cpp | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/test/unit/gnotesyncclientutests.cpp b/src/test/unit/gnotesyncclientutests.cpp
index cd48eb74..f33e1b38 100644
--- a/src/test/unit/gnotesyncclientutests.cpp
+++ b/src/test/unit/gnotesyncclientutests.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2017 Aurimas Cernius
+ * Copyright (C) 2017,2019 Aurimas Cernius
*
* 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
@@ -22,6 +22,7 @@
#include <UnitTest++/UnitTest++.h>
+#include "test/testgnote.hpp"
#include "test/testnotemanager.hpp"
#include "test/testsyncclient.hpp"
@@ -67,8 +68,9 @@ Glib::ustring create_manifest()
TEST(manifest_parsing)
{
Glib::ustring test_manifest = create_manifest();
-
- test::NoteManager manager(test::NoteManager::test_notes_dir());
+
+ test::Gnote g;
+ test::NoteManager manager(test::NoteManager::test_notes_dir(), g);
test::SyncClient client(manager);
client.set_manifest_path(test_manifest);
client.reparse();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]