mirror of
				https://review.coreboot.org/flashrom.git
				synced 2025-11-04 07:00:39 +01:00 
			
		
		
		
	Change-Id: I3a8a8e59cbed871e0ecf953e547de56c0656e112 Signed-off-by: Anastasia Klimchuk <aklm@flashrom.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/89361 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Peter Marheine <pmarheine@chromium.org> Reviewed-by: Antonio Vázquez Blanco <antoniovazquezblanco@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
		
			
				
	
	
		
			38 lines
		
	
	
		
			878 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			878 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * This file is part of the flashrom project.
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: GPL-2.0-only
 | 
						|
 * SPDX-FileCopyrightText: 2020 Google LLC
 | 
						|
 */
 | 
						|
 | 
						|
#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>
 | 
						|
 | 
						|
#define NON_ZERO (0xf000baaa)
 | 
						|
 | 
						|
#define MOCK_FD (0x10ec)
 | 
						|
 | 
						|
#define SKIP_TEST(name) \
 | 
						|
	void name (void **state) { skip(); }
 | 
						|
 | 
						|
/*
 | 
						|
 * 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);
 | 
						|
 | 
						|
#define LOG_ME printf("%s is called\n", __func__)
 | 
						|
 | 
						|
#endif /* _TESTS_TEST_H */
 |