diff options
author | Marat Dukhan <maratek@gmail.com> | 2017-05-08 05:13:19 -0400 |
---|---|---|
committer | Marat Dukhan <maratek@gmail.com> | 2017-05-08 09:52:29 +0000 |
commit | 51a3427a3abf103c59925cb734ef4c4aa14316ce (patch) | |
tree | aa843a38c60020a77e95646cc835c9ff7503bba3 /include/cpuinfo-mock.h | |
parent | 1a6cf6bb66a6f1a6cb9861088e5f5623daaab04a (diff) | |
download | cpuinfo-51a3427a3abf103c59925cb734ef4c4aa14316ce.tar.gz |
Add mocking and test with Raspberry Pi 2 /proc/cpuinfo
Diffstat (limited to 'include/cpuinfo-mock.h')
-rw-r--r-- | include/cpuinfo-mock.h | 26 |
1 files changed, 26 insertions, 0 deletions
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 <cpuinfo.h> + +#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 */ |