aboutsummaryrefslogtreecommitdiff
path: root/plugins/tests/test-helpers.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2019-07-13 23:00:29 +0200
committerAleksander Morgado <aleksander@aleksander.es>2019-09-09 12:24:43 +0200
commit141e69bc0078427dd2e92794593522606a23894f (patch)
treed08eced7996f4950ea68a1d61780ac097d3a35cd /plugins/tests/test-helpers.h
parentedac8c37e8a63b68ca3ae9cbf866682f5769c4a2 (diff)
plugins,tests: setup new helper utilities for tests
For now, including a handy method from the ublox tests that allows comparing arrays of bands that may not be sorted.
Diffstat (limited to 'plugins/tests/test-helpers.h')
-rw-r--r--plugins/tests/test-helpers.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/tests/test-helpers.h b/plugins/tests/test-helpers.h
new file mode 100644
index 00000000..f37d80e2
--- /dev/null
+++ b/plugins/tests/test-helpers.h
@@ -0,0 +1,26 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * 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 2 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:
+ *
+ * Copyright (C) 2019 Aleksander Morgado <aleksander@aleksander.es>
+ */
+
+#ifndef TEST_HELPERS_H
+#define TEST_HELPERS_H
+
+#include <glib.h>
+#include <libmm-glib.h>
+
+void mm_test_helpers_compare_bands (GArray *bands,
+ const MMModemBand *expected_bands,
+ guint n_expected_bands);
+
+#endif /* TEST_HELPERS_H */