Files
compute-runtime/opencl/test/unit_test/mocks/mock_os_context.h
Andrzej Swierczynski 52622eab67 Correct tests: pass valid device bitfield [2/n]
Related-To: NEO-4645

Change-Id: I5fe52cd9ffefea4f131a5b79b292175106a082c0
Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
2020-06-05 10:05:10 +02:00

23 lines
652 B
C++

/*
* Copyright (C) 2019-2020 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::getDeviceBitfield;
MockOsContext(uint32_t contextId, DeviceBitfield deviceBitfield,
aub_stream::EngineType engineType, PreemptionMode preemptionMode,
bool lowPriority, bool internalEngine, bool rootDevice)
: OsContext(contextId, deviceBitfield, engineType, preemptionMode,
lowPriority, internalEngine, rootDevice) {}
};
} // namespace NEO