summaryrefslogtreecommitdiff
path: root/src/libqmi-glib/test/test-generated.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-03-16 10:25:42 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-03-16 10:34:10 +0100
commitaea08947b6c268725f1409b8ab83bb5bcfd37441 (patch)
treec37ff44c1a36d6e5ba9ea4ae1026650e8ed529c1 /src/libqmi-glib/test/test-generated.c
parent59ce5fdc3b6b124c1ff6faed60a836e8f388d653 (diff)
libqmi-glib,test: reorder sources
Diffstat (limited to 'src/libqmi-glib/test/test-generated.c')
-rw-r--r--src/libqmi-glib/test/test-generated.c48
1 files changed, 26 insertions, 22 deletions
diff --git a/src/libqmi-glib/test/test-generated.c b/src/libqmi-glib/test/test-generated.c
index e312496..5bddca2 100644
--- a/src/libqmi-glib/test/test-generated.c
+++ b/src/libqmi-glib/test/test-generated.c
@@ -339,6 +339,7 @@ test_generated_dms_get_time (TestFixture *fixture)
/*****************************************************************************/
/* NAS Network Scan */
+
typedef struct {
guint16 mcc;
guint16 mnc;
@@ -522,28 +523,6 @@ nas_network_scan_ready (QmiClientNas *client,
}
static void
-nas_get_cell_location_info_ready (QmiClientNas *client,
- GAsyncResult *res,
- TestFixture *fixture)
-{
- QmiMessageNasGetCellLocationInfoOutput *output;
- GError *error = NULL;
- gboolean st;
-
- output = qmi_client_nas_get_cell_location_info_finish (client, res, &error);
- g_assert_no_error (error);
- g_assert (output);
-
- st = qmi_message_nas_get_cell_location_info_output_get_result (output, &error);
- g_assert_no_error (error);
- g_assert (st);
-
- qmi_message_nas_get_cell_location_info_output_unref (output);
-
- test_fixture_loop_stop (fixture);
-}
-
-static void
test_generated_nas_network_scan (TestFixture *fixture)
{
guint8 expected[] = {
@@ -608,6 +587,31 @@ test_generated_nas_network_scan (TestFixture *fixture)
test_fixture_loop_run (fixture);
}
+/*****************************************************************************/
+/* NAS Get Cell Location */
+
+static void
+nas_get_cell_location_info_ready (QmiClientNas *client,
+ GAsyncResult *res,
+ TestFixture *fixture)
+{
+ QmiMessageNasGetCellLocationInfoOutput *output;
+ GError *error = NULL;
+ gboolean st;
+
+ output = qmi_client_nas_get_cell_location_info_finish (client, res, &error);
+ g_assert_no_error (error);
+ g_assert (output);
+
+ st = qmi_message_nas_get_cell_location_info_output_get_result (output, &error);
+ g_assert_no_error (error);
+ g_assert (st);
+
+ qmi_message_nas_get_cell_location_info_output_unref (output);
+
+ test_fixture_loop_stop (fixture);
+}
+
static void
test_generated_nas_get_cell_location_info (TestFixture *fixture)
{