Nikolai Artemiev | 702c58a | 2020-09-16 14:12:22 +1000 | [diff] [blame] | 1 | /* |
| 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'Callaghan | 46f2d4e | 2020-05-20 20:10:20 +1000 | [diff] [blame] | 16 | #ifndef TESTS_H |
| 17 | #define TESTS_H |
| 18 | |
Edward O'Callaghan | 3cc70c2 | 2020-05-22 18:42:11 +1000 | [diff] [blame] | 19 | /* helpers.c */ |
| 20 | void address_to_bits_test_success(void **state); |
| 21 | void bitcount_test_success(void **state); |
| 22 | void minmax_test_success(void **state); |
| 23 | void strcat_realloc_test_success(void **state); |
| 24 | void tolower_string_test_success(void **state); |
| 25 | void reverse_byte_test_success(void **state); |
| 26 | void reverse_bytes_test_success(void **state); |
| 27 | |
Edward O'Callaghan | 629b8f0 | 2020-05-22 16:46:52 +1000 | [diff] [blame] | 28 | /* flashrom.c */ |
| 29 | void flashbuses_to_text_test_success(void **state); |
| 30 | |
Edward O'Callaghan | 41f48c7 | 2020-05-22 16:46:26 +1000 | [diff] [blame] | 31 | /* spi25.c */ |
| 32 | void spi_write_enable_test_success(void **state); |
| 33 | void spi_write_disable_test_success(void **state); |
| 34 | void probe_spi_rdid_test_success(void **state); |
| 35 | void probe_spi_rdid4_test_success(void **state); |
| 36 | void probe_spi_rems_test_success(void **state); |
| 37 | void probe_spi_res1_test_success(void **state); |
| 38 | void probe_spi_res2_test_success(void **state); |
| 39 | void probe_spi_res3_test_success(void **state); |
| 40 | void probe_spi_at25f_test_success(void **state); |
Edward O'Callaghan | 76d2445 | 2020-05-22 19:09:49 +1000 | [diff] [blame] | 41 | void probe_spi_st95_test_success(void **state); /* spi95.c */ |
Edward O'Callaghan | 41f48c7 | 2020-05-22 16:46:26 +1000 | [diff] [blame] | 42 | |
Anastasia Klimchuk | cffaac1 | 2021-04-21 07:58:30 +1000 | [diff] [blame] | 43 | /* init_shutdown.c */ |
| 44 | void dummy_init_and_shutdown_test_success(void **state); |
Anastasia Klimchuk | 98534e7 | 2021-04-23 15:47:03 +1000 | [diff] [blame] | 45 | void linux_spi_init_and_shutdown_test_success(void **state); |
Anastasia Klimchuk | cffaac1 | 2021-04-21 07:58:30 +1000 | [diff] [blame] | 46 | |
Edward O'Callaghan | 46f2d4e | 2020-05-20 20:10:20 +1000 | [diff] [blame] | 47 | #endif /* TESTS_H */ |