[gnote] Fix tests
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix tests
- Date: Thu, 26 Dec 2019 19:43:47 +0000 (UTC)
commit 31b7041390637ccc730e6103013f0f379d7101de
Author: Aurimas Černius <aurisc4 gmail com>
Date: Thu Dec 26 21:43:16 2019 +0200
Fix tests
src/test/testsyncaddin.cpp | 4 ++--
src/test/testsyncaddin.hpp | 2 +-
src/test/testsyncmanager.cpp | 2 +-
src/test/testsyncmanager.hpp | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/test/testsyncaddin.cpp b/src/test/testsyncaddin.cpp
index 10f9cdd0..e176c468 100644
--- a/src/test/testsyncaddin.cpp
+++ b/src/test/testsyncaddin.cpp
@@ -29,9 +29,9 @@ SyncAddin::SyncAddin(const Glib::ustring & sync_path)
{
}
-gnote::sync::SyncServer::Ptr SyncAddin::create_sync_server()
+gnote::sync::SyncServer *SyncAddin::create_sync_server()
{
- return std::make_shared<gnote::sync::FileSystemSyncServer>(Gio::File::create_for_path(m_sync_path),
"test");
+ return new gnote::sync::FileSystemSyncServer(Gio::File::create_for_path(m_sync_path), "test");
}
void SyncAddin::post_sync_cleanup()
diff --git a/src/test/testsyncaddin.hpp b/src/test/testsyncaddin.hpp
index 69dc30e5..dee39de3 100644
--- a/src/test/testsyncaddin.hpp
+++ b/src/test/testsyncaddin.hpp
@@ -32,7 +32,7 @@ class SyncAddin
{
public:
SyncAddin(const Glib::ustring & sync_path);
- virtual gnote::sync::SyncServer::Ptr create_sync_server() override;
+ virtual gnote::sync::SyncServer *create_sync_server() override;
virtual void post_sync_cleanup() override;
virtual Gtk::Widget *create_preferences_control(EventHandler requiredPrefChanged) override;
virtual bool save_configuration(const sigc::slot<void, bool, Glib::ustring> & on_saved) override;
diff --git a/src/test/testsyncmanager.cpp b/src/test/testsyncmanager.cpp
index 5d34f53b..e4b65718 100644
--- a/src/test/testsyncmanager.cpp
+++ b/src/test/testsyncmanager.cpp
@@ -67,7 +67,7 @@ gnote::sync::SyncServiceAddin *SyncManager::get_configured_sync_service()
return get_sync_service_addin("");
}
-void SyncManager::delete_notes_in_main_thread(const gnote::sync::SyncServer::Ptr & server)
+void SyncManager::delete_notes_in_main_thread(gnote::sync::SyncServer & server)
{
delete_notes(server);
}
diff --git a/src/test/testsyncmanager.hpp b/src/test/testsyncmanager.hpp
index 6bfa622a..daf8fa66 100644
--- a/src/test/testsyncmanager.hpp
+++ b/src/test/testsyncmanager.hpp
@@ -38,7 +38,7 @@ public:
virtual bool synchronized_note_xml_matches(const Glib::ustring & noteXml1, const Glib::ustring & noteXml2)
override;
virtual gnote::sync::SyncServiceAddin *get_sync_service_addin(const Glib::ustring & sync_service_id)
override;
virtual gnote::sync::SyncServiceAddin *get_configured_sync_service() override;
- virtual void delete_notes_in_main_thread(const gnote::sync::SyncServer::Ptr & server) override;
+ virtual void delete_notes_in_main_thread(gnote::sync::SyncServer & server) override;
virtual void note_save(const gnote::Note::Ptr & note) override;
test::SyncClient & get_client(const Glib::ustring & manifest);
protected:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]