mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Additionally, adding flag to override gdi Change-Id: I52759aa8c5f1149a34167429289d3f3876cdcb92
20 lines
580 B
C++
20 lines
580 B
C++
/*
|
|
* Copyright (C) 2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "unit_tests/os_interface/windows/mock_environment_variables.h"
|
|
|
|
#include "runtime/os_interface/windows/environment_variables.h"
|
|
|
|
extern uint32_t (*getEnvironmentVariableMock)(const char *name, char *outBuffer, uint32_t outBufferSize) = nullptr;
|
|
|
|
uint32_t getEnvironmentVariable(const char *name, char *outBuffer, uint32_t outBufferSize) {
|
|
if (getEnvironmentVariableMock == nullptr) {
|
|
return 0;
|
|
}
|
|
return getEnvironmentVariableMock(name, outBuffer, outBufferSize);
|
|
}
|