blob: 9996e2a2081888052bf4fc187f7bf999d7026d8a [file] [log] [blame]
/* SPDX-License-Identifier: GPL-2.0 */
/*
* KUnit mock for struct test.
*
* Copyright (C) 2018, Google LLC.
* Author: Brendan Higgins <brendanhiggins@google.com>
*/
#include <test/test.h>
#include <test/mock.h>
DECLARE_STRUCT_CLASS_MOCK_PREREQS(test);
DECLARE_STRUCT_CLASS_MOCK_VOID_RETURN(METHOD(fail), CLASS(test),
PARAMS(struct test *,
struct test_stream *));
DECLARE_STRUCT_CLASS_MOCK_VOID_RETURN(METHOD(mock_vprintk), CLASS(test),
PARAMS(const struct test *,
const char *,
struct va_format *));
DECLARE_STRUCT_CLASS_MOCK_INIT(test);