Add all pages test and accessor functions
This commit is contained in:
@@ -443,3 +443,16 @@ void mock_print_config(void) {
|
||||
printf("Pending Events: %d\n", g_mockEventCount);
|
||||
printf("=========================\n");
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// Accessors for testing
|
||||
// =============================================================================
|
||||
|
||||
MOCK_CTRL_INFO* mock_get_ctrl_info(int index) {
|
||||
if (index < 0 || index >= MAX_DTR_IN_HOST) return NULL;
|
||||
return &g_mockCtrl[index];
|
||||
}
|
||||
|
||||
int mock_get_event_queue_count(void) {
|
||||
return g_mockEventCount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user