1 /* This tests the ux_host_class_hub_entry.c API. */ 2 3 #include "usbx_ux_test_hub.h" 4 5 #ifdef CTEST test_application_define(void * first_unused_memory)6void test_application_define(void *first_unused_memory) 7 #else 8 void usbx_ux_host_class_hub_entry_test_application_define(void *first_unused_memory) 9 #endif 10 { 11 12 /* Inform user. */ 13 printf("Running ux_host_class_hub_entry Test................................ "); 14 15 stepinfo("\n"); 16 17 initialize_hub(first_unused_memory); 18 } 19 post_init_host()20static void post_init_host() 21 { 22 23 UX_HOST_CLASS_COMMAND command; 24 25 /** Test unknown function. **/ 26 27 command.ux_host_class_command_request = (~0); 28 29 ux_test_add_action_to_main_list(create_error_match_action(UX_SYSTEM_LEVEL_THREAD, UX_SYSTEM_CONTEXT_CLASS, UX_FUNCTION_NOT_SUPPORTED)); 30 UX_TEST_ASSERT(_ux_host_class_hub_entry(&command) != UX_SUCCESS); 31 } 32 post_init_device()33static void post_init_device() 34 { 35 }