diff options
| author | hathach <[email protected]> | 2013-07-01 11:29:23 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-07-01 11:29:23 +0700 |
| commit | e1883fcd263456ffc7ef318e4f549364fff3945e (patch) | |
| tree | 83e25d86fd87136e2660c8f86475bde4e5f3462d /tests | |
| parent | e94ce81b045069f12e29ea355c2248ef6254ca0d (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.c | 11 |
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); +} + |
