summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-07-01 11:29:23 +0700
committerhathach <[email protected]>2013-07-01 11:29:23 +0700
commite1883fcd263456ffc7ef318e4f549364fff3945e (patch)
tree83e25d86fd87136e2660c8f86475bde4e5f3462d /tests
parente94ce81b045069f12e29ea355c2248ef6254ca0d (diff)
add acm_capability saving to host data & its test
Diffstat (limited to 'tests')
-rw-r--r--tests/lpc18xx_43xx/test/host/cdc/test_cdc_host.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/lpc18xx_43xx/test/host/cdc/test_cdc_host.c b/tests/lpc18xx_43xx/test/host/cdc/test_cdc_host.c
index 53e76a70f..cd95f3fcd 100644
--- a/tests/lpc18xx_43xx/test/host/cdc/test_cdc_host.c
+++ b/tests/lpc18xx_43xx/test/host/cdc/test_cdc_host.c
@@ -144,6 +144,17 @@ void test_cdch_open_interface_number_check(void)
}
+void test_cdch_open_acm_capacity_check(void)
+{
+ pipe_handle_t dummy_hld = { .dev_addr = 1 };
+ hcd_pipe_open_IgnoreAndReturn(dummy_hld);
+
+ //------------- CUT -------------//
+ TEST_ASSERT_EQUAL( TUSB_ERROR_NONE, cdch_open_subtask(dev_addr, p_comm_interface, &length) );
+
+ TEST_ASSERT_EQUAL_MEMORY(&cdc_config_descriptor.cdc_acm.bmCapabilities, &p_cdc->acm_capability, 1);
+}
+