modem-helpers: rename CGDCONT? tests

Adding the 'read' suffix, as they are for CGDCONT? read responses.
This commit is contained in:
Aleksander Morgado
2013-05-23 10:08:08 +02:00
parent 804642adc2
commit 7ad30ecce1

View File

@@ -1456,10 +1456,10 @@ test_cind_response_moto_v3m (void *f, gpointer d)
} }
/*****************************************************************************/ /*****************************************************************************/
/* Test CGDCONT responses */ /* Test CGDCONT read responses */
static void static void
test_cgdcont_results (const gchar *desc, test_cgdcont_read_results (const gchar *desc,
const gchar *reply, const gchar *reply,
MM3gppPdpContext *expected_results, MM3gppPdpContext *expected_results,
guint32 expected_results_len) guint32 expected_results_len)
@@ -1499,18 +1499,18 @@ test_cgdcont_results (const gchar *desc,
} }
static void static void
test_cgdcont_response_nokia (void *f, gpointer d) test_cgdcont_read_response_nokia (void *f, gpointer d)
{ {
const gchar *reply = "+CGDCONT: 1,\"IP\",,,0,0"; const gchar *reply = "+CGDCONT: 1,\"IP\",,,0,0";
static MM3gppPdpContext expected[] = { static MM3gppPdpContext expected[] = {
{ 1, MM_BEARER_IP_FAMILY_IPV4, NULL } { 1, MM_BEARER_IP_FAMILY_IPV4, NULL }
}; };
test_cgdcont_results ("Nokia", reply, &expected[0], G_N_ELEMENTS (expected)); test_cgdcont_read_results ("Nokia", reply, &expected[0], G_N_ELEMENTS (expected));
} }
static void static void
test_cgdcont_response_samsung (void *f, gpointer d) test_cgdcont_read_response_samsung (void *f, gpointer d)
{ {
const gchar *reply = const gchar *reply =
"+CGDCONT: 1,\"IP\",\"nate.sktelecom.com\",\"\",0,0\r\n" "+CGDCONT: 1,\"IP\",\"nate.sktelecom.com\",\"\",0,0\r\n"
@@ -1522,7 +1522,7 @@ test_cgdcont_response_samsung (void *f, gpointer d)
{ 3, MM_BEARER_IP_FAMILY_IPV4, "MAXROAM.com" } { 3, MM_BEARER_IP_FAMILY_IPV4, "MAXROAM.com" }
}; };
test_cgdcont_results ("Samsung", reply, &expected[0], G_N_ELEMENTS (expected)); test_cgdcont_read_results ("Samsung", reply, &expected[0], G_N_ELEMENTS (expected));
} }
/*****************************************************************************/ /*****************************************************************************/
@@ -1950,8 +1950,8 @@ int main (int argc, char **argv)
g_test_suite_add (suite, TESTCASE (test_cpms_response_cinterion, NULL)); g_test_suite_add (suite, TESTCASE (test_cpms_response_cinterion, NULL));
g_test_suite_add (suite, TESTCASE (test_cgdcont_response_nokia, NULL)); g_test_suite_add (suite, TESTCASE (test_cgdcont_read_response_nokia, NULL));
g_test_suite_add (suite, TESTCASE (test_cgdcont_response_samsung, NULL)); g_test_suite_add (suite, TESTCASE (test_cgdcont_read_response_samsung, NULL));
g_test_suite_add (suite, TESTCASE (test_cnum_response_generic, NULL)); g_test_suite_add (suite, TESTCASE (test_cnum_response_generic, NULL));
g_test_suite_add (suite, TESTCASE (test_cnum_response_generic_without_detail, NULL)); g_test_suite_add (suite, TESTCASE (test_cnum_response_generic_without_detail, NULL));