| 1 |
/* |
| 2 |
* This file is part of the flashrom project. |
| 3 |
* |
| 4 |
* Copyright 2021 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 |
|
| 16 |
#include "lifecycle.h" |
| 17 |
|
| 18 |
#if CONFIG_NICREALTEK == 1 |
| 19 |
void nicrealtek_basic_lifecycle_test_success(void **state) |
| 20 |
{ |
| 21 |
struct io_mock_fallback_open_state nicrealtek_fallback_open_state = { |
| 22 |
.noc = 0, |
| 23 |
.paths = { NULL }, |
| 24 |
}; |
| 25 |
const struct io_mock nicrealtek_io = { |
| 26 |
.fallback_open_state = &nicrealtek_fallback_open_state, |
| 27 |
}; |
| 28 |
|
| 29 |
run_basic_lifecycle(state, &nicrealtek_io, &programmer_nicrealtek, ""); |
| 30 |
} |
| 31 |
#else |
| 32 |
SKIP_TEST(nicrealtek_basic_lifecycle_test_success) |
| 33 |
#endif /* CONFIG_NICREALTEK */ |