2020-09-16 14:12:22 +10:00
|
|
|
/*
|
|
|
|
|
* This file is part of the flashrom project.
|
|
|
|
|
*
|
|
|
|
|
* Copyright 2020 Google LLC
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*/
|
2020-05-20 20:10:20 +10:00
|
|
|
|
|
|
|
|
#ifndef _TESTS_TEST_H
|
|
|
|
|
#define _TESTS_TEST_H
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Standard test header that should be included in all tests. For now it just encapsulates the
|
|
|
|
|
* include dependencies for Cmocka. Test-specific APIs that are so generic we would want them
|
|
|
|
|
* available everywhere could also be added here.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
#include <setjmp.h>
|
|
|
|
|
#include <cmocka.h>
|
|
|
|
|
|
2021-10-14 12:21:02 +11:00
|
|
|
#define NON_ZERO (0xf000baaa)
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Having this as function allows to set a breakpoint on the address,
|
|
|
|
|
* as it has a named symbol associated with the address number.
|
|
|
|
|
*/
|
|
|
|
|
void *not_null(void);
|
|
|
|
|
|
2021-09-17 11:03:43 +10:00
|
|
|
#define LOG_ME printf("%s is called\n", __func__)
|
|
|
|
|
|
2020-05-20 20:10:20 +10:00
|
|
|
#endif /* _TESTS_TEST_H */
|