1 /* 2 * This file is part of the flashrom project. 3 * 4 * Copyright 2022 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 #ifndef IO_REAL_H 17 #define IO_REAL_H 18 19 /* Detect file io that should not be mocked, for example code coverage writing 20 * gcda files. Call io_mock_register with functions that defer to real io. 21 */ 22 void maybe_unmock_io(const char* pathname); 23 24 #endif /* IO_REAL_H */ 25