aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libqmi-glib/test/test-generated.c68
1 files changed, 63 insertions, 5 deletions
diff --git a/src/libqmi-glib/test/test-generated.c b/src/libqmi-glib/test/test-generated.c
index ec7a235..a8fe086 100644
--- a/src/libqmi-glib/test/test-generated.c
+++ b/src/libqmi-glib/test/test-generated.c
@@ -441,6 +441,28 @@ 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[] = {
@@ -505,6 +527,42 @@ test_generated_nas_network_scan (TestFixture *fixture)
test_fixture_loop_run (fixture);
}
+static void
+test_generated_nas_get_cell_location_info (TestFixture *fixture)
+{
+ guint8 expected[] = {
+ 0x01,
+ 0x0C, 0x00, 0x00, 0x03, 0x01,
+ 0x00, 0x01, 0x00, 0x43, 0x00, 0x00, 0x00
+ };
+ guint8 response[] = {
+ 0x01,
+ 0x53, 0x00, 0x80, 0x03, 0x01,
+ 0x02, 0x01, 0x00, 0x43, 0x00, 0x47, 0x00, 0x02,
+ 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x3D,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF,
+ 0xFF, 0x28, 0x00, 0x03, 0x7D, 0x6F, 0x00, 0x00,
+ 0x32, 0xF4, 0x51, 0xB3, 0x00, 0x4D, 0x00, 0x11,
+ 0x2A, 0x00, 0x8A, 0x3C, 0x00, 0x00, 0x32, 0xF4,
+ 0x51, 0xB3, 0x00, 0x63, 0x00, 0x30, 0x14, 0x00,
+ 0x89, 0x3C, 0x00, 0x00, 0x32, 0xF4, 0x51, 0xB3,
+ 0x00, 0x59, 0x00, 0x11, 0x0D, 0x00
+ };
+
+ test_port_context_set_command (fixture->ctx,
+ expected, G_N_ELEMENTS (expected),
+ response, G_N_ELEMENTS (response),
+ fixture->service_info[QMI_SERVICE_NAS].transaction_id++);
+
+ qmi_client_nas_get_cell_location_info (QMI_CLIENT_NAS (fixture->service_info[QMI_SERVICE_NAS].client), NULL, 3, NULL,
+ (GAsyncReadyCallback) nas_get_cell_location_info_ready,
+ fixture);
+
+ test_fixture_loop_run (fixture);
+}
+
+
/*****************************************************************************/
int main (int argc, char **argv)
@@ -516,12 +574,12 @@ int main (int argc, char **argv)
TEST_ADD ("/libqmi-glib/generated/core", test_generated_core);
/* DMS */
- TEST_ADD ("/libqmi-glib/generated/dms/get-ids", test_generated_dms_get_ids);
- TEST_ADD ("/libqmi-glib/generated/dms/uim-get-pin-status", test_generated_dms_uim_get_pin_status);
- TEST_ADD ("/libqmi-glib/generated/dms/uim-verify-pin", test_generated_dms_uim_verify_pin);
+ TEST_ADD ("/libqmi-glib/generated/dms/get-ids", test_generated_dms_get_ids);
+ TEST_ADD ("/libqmi-glib/generated/dms/uim-get-pin-status", test_generated_dms_uim_get_pin_status);
+ TEST_ADD ("/libqmi-glib/generated/dms/uim-verify-pin", test_generated_dms_uim_verify_pin);
/* NAS */
- TEST_ADD ("/libqmi-glib/generated/nas/network-scan", test_generated_nas_network_scan);
-
+ TEST_ADD ("/libqmi-glib/generated/nas/network-scan", test_generated_nas_network_scan);
+ TEST_ADD ("/libqmi-glib/generated/nas/get-cell-location-info", test_generated_nas_get_cell_location_info);
return g_test_run ();
}