TianoCore EDK2 master
|
Go to the source code of this file.
Macros | |
#define | MOCK_INTERFACE_DECLARATION(MOCK) |
#define | MOCK_INTERFACE_DEFINITION(MOCK) |
#define | MOCK_FUNCTION_DECLARATION(RET_TYPE, FUNC, ARGS) |
#define | MOCK_FUNCTION_DEFINITION(MOCK, FUNC, NUM_ARGS, CALL_TYPE) FUNCTION_DEFINITION_TO_CALL_MOCK(MOCK, FUNC, FUNC, NUM_ARGS, CALL_TYPE) |
#define | MOCK_FUNCTION_INTERNAL_DECLARATION(RET_TYPE, FUNC, ARGS) |
#define | MOCK_FUNCTION_INTERNAL_DEFINITION(MOCK, FUNC, NUM_ARGS, CALL_TYPE) |
#define | MOCK_FUNCTION_HOOK_DECLARATIONS(FUNC) |
#define | MOCK_FUNCTION_HOOK_DEFINITIONS(MOCK, FUNC) |
#define | MOCK_FUNCTION_TYPE_DEFINITIONS(RET_TYPE, FUNC, ARGS) |
#define | FUNCTION_DEFINITION_TO_CALL_MOCK(MOCK, FUNC, FUNC_DEF_NAME, NUM_ARGS, CALL_TYPE) |
#define | MOCK_STATIC_INSTANCE_DEFINITION(MOCK) MOCK * MOCK :: Instance = NULL; |
#define | MOCK_INTERFACE_CONSTRUCTOR(MOCK) |
#define | MOCK_INTERFACE_DECONSTRUCTOR(MOCK) |
This header allows the mocking of free (C style) functions using gmock.
Copyright (c) 2023, Intel Corporation. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file FunctionMockLib.h.
#define FUNCTION_DEFINITION_TO_CALL_MOCK | ( | MOCK, | |
FUNC, | |||
FUNC_DEF_NAME, | |||
NUM_ARGS, | |||
CALL_TYPE | |||
) |
Definition at line 95 of file FunctionMockLib.h.
#define MOCK_FUNCTION_DECLARATION | ( | RET_TYPE, | |
FUNC, | |||
ARGS | |||
) |
Definition at line 31 of file FunctionMockLib.h.
#define MOCK_FUNCTION_DEFINITION | ( | MOCK, | |
FUNC, | |||
NUM_ARGS, | |||
CALL_TYPE | |||
) | FUNCTION_DEFINITION_TO_CALL_MOCK(MOCK, FUNC, FUNC, NUM_ARGS, CALL_TYPE) |
Definition at line 37 of file FunctionMockLib.h.
#define MOCK_FUNCTION_HOOK_DECLARATIONS | ( | FUNC | ) |
Definition at line 56 of file FunctionMockLib.h.
#define MOCK_FUNCTION_HOOK_DEFINITIONS | ( | MOCK, | |
FUNC | |||
) |
Definition at line 68 of file FunctionMockLib.h.
#define MOCK_FUNCTION_INTERNAL_DECLARATION | ( | RET_TYPE, | |
FUNC, | |||
ARGS | |||
) |
Definition at line 42 of file FunctionMockLib.h.
#define MOCK_FUNCTION_INTERNAL_DEFINITION | ( | MOCK, | |
FUNC, | |||
NUM_ARGS, | |||
CALL_TYPE | |||
) |
Definition at line 49 of file FunctionMockLib.h.
#define MOCK_FUNCTION_TYPE_DEFINITIONS | ( | RET_TYPE, | |
FUNC, | |||
ARGS | |||
) |
Definition at line 88 of file FunctionMockLib.h.
#define MOCK_INTERFACE_CONSTRUCTOR | ( | MOCK | ) |
Definition at line 116 of file FunctionMockLib.h.
#define MOCK_INTERFACE_DECLARATION | ( | MOCK | ) |
Definition at line 19 of file FunctionMockLib.h.
#define MOCK_INTERFACE_DECONSTRUCTOR | ( | MOCK | ) |
Definition at line 126 of file FunctionMockLib.h.
#define MOCK_INTERFACE_DEFINITION | ( | MOCK | ) |
Definition at line 24 of file FunctionMockLib.h.
#define MOCK_STATIC_INSTANCE_DEFINITION | ( | MOCK | ) | MOCK * MOCK :: Instance = NULL; |
Definition at line 114 of file FunctionMockLib.h.