mirror of
https://review.coreboot.org/flashrom.git
synced 2025-10-14 06:20:25 +02: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>
34 lines
964 B
C
34 lines
964 B
C
/*
|
|
* This file is part of the flashrom project.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-only
|
|
* SPDX-FileCopyrightText: 2021 Google LLC
|
|
*/
|
|
|
|
#ifndef __LIFECYCLE_H__
|
|
#define __LIFECYCLE_H__
|
|
|
|
#include <include/test.h>
|
|
#include <string.h>
|
|
#if defined(__linux__) && !defined(__ANDROID__)
|
|
#include <linux/spi/spidev.h>
|
|
#endif
|
|
|
|
#include "tests.h"
|
|
#include "libflashrom.h"
|
|
#include "io_mock.h"
|
|
#include "programmer.h"
|
|
#include "spi.h"
|
|
|
|
void run_basic_lifecycle(void **state, const struct io_mock *io,
|
|
const struct programmer_entry *prog, const char *param);
|
|
|
|
void run_probe_v2_lifecycle(void **state, const struct io_mock *io,
|
|
const struct programmer_entry *prog, const char *param,
|
|
const char *const chip_name,
|
|
const char **expected_matched_names, unsigned int expected_matched_count);
|
|
|
|
void run_init_error_path(void **state, const struct io_mock *io,
|
|
const struct programmer_entry *prog, const char *param, const int error_code);
|
|
#endif /* __LIFECYCLE_H__ */
|