diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-03-16 10:25:42 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-03-16 11:58:20 +0100 |
commit | 1d84dcc221e54418699384f32a6fef2827e7f745 (patch) | |
tree | 6298c00face3a90fb0e502f946f94fd3c6826d3d | |
parent | 9aaa09a29edd1d29313a5efffa0f94ef6bafa1ca (diff) |
libqmi-glib,test: reorder sources
(cherry picked from commit aea08947b6c268725f1409b8ab83bb5bcfd37441)
-rw-r--r-- | src/libqmi-glib/test/test-generated.c | 48 |
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) { |