diff options
author | Martyn Russell <martyn@lanedo.com> | 2014-09-28 19:22:48 +0100 |
---|---|---|
committer | Martyn Russell <martyn@lanedo.com> | 2014-10-27 16:02:00 +0000 |
commit | 10695ecd1f74d7c12546c2d797c34fc4ff63c7ff (patch) | |
tree | 62df6a664116d48c776f85a741de6c0a4fad51a1 /tests/libtracker-common | |
parent | 6ccf4711a1cafee3457d478a27c9a5510fc40d1d (diff) | |
download | tracker-10695ecd1f74d7c12546c2d797c34fc4ff63c7ff.tar.gz |
libtracker-data: Moved internal API tracker_crc32() here from libtracker-common
It's only used in libtracker-data and libtracker-common isn't a public library
Diffstat (limited to 'tests/libtracker-common')
-rw-r--r-- | tests/libtracker-common/.gitignore | 3 | ||||
-rw-r--r-- | tests/libtracker-common/Makefile.am | 3 | ||||
-rw-r--r-- | tests/libtracker-common/tracker-crc32-test.c | 45 |
3 files changed, 1 insertions, 50 deletions
diff --git a/tests/libtracker-common/.gitignore b/tests/libtracker-common/.gitignore index f6a4ae954..0014f9c59 100644 --- a/tests/libtracker-common/.gitignore +++ b/tests/libtracker-common/.gitignore @@ -8,6 +8,5 @@ tracker-ontology tracker-thumbnailer tracker-type-utils tracker-utils -tracker-crc32-test tracker-date-time-test -tracker-media-art-test
\ No newline at end of file +tracker-media-art-test diff --git a/tests/libtracker-common/Makefile.am b/tests/libtracker-common/Makefile.am index 2907d84bf..68d6cbef2 100644 --- a/tests/libtracker-common/Makefile.am +++ b/tests/libtracker-common/Makefile.am @@ -8,7 +8,6 @@ test_programs = \ tracker-file-utils \ tracker-utils \ tracker-sched-test \ - tracker-crc32-test \ tracker-date-time-test AM_CPPFLAGS = \ @@ -36,8 +35,6 @@ tracker_utils_SOURCES = tracker-utils-test.c tracker_sched_test_SOURCES = tracker-sched-test.c -tracker_crc32_test_SOURCES = tracker-crc32-test.c - tracker_date_time_test_SOURCES = tracker-date-time-test.c EXTRA_DIST += non-utf8.txt diff --git a/tests/libtracker-common/tracker-crc32-test.c b/tests/libtracker-common/tracker-crc32-test.c deleted file mode 100644 index 43d94f512..000000000 --- a/tests/libtracker-common/tracker-crc32-test.c +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2011, Nokia <ivan.frade@nokia.com> - * - * This library 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 2 of the License, or (at your option) any later version. - * - * This library 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 library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ -#include <glib.h> -#include <glib-object.h> - -#include <libtracker-common/tracker-crc32.h> - -// Using http://crc32-checksum.waraxe.us/ to check the result -static void -test_crc32_calculate () -{ - guint32 result; - guint32 expected = 0x81F8B2A3; - - result = tracker_crc32 ("Who is Meego? Meego is dead, baby. Meego is dead", 48); - - g_assert_cmpint (expected, ==, result); -} - -gint -main (gint argc, gchar **argv) -{ - g_test_init (&argc, &argv, NULL); - - g_test_add_func ("/libtracker-common/crc32/calculate", - test_crc32_calculate); - - return g_test_run (); -} |