[gnote] Fix tests
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix tests
- Date: Sat, 13 Apr 2019 12:56:19 +0000 (UTC)
commit e0be07d6caf2f1eb49b00f4c0904976fe17b18aa
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Apr 13 13:53:31 2019 +0300
Fix tests
src/test/testsyncclient.hpp | 2 +-
src/test/testsyncmanager.cpp | 4 ++--
src/test/unit/syncmanagerutests.cpp | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/test/testsyncclient.hpp b/src/test/testsyncclient.hpp
index 86736388..6a2a18cc 100644
--- a/src/test/testsyncclient.hpp
+++ b/src/test/testsyncclient.hpp
@@ -30,7 +30,7 @@ class SyncClient
: public gnote::sync::GnoteSyncClient
{
public:
- typedef shared_ptr<SyncClient> Ptr;
+ typedef std::shared_ptr<SyncClient> Ptr;
SyncClient(gnote::NoteManagerBase & manager);
diff --git a/src/test/testsyncmanager.cpp b/src/test/testsyncmanager.cpp
index 9cde00ae..257bbce9 100644
--- a/src/test/testsyncmanager.cpp
+++ b/src/test/testsyncmanager.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2017-2018 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
@@ -32,7 +32,7 @@ SyncManager::SyncManager(gnote::NoteManagerBase & manager, const Glib::ustring &
test::SyncClient::Ptr SyncManager::get_client(const Glib::ustring & manifest)
{
- SyncClient::Ptr client = dynamic_pointer_cast<SyncClient>(m_client);
+ SyncClient::Ptr client = std::dynamic_pointer_cast<SyncClient>(m_client);
client->set_manifest_path(manifest);
client->reparse();
return client;
diff --git a/src/test/unit/syncmanagerutests.cpp b/src/test/unit/syncmanagerutests.cpp
index 74651b4e..c305b40e 100644
--- a/src/test/unit/syncmanagerutests.cpp
+++ b/src/test/unit/syncmanagerutests.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2017,2018 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
@@ -120,7 +120,7 @@ SUITE(SyncManagerTests)
};
#define FIRST_SYNC(sync_manager, note_manager, manifest, client, ui) \
- test::SyncClient::Ptr client = dynamic_pointer_cast<test::SyncClient>(sync_manager->get_client(manifest));
\
+ test::SyncClient::Ptr client =
std::dynamic_pointer_cast<test::SyncClient>(sync_manager->get_client(manifest)); \
gnote::sync::SilentUI::Ptr ui = gnote::sync::SilentUI::create(*note_manager); \
sync_manager->perform_synchronization(ui);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]