blob: da4f4a97a4e59d175dfea9033c76353060ea1833 [file] [log] [blame]
Nikolai Artemiev702c58a2020-09-16 14:12:22 +10001/*
2 * This file is part of the flashrom project.
3 *
4 * Copyright 2020 Google LLC
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
Edward O'Callaghan46f2d4e2020-05-20 20:10:20 +100016#ifndef TESTS_H
17#define TESTS_H
18
Edward O'Callaghan3cc70c22020-05-22 18:42:11 +100019/* helpers.c */
20void address_to_bits_test_success(void **state);
21void bitcount_test_success(void **state);
22void minmax_test_success(void **state);
23void strcat_realloc_test_success(void **state);
24void tolower_string_test_success(void **state);
25void reverse_byte_test_success(void **state);
26void reverse_bytes_test_success(void **state);
27
Edward O'Callaghan629b8f02020-05-22 16:46:52 +100028/* flashrom.c */
29void flashbuses_to_text_test_success(void **state);
30
Edward O'Callaghan41f48c72020-05-22 16:46:26 +100031/* spi25.c */
32void spi_write_enable_test_success(void **state);
33void spi_write_disable_test_success(void **state);
34void probe_spi_rdid_test_success(void **state);
35void probe_spi_rdid4_test_success(void **state);
36void probe_spi_rems_test_success(void **state);
37void probe_spi_res1_test_success(void **state);
38void probe_spi_res2_test_success(void **state);
39void probe_spi_res3_test_success(void **state);
40void probe_spi_at25f_test_success(void **state);
Edward O'Callaghan76d24452020-05-22 19:09:49 +100041void probe_spi_st95_test_success(void **state); /* spi95.c */
Edward O'Callaghan41f48c72020-05-22 16:46:26 +100042
Anastasia Klimchukcffaac12021-04-21 07:58:30 +100043/* init_shutdown.c */
44void dummy_init_and_shutdown_test_success(void **state);
Anastasia Klimchuk21e22ba2021-05-10 10:19:25 +100045void mec1308_init_and_shutdown_test_success(void **state);
46void ene_lpc_init_and_shutdown_test_success(void **state);
Anastasia Klimchuk98534e72021-04-23 15:47:03 +100047void linux_spi_init_and_shutdown_test_success(void **state);
Anastasia Klimchukcffaac12021-04-21 07:58:30 +100048
Edward O'Callaghan46f2d4e2020-05-20 20:10:20 +100049#endif /* TESTS_H */