From 7d8e08f00b649e3e89dd89d33d0e23bfeef8ecb0 Mon Sep 17 00:00:00 2001 From: Kamil Kopryk Date: Thu, 16 Jan 2025 08:16:38 +0000 Subject: [PATCH] test: adjust code to compile with c++20 2/n Related-To: NEO-10767 Signed-off-by: Kamil Kopryk --- .../command_stream_receiver_flush_task_3_tests.cpp | 3 +-- shared/test/common/mocks/mock_command_stream_receiver.h | 3 ++- .../test/unit_test/command_stream/tbx_command_stream_tests.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/opencl/test/unit_test/command_stream/command_stream_receiver_flush_task_3_tests.cpp b/opencl/test/unit_test/command_stream/command_stream_receiver_flush_task_3_tests.cpp index 6585256674..9b9283d8bd 100644 --- a/opencl/test/unit_test/command_stream/command_stream_receiver_flush_task_3_tests.cpp +++ b/opencl/test/unit_test/command_stream/command_stream_receiver_flush_task_3_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2024 Intel Corporation + * Copyright (C) 2018-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -1215,7 +1215,6 @@ HWTEST_F(CommandStreamReceiverFlushTaskTests, givenEnabledDirectSubmissionUpdate struct MockCsrHwDirectSubmission : public MockCsrHw2 { using MockCsrHw2::MockCsrHw2; - using MockCsrHw2::directSubmission; bool isDirectSubmissionEnabled() const override { return true; } diff --git a/shared/test/common/mocks/mock_command_stream_receiver.h b/shared/test/common/mocks/mock_command_stream_receiver.h index eca14523d7..cab826ccaa 100644 --- a/shared/test/common/mocks/mock_command_stream_receiver.h +++ b/shared/test/common/mocks/mock_command_stream_receiver.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2024 Intel Corporation + * Copyright (C) 2020-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -323,6 +323,7 @@ class MockCsrHw2 : public CommandStreamReceiverHw { using CommandStreamReceiverHw::postInitFlagsSetup; using CommandStreamReceiverHw::programL3; using CommandStreamReceiverHw::programVFEState; + using CommandStreamReceiverHw::directSubmission; using CommandStreamReceiver::activePartitions; using CommandStreamReceiver::activePartitionsConfig; using CommandStreamReceiver::clearColorAllocation; diff --git a/shared/test/unit_test/command_stream/tbx_command_stream_tests.cpp b/shared/test/unit_test/command_stream/tbx_command_stream_tests.cpp index 69512daf21..7e7fe872a7 100644 --- a/shared/test/unit_test/command_stream/tbx_command_stream_tests.cpp +++ b/shared/test/unit_test/command_stream/tbx_command_stream_tests.cpp @@ -1586,7 +1586,7 @@ HWTEST_F(TbxCommandStreamTests, givenTbxModeWhenPageFaultManagerIsAvailableThenT AllocationType::bufferHostMemory, }; - std::set unsupportedOnceWritableTypes{AllocationType::gpuTimestampDeviceBuffer}; + std::set unsupportedOnceWritableTypes{AllocationType::gpuTimestampDeviceBuffer}; for (const auto &allocType : onceWritableTypes) { gfxAlloc1->setAllocationType(allocType);