Skip to content

Commit

Permalink
Fix naming of setting mock console region function
Browse files Browse the repository at this point in the history
  • Loading branch information
rhargreaves committed Feb 20, 2025
1 parent d9ede8d commit a11fbc2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/mocks/mock_sgdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ u16 __wrap_SYS_isPAL(void)
return testIsPal;
}

void wraps_set_SYS_isPAL(bool isPal)
void mock_sgdk_set_SYS_isPAL(bool isPal)
{
testIsPal = isPal;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/mocks/mock_sgdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void __wrap_SYS_setExtIntCallback(VoidCallback* CB);
void __wrap_SYS_setInterruptMaskLevel(u16 value);
void __wrap_VDP_clearTextArea(u16 x, u16 y, u16 w, u16 h);
u16 __wrap_SYS_isPAL(void);
void wraps_set_SYS_isPAL(bool isPal);
void mock_sgdk_set_SYS_isPAL(bool isPal);
void __wrap_SYS_die(char* err);
void __wrap_SYS_doVBlankProcessEx(VBlankProcessTime processTime);
void __wrap_VDP_setTileMapXY(VDPPlane plane, u16 tile, u16 x, u16 y);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ int test_midi_setup(UNUSED void** state)
mock_synth_disable_checks();
midi_init(M_BANK_0, P_BANK_0, TEST_ENVELOPES);
mock_synth_enable_checks();
wraps_set_SYS_isPAL(false);
mock_sgdk_set_SYS_isPAL(false);
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_midi_psg.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void test_midi_uses_PAL_tones_if_system_is_in_that_region(UNUSED void** state)

const u16 TONE_PAL_C4 = 423;

wraps_set_SYS_isPAL(true);
mock_sgdk_set_SYS_isPAL(true);

expect_psg_tone(expectedPsgChan, TONE_PAL_C4);
expect_psg_attenuation(expectedPsgChan, 0);
Expand Down

0 comments on commit a11fbc2

Please sign in to comment.