-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Enable IPUC in override image size tests
Enable IPUC in SUIT override image size directive tests. Signed-off-by: Tomasz Chyrowicz <[email protected]>
- Loading branch information
Showing
6 changed files
with
138 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
tests/subsys/suit/unit/mocks/include/mock_suit_plat_ipuc.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
#ifndef MOCK_SUIT_PLAT_IPUC_H__ | ||
#define MOCK_SUIT_PLAT_IPUC_H__ | ||
|
||
#include <zephyr/fff.h> | ||
#include <mock_globals.h> | ||
#include <suit_plat_ipuc.h> | ||
|
||
FAKE_VALUE_FUNC(int, suit_plat_ipuc_declare, suit_component_t); | ||
FAKE_VALUE_FUNC(int, suit_plat_ipuc_revoke, suit_component_t); | ||
|
||
static inline void mock_suit_plat_ipuc_reset(void) | ||
{ | ||
RESET_FAKE(suit_plat_ipuc_declare); | ||
RESET_FAKE(suit_plat_ipuc_revoke); | ||
} | ||
|
||
#endif /* MOCK_SUIT_PLAT_IPUC_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters