add acm_capability saving to host data & its test

This commit is contained in:
hathach
2013-07-01 11:29:23 +07:00
parent e94ce81b04
commit e1883fcd26
4 changed files with 44 additions and 16 deletions
@@ -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);
}