2019-01-19 01:40:42 +01:00
|
|
|
/*
|
2023-10-20 14:34:45 +00:00
|
|
|
* Copyright (C) 2019-2023 Intel Corporation
|
2019-01-19 01:40:42 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2021-10-22 12:21:11 +00:00
|
|
|
#include "shared/test/common/os_interface/windows/mock_environment_variables.h"
|
2019-01-19 01:40:42 +01:00
|
|
|
|
2020-03-10 10:02:43 +01:00
|
|
|
#include "shared/source/os_interface/windows/environment_variables.h"
|
2019-01-19 01:40:42 +01:00
|
|
|
|
2023-10-20 14:34:45 +00:00
|
|
|
uint32_t (*getEnvironmentVariableMock)(const char *name, char *outBuffer, uint32_t outBufferSize) = nullptr;
|
2019-01-19 01:40:42 +01:00
|
|
|
|
|
|
|
|
uint32_t getEnvironmentVariable(const char *name, char *outBuffer, uint32_t outBufferSize) {
|
|
|
|
|
if (getEnvironmentVariableMock == nullptr) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
return getEnvironmentVariableMock(name, outBuffer, outBufferSize);
|
|
|
|
|
}
|