xref: /aosp_15_r20/external/flashrom/tests/io_real.h (revision 0d6140be3aa665ecc836e8907834fcd3e3b018fc)
1*0d6140beSAndroid Build Coastguard Worker /*
2*0d6140beSAndroid Build Coastguard Worker  * This file is part of the flashrom project.
3*0d6140beSAndroid Build Coastguard Worker  *
4*0d6140beSAndroid Build Coastguard Worker  * Copyright 2022 Google LLC
5*0d6140beSAndroid Build Coastguard Worker  *
6*0d6140beSAndroid Build Coastguard Worker  * This program is free software; you can redistribute it and/or modify
7*0d6140beSAndroid Build Coastguard Worker  * it under the terms of the GNU General Public License as published by
8*0d6140beSAndroid Build Coastguard Worker  * the Free Software Foundation; version 2 of the License.
9*0d6140beSAndroid Build Coastguard Worker  *
10*0d6140beSAndroid Build Coastguard Worker  * This program is distributed in the hope that it will be useful,
11*0d6140beSAndroid Build Coastguard Worker  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12*0d6140beSAndroid Build Coastguard Worker  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*0d6140beSAndroid Build Coastguard Worker  * GNU General Public License for more details.
14*0d6140beSAndroid Build Coastguard Worker  */
15*0d6140beSAndroid Build Coastguard Worker 
16*0d6140beSAndroid Build Coastguard Worker #ifndef IO_REAL_H
17*0d6140beSAndroid Build Coastguard Worker #define IO_REAL_H
18*0d6140beSAndroid Build Coastguard Worker 
19*0d6140beSAndroid Build Coastguard Worker /* Detect file io that should not be mocked, for example code coverage writing
20*0d6140beSAndroid Build Coastguard Worker  * gcda files. Call io_mock_register with functions that defer to real io.
21*0d6140beSAndroid Build Coastguard Worker  */
22*0d6140beSAndroid Build Coastguard Worker void maybe_unmock_io(const char* pathname);
23*0d6140beSAndroid Build Coastguard Worker 
24*0d6140beSAndroid Build Coastguard Worker #endif /* IO_REAL_H */
25