|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711 |
- #include "../../../__mocks__/SDL_keyboard.mock.h"
- #include "../../../__mocks__/SDL_joystick.mock.h"
- #include "../../../__mocks__/SDL_stdinc.mock.h"
- #include "../../../__mocks__/minIni.mock.h"
- #include "../../../__mocks__/portmidi.mock.h"
- #include "IZ_keyboard.h"
- #include "IZ_joystick.h"
- #include "IZ_midi.h"
-
- i16 GenerateAxisValueWithinThreshold(u16 threshold) {
- return rand() % threshold;
- }
-
- i16 GenerateAxisValueOutsideThreshold(u16 threshold) {
- return threshold + (rand() % (RAND_MAX - threshold - 1)) + 1;
- }
-
- spec("input") {
- describe("joystick") {
- describe("Initialize") {
- static IZ_JoystickState state[IZ_PLAYERS];
-
- after_each() {
- mock_reset(SDL_memcpy);
- }
-
- after_each() {
- mock_reset(SDL_NumJoysticks);
- }
-
- after_each() {
- mock_reset(SDL_JoystickOpen);
- }
-
- after_each() {
- mock_reset(ini_putl);
- }
-
- after_each() {
- mock_reset(ini_getl);
- }
-
- it("sets initial state") {
- IZ_JoystickInitialize(&state, "config.ini", 0, NULL);
-
- check(mock_is_called(SDL_memcpy), "Initial state not loaded.");
- check(mock_is_called(SDL_NumJoysticks), "Connected joysticks not checked.");
- }
-
- it("calls load method") {
- mock_set_expected_calls(ini_getl, ((CONTROLS - 4) + 2) * IZ_PLAYERS);
-
- IZ_JoystickInitialize(&state, "config.ini", 0, NULL);
-
- check(
- mock_get_expected_calls(ini_getl) == mock_get_actual_calls(ini_getl),
- "Call count mismatch for ini_getl() (expected %u, received %u).",
- mock_get_expected_calls(ini_getl),
- mock_get_actual_calls(ini_getl)
- );
- }
-
- it("calls save method") {
- mock_set_expected_calls(ini_putl, ((CONTROLS - 4) + 2) * IZ_PLAYERS);
-
- IZ_JoystickInitialize(&state, "config.ini", 0, NULL);
-
- check(
- mock_get_expected_calls(ini_putl) == mock_get_actual_calls(ini_putl),
- "Call count mismatch for ini_putl() (expected %u, received %u).",
- mock_get_expected_calls(ini_putl),
- mock_get_actual_calls(ini_putl)
- );
- }
-
- it("opens device handles") {
- mock_set_expected_calls(SDL_JoystickOpen, MOCK_OPEN_JOYSTICKS);
-
- IZ_JoystickInitialize(&state, "config.ini", 0, NULL);
-
- check(
- mock_get_expected_calls(SDL_JoystickOpen) == mock_get_actual_calls(SDL_JoystickOpen),
- "Call count mismatch for SDL_JoystickOpen() (expected %u, received %u).",
- mock_get_expected_calls(SDL_JoystickOpen),
- mock_get_actual_calls(SDL_JoystickOpen)
- );
- }
- }
-
- describe("HandleEvents") {
- static SDL_Event e;
- static IZ_JoystickState state[IZ_PLAYERS] = {};
- static IZ_Action action[IZ_PLAYERS] = {};
-
- u8 p;
- for (p = 0; p < IZ_PLAYERS; p += 1) {
- describe("on player %u", p) {
- describe("on axis motion events") {
- before_each() {
- e.type = SDL_JOYAXISMOTION;
- state[p].config.axis_threshold = 8000u;
- }
-
- describe("on primary horizontal direction") {
- before_each() {
- e.jaxis.axis = IZ_JOY_AXIS_DIRECTION_HORIZONTAL1;
- }
-
- it("handles positive motion") {
- e.jaxis.value = GenerateAxisValueOutsideThreshold(state[p].config.axis_threshold);
- action[p] = 0;
-
- printf("(axis value: %d) ", e.jaxis.value);
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- action[p] == (0x1 << IZ_ACTION_INDEX_RIGHT),
- "Action not set."
- );
- }
-
- it("handles negative motion") {
- e.jaxis.value = -GenerateAxisValueOutsideThreshold(state[p].config.axis_threshold);
- action[p] = 0;
-
- printf("(axis value: %d) ", e.jaxis.value);
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- action[p] == (0x1 << IZ_ACTION_INDEX_LEFT),
- "Action not set."
- );
- }
-
- it("handles neutral motion") {
- e.jaxis.value = GenerateAxisValueWithinThreshold(state[p].config.axis_threshold);
- action[p] = 0;
-
- printf("(axis value: %d) ", e.jaxis.value);
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- action[p] == 0,
- "Action not set."
- );
- }
- }
-
- describe("on secondary horizontal direction") {
- before_each() {
- e.jaxis.axis = IZ_JOY_AXIS_DIRECTION_HORIZONTAL2;
- }
-
- it("handles positive motion") {
- e.jaxis.value = GenerateAxisValueOutsideThreshold(state[p].config.axis_threshold);
- action[p] = 0;
-
- printf("(axis value: %d) ", e.jaxis.value);
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- action[p] == (0x1 << IZ_ACTION_INDEX_RIGHT),
- "Action not set."
- );
- }
-
- it("handles negative motion") {
- e.jaxis.value = -GenerateAxisValueOutsideThreshold(state[p].config.axis_threshold);
- action[p] = 0;
-
- printf("(axis value: %d) ", e.jaxis.value);
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- action[p] == (0x1 << IZ_ACTION_INDEX_LEFT),
- "Action not set."
- );
- }
-
- it("handles neutral motion") {
- e.jaxis.value = GenerateAxisValueWithinThreshold(state[p].config.axis_threshold);;
- action[p] = 0;
-
- printf("(axis value: %d) ", e.jaxis.value);
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- action[p] == 0,
- "Action not set."
- );
- }
- }
-
- describe("on primary vertical direction") {
- before_each() {
- e.jaxis.axis = IZ_JOY_AXIS_DIRECTION_VERTICAL1;
- }
-
- it("handles positive motion") {
- e.jaxis.value = GenerateAxisValueOutsideThreshold(state[p].config.axis_threshold);
- action[p] = 0;
-
- printf("(axis value: %d) ", e.jaxis.value);
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- action[p] == (0x1 << IZ_ACTION_INDEX_DOWN),
- "Action not set."
- );
- }
-
- it("handles negative motion") {
- e.jaxis.value = -GenerateAxisValueOutsideThreshold(state[p].config.axis_threshold);
- action[p] = 0;
-
- printf("(axis value: %d) ", e.jaxis.value);
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- action[p] == (0x1 << IZ_ACTION_INDEX_UP),
- "Action not set."
- );
- }
-
- it("handles neutral motion") {
- e.jaxis.value = GenerateAxisValueWithinThreshold(state[p].config.axis_threshold);;
- action[p] = 0;
-
- printf("(axis value: %d) ", e.jaxis.value);
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- action[p] == 0,
- "Action not set."
- );
- }
- }
-
- describe("on secondary vertical direction") {
- before_each() {
- e.jaxis.axis = IZ_JOY_AXIS_DIRECTION_VERTICAL2;
- }
-
- it("handles positive motion") {
- e.jaxis.value = GenerateAxisValueOutsideThreshold(state[p].config.axis_threshold);
- action[p] = 0;
-
- printf("(axis value: %d) ", e.jaxis.value);
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- action[p] == (0x1 << IZ_ACTION_INDEX_DOWN),
- "Action not set."
- );
- }
-
- it("handles negative motion") {
- e.jaxis.value = -GenerateAxisValueOutsideThreshold(state[p].config.axis_threshold);
- action[p] = 0;
-
- printf("(axis value: %d) ", e.jaxis.value);
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- action[p] == (0x1 << IZ_ACTION_INDEX_UP),
- "Action not set."
- );
- }
-
- it("handles neutral motion") {
- e.jaxis.value = GenerateAxisValueWithinThreshold(state[p].config.axis_threshold);;
- action[p] = 0;
-
- printf("(axis value: %d) ", e.jaxis.value);
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- action[p] == 0,
- "Action not set."
- );
- }
- }
- }
-
- describe("on hat motion events") {
- before_each() {
- e.type = SDL_JOYHATMOTION;
- }
-
- for (u8 i = 0; i < 4; i += 1) {
- it("handles motion for %s action", ACTION_NAMES[i]) {
- e.jhat.value = (0x1u << i);
- action[p] = 0;
-
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- action[p] == (0x1u << i),
- "Action not set."
- );
- }
-
- it("handles motion for %s deactivation", ACTION_NAMES[i]) {
- e.jhat.value = 0;
- action[p] = ~0;
-
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- !(action[p] & (0x1 << i)),
- "Action not unset."
- );
- }
- }
- }
-
- describe("on button events") {
- for (u8 i = 4; i < CONTROLS; i += 1) {
- it("handles %s action activation", ACTION_NAMES[i]) {
- e.type = SDL_JOYBUTTONDOWN;
- e.jbutton.button = IZ_JOYSTICK_DEFAULT_STATE[p].config.control_mapping[i];
- state[p].config.control_mapping[i] = IZ_JOYSTICK_DEFAULT_STATE[p].config.control_mapping[i];
- action[p] = 0;
-
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- action[p] == (0x1u << i),
- "Action not set."
- );
- }
-
- it("handles %s action deactivation", ACTION_NAMES[i]) {
- e.type = SDL_JOYBUTTONUP;
- e.jbutton.button = IZ_JOYSTICK_DEFAULT_STATE[p].config.control_mapping[i];
- state[p].config.control_mapping[i] = IZ_JOYSTICK_DEFAULT_STATE[p].config.control_mapping[i];
- action[p] = ~0;
-
- IZ_JoystickHandleEvents(&state, &action, e);
- check(
- !(action[p] & (0x1 << i)),
- "Action not unset."
- );
- }
- }
- }
- }
- }
- }
-
- describe("SaveConfig") {
- static IZ_JoystickState state[IZ_PLAYERS];
-
- after_each() {
- mock_reset(ini_putl);
- }
-
- before_each() {
- for (u8 p = 0; p < IZ_PLAYERS; p += 1) {
- for (u8 i = 0; i < CONTROLS; i += 1) {
- state[p].config.control_mapping[i] = IZ_JOYSTICK_DEFAULT_STATE[p].config.control_mapping[i];
- }
- }
- }
-
- it("calls save method") {
- mock_set_expected_calls(ini_putl, ((CONTROLS - 4) + 2) * IZ_PLAYERS);
-
- IZ_JoystickSaveConfig(&state, "config.ini");
-
- check(
- mock_get_expected_calls(ini_putl) == mock_get_actual_calls(ini_putl),
- "Call count mismatch for ini_putl() (expected %u, received %u).",
- mock_get_expected_calls(ini_putl),
- mock_get_actual_calls(ini_putl)
- );
- }
- }
-
- describe("Teardown") {
- static SDL_Joystick device;
- static IZ_JoystickState state[IZ_PLAYERS] = {};
-
- before_each() {
- for (u8 p = 0; p < IZ_PLAYERS; p += 1) {
- state[p].device = &device;
- }
- }
-
- after_each() {
- mock_reset(SDL_JoystickClose);
- }
-
- it("closes opened devices") {
- mock_set_expected_calls(SDL_JoystickClose, IZ_PLAYERS);
-
- IZ_JoystickTeardown(&state);
-
- check(
- mock_get_expected_calls(SDL_JoystickClose) == mock_get_actual_calls(SDL_JoystickClose),
- "Call count mismatch for SDL_JoystickClose() (expected %u, received %u).",
- mock_get_expected_calls(SDL_JoystickClose),
- mock_get_actual_calls(SDL_JoystickClose)
- );
- }
- }
- }
-
- describe("keyboard") {
- describe("Initialize") {
- static IZ_KeyboardState state[IZ_PLAYERS] = {};
-
- after_each() {
- mock_reset(SDL_memcpy);
- }
-
- after_each() {
- mock_reset(ini_gets);
- }
-
- after_each() {
- mock_reset(ini_puts);
- }
-
- before_each() {
- for (u8 p = 0; p < IZ_PLAYERS; p += 1) {
- for (u8 i = 0; i < CONTROLS; i += 1) {
- state[p].config.control_mapping[i] = IZ_KEYBOARD_DEFAULT_STATE[p].config.control_mapping[i];
- }
- }
- }
-
- it("sets initial state") {
- IZ_KeyboardInitialize(&state, "config.ini", 0, NULL);
-
- check(mock_is_called(SDL_memcpy), "Initial state not loaded.");
- }
-
- it("calls load method") {
- mock_set_expected_calls(ini_gets, CONTROLS * IZ_PLAYERS);
-
- IZ_KeyboardInitialize(&state, "config.ini", 0, NULL);
-
- check(
- mock_get_expected_calls(ini_gets) == mock_get_actual_calls(ini_gets),
- "Call count mismatch for ini_gets() (expected %u, received %u).",
- mock_get_expected_calls(ini_gets),
- mock_get_actual_calls(ini_gets)
- );
- }
-
- it("calls save method") {
- mock_set_expected_calls(ini_puts, CONTROLS * IZ_PLAYERS);
-
- IZ_KeyboardInitialize(&state, "config.ini", 0, NULL);
-
- check(
- mock_get_expected_calls(ini_puts) == mock_get_actual_calls(ini_puts),
- "Call count mismatch for ini_puts() (expected %u, received %u).",
- mock_get_expected_calls(ini_puts),
- mock_get_actual_calls(ini_puts)
- );
- }
- }
-
- describe("HandleEvents") {
- static SDL_Event e;
- static IZ_KeyboardState state[IZ_PLAYERS] = {};
- static IZ_Action action[IZ_PLAYERS] = {};
-
- for (u8 p = 0; p < IZ_PLAYERS; p += 1) {
- describe("on player %u", p) {
- for (u8 i = 0; i < CONTROLS; i += 1) {
- it("handles %s action activation", ACTION_NAMES[i]) {
- e.type = SDL_KEYDOWN;
- e.key.keysym.sym = IZ_KEYBOARD_DEFAULT_STATE[p].config.control_mapping[i];
- state[p].config.control_mapping[i] = IZ_KEYBOARD_DEFAULT_STATE[p].config.control_mapping[i];
- action[p] = 0;
-
- IZ_KeyboardHandleEvents(&state, &action, e);
- check(
- action[p] == (0x1 << i),
- "Action not set."
- );
- }
-
- it("handles %s action deactivation", ACTION_NAMES[i]) {
- e.type = SDL_KEYUP;
- e.key.keysym.sym = IZ_KEYBOARD_DEFAULT_STATE[p].config.control_mapping[i];
- state[p].config.control_mapping[i] = IZ_KEYBOARD_DEFAULT_STATE[p].config.control_mapping[i];
- action[p] = ~0;
-
- IZ_KeyboardHandleEvents(&state, &action, e);
- check(
- !(action[p] & (0x1 << i)),
- "Action not unset."
- );
- }
- }
- }
- }
- }
-
- describe("SaveConfig") {
- static IZ_KeyboardState state[IZ_PLAYERS] = {};
-
- after_each() {
- mock_reset(ini_puts);
- }
-
- before_each() {
- for (u8 p = 0; p < IZ_PLAYERS; p += 1) {
- for (u8 i = 0; i < CONTROLS; i += 1) {
- state[p].config.control_mapping[i] = IZ_KEYBOARD_DEFAULT_STATE[p].config.control_mapping[i];
- }
- }
- }
-
- it("calls save method") {
- mock_set_expected_calls(ini_puts, CONTROLS * IZ_PLAYERS);
-
- IZ_KeyboardSaveConfig("config.ini", &state);
-
- check(
- mock_get_expected_calls(ini_puts) == mock_get_actual_calls(ini_puts),
- "Call count mismatch for ini_puts() (expected %u, received %u).",
- mock_get_expected_calls(ini_puts),
- mock_get_actual_calls(ini_puts)
- );
- }
- }
- }
-
- describe("midi") {
- describe("Initialize") {
- static IZ_MIDIInputState state[IZ_PLAYERS];
-
- after_each() {
- mock_reset(SDL_memcpy);
- }
-
- after_each() {
- mock_reset(Pm_CountDevices);
- }
-
- after_each() {
- mock_reset(Pm_OpenInput);
- }
-
- after_each() {
- mock_reset(ini_puts);
- }
-
- after_each() {
- mock_reset(ini_gets);
- }
-
- after_each() {
- mock_reset(ini_putl);
- }
-
- after_each() {
- mock_reset(ini_getl);
- }
-
- it("sets initial state") {
- IZ_MIDIInputInitialize(&state, "config.ini", 0, NULL);
-
- check(mock_is_called(SDL_memcpy), "Initial state not loaded.");
- check(mock_is_called(Pm_CountDevices), "Connected MIDI devices not checked.");
- }
-
- it("calls load method") {
- mock_set_expected_calls(ini_gets, CONTROLS * IZ_PLAYERS);
- mock_set_expected_calls(ini_getl, 2 * IZ_PLAYERS);
-
- IZ_MIDIInputInitialize(&state, "config.ini", 0, NULL);
-
- check(
- mock_get_expected_calls(ini_gets) == mock_get_actual_calls(ini_gets),
- "Call count mismatch for ini_gets() (expected %u, received %u).",
- mock_get_expected_calls(ini_gets),
- mock_get_actual_calls(ini_gets)
- );
-
- check(
- mock_get_expected_calls(ini_getl) == mock_get_actual_calls(ini_getl),
- "Call count mismatch for ini_getl() (expected %u, received %u).",
- mock_get_expected_calls(ini_getl),
- mock_get_actual_calls(ini_getl)
- );
- }
-
- it("calls save method") {
- mock_set_expected_calls(ini_puts, CONTROLS * IZ_PLAYERS);
- mock_set_expected_calls(ini_putl, 2 * IZ_PLAYERS);
-
- IZ_MIDIInputInitialize(&state, "config.ini", 0, NULL);
-
- check(
- mock_get_expected_calls(ini_puts) == mock_get_actual_calls(ini_puts),
- "Call count mismatch for ini_puts() (expected %u, received %u).",
- mock_get_expected_calls(ini_puts),
- mock_get_actual_calls(ini_puts)
- );
-
- check(
- mock_get_expected_calls(ini_putl) == mock_get_actual_calls(ini_putl),
- "Call count mismatch for ini_putl() (expected %u, received %u).",
- mock_get_expected_calls(ini_putl),
- mock_get_actual_calls(ini_putl)
- );
- }
-
- it("opens device handles") {
- mock_set_expected_calls(Pm_OpenInput, MOCK_OPEN_JOYSTICKS);
-
- IZ_MIDIInputInitialize(&state, "config.ini", 0, NULL);
-
- check(
- mock_get_expected_calls(Pm_OpenInput) == mock_get_actual_calls(Pm_OpenInput),
- "Call count mismatch for Pm_OpenInput() (expected %u, received %u).",
- mock_get_expected_calls(Pm_OpenInput),
- mock_get_actual_calls(Pm_OpenInput)
- );
- }
- }
-
- describe("SaveConfig") {
- static IZ_MIDIInputState state[IZ_PLAYERS];
-
- after_each() {
- mock_reset(ini_puts);
- }
-
- after_each() {
- mock_reset(ini_putl);
- }
-
- it("calls save method") {
- mock_set_expected_calls(ini_puts, CONTROLS * IZ_PLAYERS);
- mock_set_expected_calls(ini_putl, 2 * IZ_PLAYERS);
-
- IZ_MIDIInputSaveConfig("config.ini", &state);
-
- check(
- mock_get_expected_calls(ini_puts) == mock_get_actual_calls(ini_puts),
- "Call count mismatch for ini_puts() (expected %u, received %u).",
- mock_get_expected_calls(ini_puts),
- mock_get_actual_calls(ini_puts)
- );
-
- check(
- mock_get_expected_calls(ini_putl) == mock_get_actual_calls(ini_putl),
- "Call count mismatch for ini_putl() (expected %u, received %u).",
- mock_get_expected_calls(ini_putl),
- mock_get_actual_calls(ini_putl)
- );
- }
- }
-
- describe("HandleEvents") {
- static PmEvent e;
- static IZ_MIDIInputState state[IZ_PLAYERS] = {};
- static IZ_Action action[IZ_PLAYERS] = {};
-
- for (u8 p = 0; p < IZ_PLAYERS; p += 1) {
- describe("on player %u", p) {
- for (u8 i = 0; i < CONTROLS; i += 1) {
- it("handles %s action activation", ACTION_NAMES[i]) {
- e.message = IZ_MIDI_NOTE_ON | (IZ_MIDI_INPUT_DEFAULT_STATE[p].config.control_mapping[i] << 8);
- state[p].config.control_mapping[i] = IZ_MIDI_INPUT_DEFAULT_STATE[p].config.control_mapping[i];
- action[p] = 0;
-
- IZ_MIDIInputHandleEvents(&state, &action, e);
- check(
- action[p] == (0x1 << i),
- "Action not set."
- );
- }
-
- it("handles %s action deactivation", ACTION_NAMES[i]) {
- e.message = IZ_MIDI_NOTE_OFF | (IZ_MIDI_INPUT_DEFAULT_STATE[p].config.control_mapping[i] << 8);
- state[p].config.control_mapping[i] = IZ_MIDI_INPUT_DEFAULT_STATE[p].config.control_mapping[i];
- action[p] = ~0;
-
- IZ_MIDIInputHandleEvents(&state, &action, e);
- check(
- !(action[p] & (0x1 << i)),
- "Action not unset."
- );
- }
- }
- }
- }
- }
-
- describe("Teardown") {
- static PmStream* stream;
- static IZ_MIDIInputState state[IZ_PLAYERS] = {};
-
- before_each() {
- for (u8 p = 0; p < IZ_PLAYERS; p += 1) {
- state[p].stream = &stream;
- }
- }
-
- after_each() {
- mock_reset(Pm_Close);
- }
-
- it("closes opened devices") {
- mock_set_expected_calls(Pm_Close, IZ_PLAYERS);
-
- IZ_MIDIInputTeardown(&state);
-
- check(
- mock_get_expected_calls(Pm_Close) == mock_get_actual_calls(Pm_Close),
- "Call count mismatch for Pm_Close() (expected %u, received %u).",
- mock_get_expected_calls(Pm_Close),
- mock_get_actual_calls(Pm_Close)
- );
- }
- }
- }
- }
|