summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Szewczyk <p.szewczyk@samsung.com>2015-08-20 11:18:04 +0200
committerKrzysztof Opasiak <k.opasiak@samsung.com>2015-08-20 11:59:46 +0200
commite4cfc14fcd4a2df38410d32f5329492a657e9ad7 (patch)
tree08d3b17f27f016689a488d0e8f1d3225c8c46344
parentd4e6ea1a17358ab510cfd89da0fce35a7689ef1c (diff)
downloadlibusbg-e4cfc14fcd4a2df38410d32f5329492a657e9ad7.tar.gz
libusbg-e4cfc14fcd4a2df38410d32f5329492a657e9ad7.tar.bz2
libusbg-e4cfc14fcd4a2df38410d32f5329492a657e9ad7.zip
libusbg: tests: Add missing test cases
Some test functions are not executed at all. This commit fix it. Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com> Reviewed-by: Krzysztof Opasiak <k.opasiak@samsung.com>
-rw-r--r--tests/test.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/test.c b/tests/test.c
index f70622b..708e257 100644
--- a/tests/test.c
+++ b/tests/test.c
@@ -2303,6 +2303,14 @@ static struct CMUnitTest tests[] = {
test_get_function_attrs, setup_f_obex_attrs),
/**
* @usbg_test
+ * @test_desc{test_get_f_acm_attrs,
+ * Get f_acm function attributes,
+ * usbg_get_function_attrs}
+ */
+ USBG_TEST_TS("test_get_f_acm_attrs",
+ test_get_function_attrs, setup_f_acm_attrs),
+ /**
+ * @usbg_test
* @test_desc{test_get_f_ecm_attrs,
* Get f_ecm function attributes,
* usbg_get_function_attrs}
@@ -2311,6 +2319,14 @@ static struct CMUnitTest tests[] = {
test_get_function_attrs, setup_f_ecm_attrs),
/**
* @usbg_test
+ * @test_desc{test_get_f_eem_attrs,
+ * Get f_eem function attributes,
+ * usbg_get_function_attrs}
+ */
+ USBG_TEST_TS("test_get_f_eem_attrs",
+ test_get_function_attrs, setup_f_eem_attrs),
+ /**
+ * @usbg_test
* @test_desc{test_get_f_subset_attrs,
* Get f_subset function attributes,
* usbg_get_function_attrs}
@@ -2383,6 +2399,14 @@ static struct CMUnitTest tests[] = {
test_set_function_attrs, setup_f_ecm_writable_attrs),
/**
* @usbg_test
+ * @test_desc{test_get_f_eem_attrs,
+ * Set f_eem function attributes,
+ * usbg_set_function_attrs}
+ */
+ USBG_TEST_TS("test_set_f_eem_attrs",
+ test_set_function_attrs, setup_f_eem_writable_attrs),
+ /**
+ * @usbg_test
* @test_desc{test_get_f_subset_attrs,
* Set f_subset function attributes,
* usbg_set_function_attrs}
@@ -2429,6 +2453,20 @@ static struct CMUnitTest tests[] = {
*/
USBG_TEST_TS("test_create_all_functions",
test_create_function, setup_all_funcs_state),
+ /**
+ * @usbg_test
+ * @test_desc{test_get_gadget_str_name,
+ * Compare returned gadget string name with expected
+ * usbg_get_gadget_str_name}
+ */
+ unit_test(test_get_gadget_str_name),
+ /**
+ * @usbg_test
+ * @test_desc{test_lookup_gadget_str,
+ * Compare returned gadget string code with expected
+ * usbg_lookup_gadget_str}
+ */
+ unit_test(test_lookup_gadget_str),
#ifndef DOXYGEN
};