mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-02 16:11:41 +01:00
[MQTT] Simplifies MQTT CMakeLists file
- Uses mocks from tools instead of creating them. - Move host based definition to test code.
This commit is contained in:
committed by
Rocha Euripedes
parent
dd441ef713
commit
736424c366
8
tools/mocks/http_parser/CMakeLists.txt
Normal file
8
tools/mocks/http_parser/CMakeLists.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
# NOTE: This kind of mocking currently works on Linux targets only.
|
||||
# On Espressif chips, too many dependencies are missing at the moment.
|
||||
message(STATUS "building HTTP PARSER MOCKS")
|
||||
|
||||
idf_component_get_property(original_http_parser_dir http_parser COMPONENT_OVERRIDEN_DIR)
|
||||
|
||||
idf_component_mock(INCLUDE_DIRS "${original_http_parser_dir}"
|
||||
MOCK_HEADER_FILES ${original_http_parser_dir}/http_parser.h)
|
||||
9
tools/mocks/http_parser/mock/mock_config.yaml
Normal file
9
tools/mocks/http_parser/mock/mock_config.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
:cmock:
|
||||
:plugins:
|
||||
- expect
|
||||
- expect_any_args
|
||||
- return_thru_ptr
|
||||
- array
|
||||
- ignore
|
||||
- ignore_arg
|
||||
- callback
|
||||
Reference in New Issue
Block a user