diff options
author | Michael Catanzaro <mcatanzaro@gnome.org> | 2019-09-19 15:47:17 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@gnome.org> | 2019-09-19 16:04:04 -0500 |
commit | 50b6d00784fb66bc297016f1cad5998a8f2eadb3 (patch) | |
tree | 58afa3778aa9d55bd7bb57a6c45a95c33fb9d24f /tests | |
parent | 8e6a3b9f3f6b3127b967c1cfc70a7362e7fe929a (diff) | |
download | gnome-calendar-50b6d00784fb66bc297016f1cad5998a8f2eadb3.tar.gz |
manager: add GcalContext property
This improves access to the GcalContext inside GcalManager.
Also, remove test-manager since it only tests that gcal_manager_new()
returns non-NULL.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/meson.build | 1 | ||||
-rw-r--r-- | tests/test-manager.c | 47 |
2 files changed, 0 insertions, 48 deletions
diff --git a/tests/meson.build b/tests/meson.build index ec704dfd..c6510f1e 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -35,7 +35,6 @@ tests = [ 'server', 'discoverer', 'event', - 'manager', ] foreach test : tests diff --git a/tests/test-manager.c b/tests/test-manager.c deleted file mode 100644 index d97a16ab..00000000 --- a/tests/test-manager.c +++ /dev/null @@ -1,47 +0,0 @@ -/* test-manager.c - * - * Copyright (C) 2017 Georges Basile Stavracas Neto <georges.stavracas@gmail.com> - * - * 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 - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include <glib.h> - -#include "gcal-manager.h" - -/*********************************************************************************************************************/ - -static void -manager_new (void) -{ - g_autoptr (GcalManager) manager; - - manager = gcal_manager_new (); - - g_assert_nonnull (manager); -} - -/*********************************************************************************************************************/ - -gint -main (gint argc, - gchar *argv[]) -{ - g_test_init (&argc, &argv, NULL); - - g_test_add_func ("/manager/new", manager_new); - - return g_test_run (); -} - |