Add all pages test and accessor functions

This commit is contained in:
accusys
2026-03-29 14:53:26 +08:00
parent c42b62b473
commit e7af73992d
8 changed files with 260 additions and 5 deletions
+13
View File
@@ -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;
}