diff options
Diffstat (limited to 'zephyr/test/uart_printf/src/fakes.cc')
-rw-r--r-- | zephyr/test/uart_printf/src/fakes.cc | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/zephyr/test/uart_printf/src/fakes.cc b/zephyr/test/uart_printf/src/fakes.cc deleted file mode 100644 index 0bb5fea1eb..0000000000 --- a/zephyr/test/uart_printf/src/fakes.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* Copyright 2022 The ChromiumOS Authors - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include <zephyr/fff.h> -#include <zephyr/ztest.h> - -#include "printf.h" -#include "uart.h" - -DEFINE_FFF_GLOBALS; - -/* printf.h */ -DEFINE_FAKE_VALUE_FUNC(int, vfnprintf, vfnprintf_addchar_t, void *, - const char *, va_list); - -/* uart.h */ -DEFINE_FAKE_VALUE_FUNC(int, uart_tx_char_raw, void *, int); -DEFINE_FAKE_VOID_FUNC(uart_tx_start); - -static void fake_reset_rule_before(const struct ztest_unit_test *test, - void *data) -{ - ARG_UNUSED(test); - ARG_UNUSED(data); - - /* printf.h */ - RESET_FAKE(vfnprintf); - - /* uart.h */ - RESET_FAKE(uart_tx_char_raw); - RESET_FAKE(uart_tx_start); -} - -ZTEST_RULE(fake_reset, fake_reset_rule_before, nullptr); |