2020-03-27 23:32:07 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "opencl/test/unit_test/mocks/mock_io_functions.h"
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
namespace IoFunctions {
|
|
|
|
fopenFuncPtr fopenPtr = &mockFopen;
|
|
|
|
vfprintfFuncPtr vfprintfPtr = &mockVfptrinf;
|
|
|
|
fcloseFuncPtr fclosePtr = &mockFclose;
|
2020-06-08 22:19:52 +08:00
|
|
|
getenvFuncPtr getenvPtr = &mockGetenv;
|
2020-03-27 23:32:07 +08:00
|
|
|
|
|
|
|
uint32_t mockFopenCalled = 0;
|
|
|
|
uint32_t mockVfptrinfCalled = 0;
|
|
|
|
uint32_t mockFcloseCalled = 0;
|
2020-07-13 21:14:16 +08:00
|
|
|
uint32_t mockGetenvCalled = 0;
|
|
|
|
|
2020-06-08 22:19:52 +08:00
|
|
|
bool returnMockEnvValue = false;
|
|
|
|
std::string mockEnvValue = "1";
|
2020-07-16 20:01:25 +08:00
|
|
|
std::set<std::string> notMockableEnvValues = {""};
|
2020-06-08 22:19:52 +08:00
|
|
|
|
2020-03-27 23:32:07 +08:00
|
|
|
} // namespace IoFunctions
|
|
|
|
} // namespace NEO
|