Files
compute-runtime/opencl/test/unit_test/mocks/mock_os_context.h
Maciej Dziuban 264f20ea00 Pass EngineTypeUsage to OsContext creation
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
Related-To: NEO-5610
2021-03-16 10:21:18 +01:00

24 lines
646 B
C++

/*
* Copyright (C) 2019-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/os_interface/os_context.h"
namespace NEO {
class MockOsContext : public OsContext {
public:
using OsContext::checkDirectSubmissionSupportsEngine;
using OsContext::engineType;
using OsContext::getDeviceBitfield;
MockOsContext(uint32_t contextId, DeviceBitfield deviceBitfield,
EngineTypeUsage typeUsage, PreemptionMode preemptionMode,
bool rootDevice)
: OsContext(contextId, deviceBitfield, typeUsage, preemptionMode, rootDevice) {}
};
} // namespace NEO