compute-runtime/shared/test/common/mock_gdi/mock_create_gdi.cpp

27 lines
610 B
C++

/*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/os_interface/windows/gdi_interface.h"
#include "shared/test/common/mock_gdi/mock_os_library.h"
namespace NEO {
inline const std::string getGdiName() {
if (DebugManager.flags.OverrideGdiPath.get() != "unk") {
return DebugManager.flags.OverrideGdiPath.get();
} else {
return Os::gdiDllName;
}
}
NEO::OsLibrary *Gdi::createGdiDLL() {
return NEO::MockOsLibrary::load(getGdiName());
}
} // namespace NEO