From 3d51832498c2381dda0baa87fec8d7d7085e126d Mon Sep 17 00:00:00 2001 From: Katarzyna Cencelewska Date: Wed, 14 Feb 2024 17:42:39 +0000 Subject: [PATCH] test: add preemption field to mock objects Signed-off-by: Katarzyna Cencelewska --- level_zero/core/test/unit_tests/mocks/mock_cmdlist.h | 1 + shared/test/common/mocks/mock_device.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/level_zero/core/test/unit_tests/mocks/mock_cmdlist.h b/level_zero/core/test/unit_tests/mocks/mock_cmdlist.h index c73670be92..12acfb1cdf 100644 --- a/level_zero/core/test/unit_tests/mocks/mock_cmdlist.h +++ b/level_zero/core/test/unit_tests/mocks/mock_cmdlist.h @@ -91,6 +91,7 @@ struct WhiteBox<::L0::CommandListCoreFamily> using BaseClass::isTbxMode; using BaseClass::isTimestampEventForMultiTile; using BaseClass::latestOperationRequiredNonWalkerInOrderCmdsChaining; + using BaseClass::obtainKernelPreemptionMode; using BaseClass::partitionCount; using BaseClass::patternAllocations; using BaseClass::pipeControlMultiKernelEventSync; diff --git a/shared/test/common/mocks/mock_device.h b/shared/test/common/mocks/mock_device.h index 8e6c5b4535..2f2d117085 100644 --- a/shared/test/common/mocks/mock_device.h +++ b/shared/test/common/mocks/mock_device.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2023 Intel Corporation + * Copyright (C) 2018-2024 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -61,6 +61,7 @@ class MockDevice : public RootDevice { using Device::generateUuidFromPciBusInfo; using Device::getGlobalMemorySize; using Device::initializeCaps; + using Device::preemptionMode; using Device::regularContextPerBcsEngineAssignmentHelper; using Device::regularContextPerCcsEngineAssignmentHelper; using Device::regularEngineGroups;