From 97acc374e453233fed65b397c4195c21dd5a0a57 Mon Sep 17 00:00:00 2001 From: Anastasia Klimchuk Date: Fri, 17 Sep 2021 15:31:01 +1000 Subject: tests: Move current_io to io_mock.c be visible across tests tests.c is growing and needs to be split, specifically all libusb wraps need to be extracted into their own file. See later in the chain a lot more wraps are added for libusb functions. To be able to split it, current_io needs to be moved one level up, to be visible across tests. This allows having multiple files with wraps, and all the wraps can use current_io. BUG=b:181803212 TEST=builds and ninja test Change-Id: I5327b5de430afe13a8cc931c8b4b188dcb8c8cf6 Signed-off-by: Anastasia Klimchuk Reviewed-on: https://review.coreboot.org/c/flashrom/+/57915 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- tests/io_mock.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/io_mock.h') diff --git a/tests/io_mock.h b/tests/io_mock.h index a285e5345..7c235d820 100644 --- a/tests/io_mock.h +++ b/tests/io_mock.h @@ -95,4 +95,6 @@ struct io_mock { void io_mock_register(const struct io_mock *io); +const struct io_mock *get_io(void); + #endif -- cgit v1.2.3