From 51a3427a3abf103c59925cb734ef4c4aa14316ce Mon Sep 17 00:00:00 2001 From: Marat Dukhan Date: Mon, 8 May 2017 05:13:19 -0400 Subject: Add mocking and test with Raspberry Pi 2 /proc/cpuinfo --- include/cpuinfo-mock.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/cpuinfo-mock.h (limited to 'include/cpuinfo-mock.h') diff --git a/include/cpuinfo-mock.h b/include/cpuinfo-mock.h new file mode 100644 index 0000000..09ef36b --- /dev/null +++ b/include/cpuinfo-mock.h @@ -0,0 +1,26 @@ +#pragma once +#ifndef CPUINFO_MOCK_H +#define CPUINFO_MOCK_H + +#include + +#if !defined(CPUINFO_MOCK) || !(CPUINFO_MOCK) + #error This header is intended only for test use +#endif + + +#ifdef __cplusplus +extern "C" { +#endif + + +#if CPUINFO_ARCH_ARM && defined(__linux__) + void CPUINFO_ABI cpuinfo_set_proc_cpuinfo_path(const char* path); +#endif + + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* CPUINFO_MOCK_H */ -- cgit v1.2.3