diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/vboot_api_devmode_tests.c | 3 | ||||
-rw-r--r-- | tests/vboot_audio_tests.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/vboot_api_devmode_tests.c b/tests/vboot_api_devmode_tests.c index cc24cee9..6ec74b29 100644 --- a/tests/vboot_api_devmode_tests.c +++ b/tests/vboot_api_devmode_tests.c @@ -149,6 +149,8 @@ static uint32_t kbd_fire_key; static VbError_t beep_return; static note_event_t *expected_event; +extern int audio_open_count; + /* Reset mock data (for use before each test) */ static void ResetMocks(void) { @@ -181,6 +183,7 @@ static void ResetMocks(void) { kbd_fire_key = 0; beep_return = VBERROR_SUCCESS; + audio_open_count = 0; matched_events = 0; max_events = 0; diff --git a/tests/vboot_audio_tests.c b/tests/vboot_audio_tests.c index 07ca438e..99d9bd4f 100644 --- a/tests/vboot_audio_tests.c +++ b/tests/vboot_audio_tests.c @@ -50,6 +50,7 @@ static uint8_t notebuf[sizeof(good_header) + static VbDevMusic *use_hdr; static VbDevMusicNote *use_notes; static uint32_t use_size; +extern int audio_open_count; /* Set correct checksum for custom notes */ void FixChecksum(VbDevMusic *hdr) { @@ -72,6 +73,7 @@ static void ResetMocks(void) { memcpy(use_notes, good_notes, sizeof(good_notes)); FixChecksum(use_hdr); use_size = sizeof(notebuf); + audio_open_count = 0; } /* Compare two sets of notes */ |