From ca518efc178fe9897f148dafec8654bf2fea60d7 Mon Sep 17 00:00:00 2001 From: "Warchulski, Jaroslaw" Date: Mon, 16 Jan 2023 16:40:13 +0000 Subject: [PATCH] Cleanup includes 33 Cleaned up files: shared/test/common/fixtures/device_fixture.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw --- opencl/test/unit_test/gen11/cl_hw_helper_tests_gen11.cpp | 1 + opencl/test/unit_test/gen11/ehl/test_device_caps_ehl.cpp | 3 ++- opencl/test/unit_test/gen9/cl_hw_helper_tests_gen9.cpp | 1 + opencl/test/unit_test/gen9/glk/test_device_caps_glk.cpp | 3 ++- .../test/common/fixtures/command_stream_receiver_fixture.inl | 3 ++- shared/test/common/fixtures/device_fixture.h | 2 +- shared/test/unit_test/aub/aub_helper_tests.cpp | 3 ++- .../command_stream_receiver_with_aub_dump_tests.cpp | 1 + .../unit_test/command_stream/tbx_command_stream_tests.cpp | 1 + shared/test/unit_test/encoders/command_encoder_tests_dg2.cpp | 1 + shared/test/unit_test/encoders/test_command_encoder.cpp | 3 ++- shared/test/unit_test/gen11/hw_helper_tests_gen11.cpp | 1 + .../gen11/tbx_command_stream_receiver_tests_gen11.cpp | 3 ++- shared/test/unit_test/gen11/test_device_caps_gen11.cpp | 3 ++- shared/test/unit_test/gen11/test_encode_math_gen11.cpp | 3 ++- .../gen12lp/adlp/command_stream_receiver_hw_tests_adlp.cpp | 3 ++- .../gen12lp/aub_command_stream_receiver_tests_gen12lp.inl | 3 ++- .../test/unit_test/gen12lp/test_command_encoder_gen12lp.cpp | 1 + shared/test/unit_test/gen12lp/test_encode_math_gen12lp.cpp | 3 ++- .../gen12lp/tgllp/linux/hw_info_config_tests_tgllp.cpp | 1 + shared/test/unit_test/gen8/hw_helper_tests_gen8.cpp | 1 + shared/test/unit_test/gen8/test_device_caps_gen8.cpp | 3 ++- shared/test/unit_test/gen8/test_encode_math_gen8.cpp | 3 ++- shared/test/unit_test/gen9/bxt/device_tests_bxt.cpp | 3 ++- shared/test/unit_test/gen9/hw_helper_tests_gen9.cpp | 1 + shared/test/unit_test/gen9/skl/device_tests_skl.cpp | 3 ++- shared/test/unit_test/gen9/test_command_encoder_gen9.cpp | 3 ++- shared/test/unit_test/gen9/test_device_caps_gen9.cpp | 4 +++- shared/test/unit_test/gen9/test_encode_math_gen9.cpp | 3 ++- shared/test/unit_test/heap_assigner/heap_assigner_tests.cpp | 3 ++- shared/test/unit_test/helpers/blit_commands_helper_tests.cpp | 1 + shared/test/unit_test/helpers/blit_commands_helper_tests.inl | 5 ++++- .../test/unit_test/helpers/compiler_hw_info_config_tests.cpp | 1 + .../helpers/engine_node_helper_tests_xehp_and_later.cpp | 3 ++- shared/test/unit_test/helpers/hw_helper_default_tests.cpp | 3 ++- .../test/unit_test/helpers/hw_helper_tests_pvc_and_later.cpp | 1 + shared/test/unit_test/helpers/kernel_helpers_tests.cpp | 3 ++- shared/test/unit_test/helpers/state_base_address_tests.cpp | 3 ++- shared/test/unit_test/helpers/timestamp_packet_tests.cpp | 1 + .../unit_test/memory_manager/special_heap_pool_tests.cpp | 1 + .../os_interface/linux/hw_info_config_linux_tests.cpp | 4 +++- .../os_interface/windows/device_command_stream_tests.cpp | 1 + .../os_interface/windows/wddm_memory_reservation_tests.cpp | 1 + .../os_interface/windows/wddm_special_heap_test.cpp | 1 + .../scratch_space_controler_tests.cpp | 3 ++- .../scratch_space_controler_xehp_and_later_tests.cpp | 3 ++- .../test/unit_test/utilities/software_tags_manager_tests.cpp | 3 ++- .../unit_test/xe_hpc_core/hw_helper_xe_hpc_core_tests.cpp | 3 ++- .../xe_hpc_core/pvc/engine_node_helper_tests_pvc.cpp | 1 + .../test/unit_test/xe_hpc_core/pvc/hw_helper_tests_pvc.cpp | 3 ++- .../test/unit_test/xe_hpc_core/pvc/test_device_caps_pvc.cpp | 3 ++- .../xe_hpc_core/pvc/test_encode_dispatch_kernel_pvc.cpp | 1 + shared/test/unit_test/xe_hpc_core/pvc/test_sample_pvc.cpp | 3 ++- .../unit_test/xe_hpc_core/test_device_caps_xe_hpc_core.cpp | 3 ++- .../test/unit_test/xe_hpc_core/test_encode_xe_hpc_core.cpp | 1 + .../test/unit_test/xe_hpc_core/test_sample_xe_hpc_core.cpp | 3 ++- .../test/unit_test/xe_hpg_core/dg2/hw_helper_tests_dg2.cpp | 1 + .../unit_test/xe_hpg_core/dg2/hw_info_config_tests_dg2.cpp | 1 + .../test/unit_test/xe_hpg_core/dg2/test_device_caps_dg2.cpp | 1 + shared/test/unit_test/xe_hpg_core/dg2/test_encode_dg2.cpp | 1 + .../test/unit_test/xe_hpg_core/hw_cmds_xe_hpg_core_tests.cpp | 3 ++- .../unit_test/xe_hpg_core/hw_helper_tests_xe_hpg_core.cpp | 1 + .../test/unit_test/xe_hpg_core/mtl/hw_helper_tests_mtl.cpp | 1 + .../test/unit_test/xe_hpg_core/mtl/test_device_caps_mtl.cpp | 3 ++- .../xe_hpg_core/mtl/test_encode_dispatch_kernel_mtl.cpp | 3 ++- .../unit_test/xe_hpg_core/test_device_caps_xe_hpg_core.cpp | 1 + 66 files changed, 107 insertions(+), 38 deletions(-) diff --git a/opencl/test/unit_test/gen11/cl_hw_helper_tests_gen11.cpp b/opencl/test/unit_test/gen11/cl_hw_helper_tests_gen11.cpp index 760b934ecf..cfff1513cf 100644 --- a/opencl/test/unit_test/gen11/cl_hw_helper_tests_gen11.cpp +++ b/opencl/test/unit_test/gen11/cl_hw_helper_tests_gen11.cpp @@ -6,6 +6,7 @@ */ #include "shared/source/gen11/hw_cmds.h" +#include "shared/test/common/helpers/default_hw_info.h" #include "shared/test/common/helpers/hw_helper_tests.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" diff --git a/opencl/test/unit_test/gen11/ehl/test_device_caps_ehl.cpp b/opencl/test/unit_test/gen11/ehl/test_device_caps_ehl.cpp index efcd3ed871..1cfa0806c8 100644 --- a/opencl/test/unit_test/gen11/ehl/test_device_caps_ehl.cpp +++ b/opencl/test/unit_test/gen11/ehl/test_device_caps_ehl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 Intel Corporation + * Copyright (C) 2019-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -7,6 +7,7 @@ #include "shared/source/gen11/hw_cmds_ehl.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/opencl/test/unit_test/gen9/cl_hw_helper_tests_gen9.cpp b/opencl/test/unit_test/gen9/cl_hw_helper_tests_gen9.cpp index 819e203fad..a58ffe000f 100644 --- a/opencl/test/unit_test/gen9/cl_hw_helper_tests_gen9.cpp +++ b/opencl/test/unit_test/gen9/cl_hw_helper_tests_gen9.cpp @@ -6,6 +6,7 @@ */ #include "shared/source/gen9/hw_cmds.h" +#include "shared/test/common/helpers/default_hw_info.h" #include "shared/test/common/helpers/hw_helper_tests.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" diff --git a/opencl/test/unit_test/gen9/glk/test_device_caps_glk.cpp b/opencl/test/unit_test/gen9/glk/test_device_caps_glk.cpp index 1b54749927..fdf523ec6a 100644 --- a/opencl/test/unit_test/gen9/glk/test_device_caps_glk.cpp +++ b/opencl/test/unit_test/gen9/glk/test_device_caps_glk.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2022 Intel Corporation + * Copyright (C) 2018-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -8,6 +8,7 @@ #include "shared/source/gen9/hw_cmds_glk.h" #include "shared/source/memory_manager/memory_manager.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/shared/test/common/fixtures/command_stream_receiver_fixture.inl b/shared/test/common/fixtures/command_stream_receiver_fixture.inl index 48fdbb4386..3e66fc74c4 100644 --- a/shared/test/common/fixtures/command_stream_receiver_fixture.inl +++ b/shared/test/common/fixtures/command_stream_receiver_fixture.inl @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 Intel Corporation + * Copyright (C) 2022-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -8,6 +8,7 @@ #include "shared/source/command_stream/stream_properties.h" #include "shared/test/common/fixtures/command_stream_receiver_fixture.h" #include "shared/test/common/libult/ult_command_stream_receiver.h" +#include "shared/test/common/mocks/mock_device.h" #include "gtest/gtest.h" diff --git a/shared/test/common/fixtures/device_fixture.h b/shared/test/common/fixtures/device_fixture.h index 1ec01b661d..e48aedc085 100644 --- a/shared/test/common/fixtures/device_fixture.h +++ b/shared/test/common/fixtures/device_fixture.h @@ -8,9 +8,9 @@ #pragma once #include "shared/source/command_stream/task_count_helper.h" #include "shared/source/helpers/hw_info.h" -#include "shared/test/common/mocks/mock_device.h" namespace NEO { + class MockDevice; struct DeviceFixture { diff --git a/shared/test/unit_test/aub/aub_helper_tests.cpp b/shared/test/unit_test/aub/aub_helper_tests.cpp index 94aaa88010..1709d5eed0 100644 --- a/shared/test/unit_test/aub/aub_helper_tests.cpp +++ b/shared/test/unit_test/aub/aub_helper_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2022 Intel Corporation + * Copyright (C) 2018-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -14,6 +14,7 @@ #include "shared/source/tbx/tbx_proto.h" #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" +#include "shared/test/common/helpers/default_hw_info.h" #include "shared/test/common/test_macros/hw_test.h" #include "shared/test/unit_test/mocks/mock_lrca_helper.h" diff --git a/shared/test/unit_test/command_stream/command_stream_receiver_with_aub_dump_tests.cpp b/shared/test/unit_test/command_stream/command_stream_receiver_with_aub_dump_tests.cpp index 61d6dd0bc0..dd36030429 100644 --- a/shared/test/unit_test/command_stream/command_stream_receiver_with_aub_dump_tests.cpp +++ b/shared/test/unit_test/command_stream/command_stream_receiver_with_aub_dump_tests.cpp @@ -27,6 +27,7 @@ #include "shared/test/common/mocks/mock_aub_center.h" #include "shared/test/common/mocks/mock_aub_csr.h" #include "shared/test/common/mocks/mock_aub_manager.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/mocks/mock_execution_environment.h" #include "shared/test/common/mocks/mock_os_context.h" #include "shared/test/common/test_macros/hw_test.h" 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 2181973422..caa98ef2f5 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 @@ -26,6 +26,7 @@ #include "shared/test/common/mocks/mock_aub_center.h" #include "shared/test/common/mocks/mock_aub_manager.h" #include "shared/test/common/mocks/mock_aub_subcapture_manager.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/mocks/mock_execution_environment.h" #include "shared/test/common/mocks/mock_graphics_allocation.h" #include "shared/test/common/mocks/mock_os_context.h" diff --git a/shared/test/unit_test/encoders/command_encoder_tests_dg2.cpp b/shared/test/unit_test/encoders/command_encoder_tests_dg2.cpp index 236d42513c..1762c3b916 100644 --- a/shared/test/unit_test/encoders/command_encoder_tests_dg2.cpp +++ b/shared/test/unit_test/encoders/command_encoder_tests_dg2.cpp @@ -10,6 +10,7 @@ #include "shared/source/os_interface/hw_info_config.h" #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/hw_test.h" using namespace NEO; diff --git a/shared/test/unit_test/encoders/test_command_encoder.cpp b/shared/test/unit_test/encoders/test_command_encoder.cpp index 572f26af00..d3b0207a35 100644 --- a/shared/test/unit_test/encoders/test_command_encoder.cpp +++ b/shared/test/unit_test/encoders/test_command_encoder.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2022 Intel Corporation + * Copyright (C) 2021-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -9,6 +9,7 @@ #include "shared/source/command_container/command_encoder.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/mocks/mock_graphics_allocation.h" #include "shared/test/common/test_macros/hw_test.h" diff --git a/shared/test/unit_test/gen11/hw_helper_tests_gen11.cpp b/shared/test/unit_test/gen11/hw_helper_tests_gen11.cpp index bfc7fe9326..cfe253048e 100644 --- a/shared/test/unit_test/gen11/hw_helper_tests_gen11.cpp +++ b/shared/test/unit_test/gen11/hw_helper_tests_gen11.cpp @@ -9,6 +9,7 @@ #include "shared/source/helpers/hw_helper.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h" #include "shared/test/common/helpers/hw_helper_tests.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" using GfxCoreHelperTestGen11 = GfxCoreHelperTest; diff --git a/shared/test/unit_test/gen11/tbx_command_stream_receiver_tests_gen11.cpp b/shared/test/unit_test/gen11/tbx_command_stream_receiver_tests_gen11.cpp index 424cf0b1d0..9b21ef07c5 100644 --- a/shared/test/unit_test/gen11/tbx_command_stream_receiver_tests_gen11.cpp +++ b/shared/test/unit_test/gen11/tbx_command_stream_receiver_tests_gen11.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 Intel Corporation + * Copyright (C) 2019-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -8,6 +8,7 @@ #include "shared/source/command_stream/tbx_command_stream_receiver_hw.h" #include "shared/source/gen11/hw_cmds.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/shared/test/unit_test/gen11/test_device_caps_gen11.cpp b/shared/test/unit_test/gen11/test_device_caps_gen11.cpp index 002c7632a5..1fcab9e6b4 100644 --- a/shared/test/unit_test/gen11/test_device_caps_gen11.cpp +++ b/shared/test/unit_test/gen11/test_device_caps_gen11.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 Intel Corporation + * Copyright (C) 2019-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -8,6 +8,7 @@ #include "shared/source/gen11/hw_cmds.h" #include "shared/source/helpers/hw_helper.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/shared/test/unit_test/gen11/test_encode_math_gen11.cpp b/shared/test/unit_test/gen11/test_encode_math_gen11.cpp index b187862156..04dde53da5 100644 --- a/shared/test/unit_test/gen11/test_encode_math_gen11.cpp +++ b/shared/test/unit_test/gen11/test_encode_math_gen11.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 Intel Corporation + * Copyright (C) 2020-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -10,6 +10,7 @@ #include "shared/source/helpers/register_offsets.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/shared/test/unit_test/gen12lp/adlp/command_stream_receiver_hw_tests_adlp.cpp b/shared/test/unit_test/gen12lp/adlp/command_stream_receiver_hw_tests_adlp.cpp index 8dc7dfbfcb..6c19d5a5ae 100644 --- a/shared/test/unit_test/gen12lp/adlp/command_stream_receiver_hw_tests_adlp.cpp +++ b/shared/test/unit_test/gen12lp/adlp/command_stream_receiver_hw_tests_adlp.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 Intel Corporation + * Copyright (C) 2022-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -10,6 +10,7 @@ #include "shared/test/common/fixtures/command_stream_receiver_fixture.h" #include "shared/test/common/helpers/default_hw_info.h" #include "shared/test/common/libult/ult_command_stream_receiver.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/shared/test/unit_test/gen12lp/aub_command_stream_receiver_tests_gen12lp.inl b/shared/test/unit_test/gen12lp/aub_command_stream_receiver_tests_gen12lp.inl index d97a0a0fb4..c4fb050d3f 100644 --- a/shared/test/unit_test/gen12lp/aub_command_stream_receiver_tests_gen12lp.inl +++ b/shared/test/unit_test/gen12lp/aub_command_stream_receiver_tests_gen12lp.inl @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 Intel Corporation + * Copyright (C) 2019-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -13,6 +13,7 @@ #include "shared/test/common/helpers/engine_descriptor_helper.h" #include "shared/test/common/helpers/hw_helper_tests.h" #include "shared/test/common/mocks/mock_aub_csr.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/mocks/mock_graphics_allocation.h" #include "shared/test/common/mocks/mock_os_context.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" diff --git a/shared/test/unit_test/gen12lp/test_command_encoder_gen12lp.cpp b/shared/test/unit_test/gen12lp/test_command_encoder_gen12lp.cpp index dc26e7ecb7..150032e693 100644 --- a/shared/test/unit_test/gen12lp/test_command_encoder_gen12lp.cpp +++ b/shared/test/unit_test/gen12lp/test_command_encoder_gen12lp.cpp @@ -14,6 +14,7 @@ #include "shared/source/os_interface/os_context.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/hw_test.h" #include "shared/test/unit_test/fixtures/command_container_fixture.h" diff --git a/shared/test/unit_test/gen12lp/test_encode_math_gen12lp.cpp b/shared/test/unit_test/gen12lp/test_encode_math_gen12lp.cpp index 6d92bf2c0e..8ea544e1b8 100644 --- a/shared/test/unit_test/gen12lp/test_encode_math_gen12lp.cpp +++ b/shared/test/unit_test/gen12lp/test_encode_math_gen12lp.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 Intel Corporation + * Copyright (C) 2020-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -9,6 +9,7 @@ #include "shared/source/helpers/register_offsets.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/hw_test.h" using namespace NEO; diff --git a/shared/test/unit_test/gen12lp/tgllp/linux/hw_info_config_tests_tgllp.cpp b/shared/test/unit_test/gen12lp/tgllp/linux/hw_info_config_tests_tgllp.cpp index 452d547f06..748f508bb5 100644 --- a/shared/test/unit_test/gen12lp/tgllp/linux/hw_info_config_tests_tgllp.cpp +++ b/shared/test/unit_test/gen12lp/tgllp/linux/hw_info_config_tests_tgllp.cpp @@ -6,6 +6,7 @@ */ #include "shared/source/command_stream/preemption.h" +#include "shared/source/command_stream/preemption_mode.h" #include "shared/source/os_interface/hw_info_config.h" #include "shared/source/os_interface/os_interface.h" #include "shared/test/common/helpers/gtest_helpers.h" diff --git a/shared/test/unit_test/gen8/hw_helper_tests_gen8.cpp b/shared/test/unit_test/gen8/hw_helper_tests_gen8.cpp index 91ca73b714..70b892c9a3 100644 --- a/shared/test/unit_test/gen8/hw_helper_tests_gen8.cpp +++ b/shared/test/unit_test/gen8/hw_helper_tests_gen8.cpp @@ -11,6 +11,7 @@ #include "shared/source/os_interface/hw_info_config.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h" #include "shared/test/common/helpers/hw_helper_tests.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" using GfxCoreHelperTestGen8 = GfxCoreHelperTest; diff --git a/shared/test/unit_test/gen8/test_device_caps_gen8.cpp b/shared/test/unit_test/gen8/test_device_caps_gen8.cpp index 15c4246797..0b4f08b9dc 100644 --- a/shared/test/unit_test/gen8/test_device_caps_gen8.cpp +++ b/shared/test/unit_test/gen8/test_device_caps_gen8.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2022 Intel Corporation + * Copyright (C) 2018-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -8,6 +8,7 @@ #include "shared/source/gen8/hw_cmds.h" #include "shared/source/helpers/hw_helper.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/shared/test/unit_test/gen8/test_encode_math_gen8.cpp b/shared/test/unit_test/gen8/test_encode_math_gen8.cpp index a67325945f..ad84c2ffc8 100644 --- a/shared/test/unit_test/gen8/test_encode_math_gen8.cpp +++ b/shared/test/unit_test/gen8/test_encode_math_gen8.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 Intel Corporation + * Copyright (C) 2020-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -10,6 +10,7 @@ #include "shared/source/helpers/register_offsets.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/shared/test/unit_test/gen9/bxt/device_tests_bxt.cpp b/shared/test/unit_test/gen9/bxt/device_tests_bxt.cpp index ff06a13b01..02a3e94b5d 100644 --- a/shared/test/unit_test/gen9/bxt/device_tests_bxt.cpp +++ b/shared/test/unit_test/gen9/bxt/device_tests_bxt.cpp @@ -1,11 +1,12 @@ /* - * Copyright (C) 2018-2022 Intel Corporation + * Copyright (C) 2018-2023 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/hw_test.h" diff --git a/shared/test/unit_test/gen9/hw_helper_tests_gen9.cpp b/shared/test/unit_test/gen9/hw_helper_tests_gen9.cpp index cb3c679169..4242c66f73 100644 --- a/shared/test/unit_test/gen9/hw_helper_tests_gen9.cpp +++ b/shared/test/unit_test/gen9/hw_helper_tests_gen9.cpp @@ -9,6 +9,7 @@ #include "shared/source/helpers/hw_helper.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h" #include "shared/test/common/helpers/hw_helper_tests.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" using GfxCoreHelperTestGen9 = GfxCoreHelperTest; diff --git a/shared/test/unit_test/gen9/skl/device_tests_skl.cpp b/shared/test/unit_test/gen9/skl/device_tests_skl.cpp index 80826b9854..f58e406afb 100644 --- a/shared/test/unit_test/gen9/skl/device_tests_skl.cpp +++ b/shared/test/unit_test/gen9/skl/device_tests_skl.cpp @@ -1,11 +1,12 @@ /* - * Copyright (C) 2018-2022 Intel Corporation + * Copyright (C) 2018-2023 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/hw_test.h" diff --git a/shared/test/unit_test/gen9/test_command_encoder_gen9.cpp b/shared/test/unit_test/gen9/test_command_encoder_gen9.cpp index 893e644424..1ca4984662 100644 --- a/shared/test/unit_test/gen9/test_command_encoder_gen9.cpp +++ b/shared/test/unit_test/gen9/test_command_encoder_gen9.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 Intel Corporation + * Copyright (C) 2020-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -10,6 +10,7 @@ #include "shared/source/gen9/hw_cmds.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/shared/test/unit_test/gen9/test_device_caps_gen9.cpp b/shared/test/unit_test/gen9/test_device_caps_gen9.cpp index b3dc2a1e41..d118714b5a 100644 --- a/shared/test/unit_test/gen9/test_device_caps_gen9.cpp +++ b/shared/test/unit_test/gen9/test_device_caps_gen9.cpp @@ -1,13 +1,15 @@ /* - * Copyright (C) 2018-2022 Intel Corporation + * Copyright (C) 2018-2023 Intel Corporation * * SPDX-License-Identifier: MIT * */ +#include "shared/source/command_stream/preemption_mode.h" #include "shared/source/gen9/hw_cmds.h" #include "shared/source/helpers/hw_helper.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/shared/test/unit_test/gen9/test_encode_math_gen9.cpp b/shared/test/unit_test/gen9/test_encode_math_gen9.cpp index e5fb8e3843..941750fff0 100644 --- a/shared/test/unit_test/gen9/test_encode_math_gen9.cpp +++ b/shared/test/unit_test/gen9/test_encode_math_gen9.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 Intel Corporation + * Copyright (C) 2020-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -10,6 +10,7 @@ #include "shared/source/helpers/register_offsets.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/shared/test/unit_test/heap_assigner/heap_assigner_tests.cpp b/shared/test/unit_test/heap_assigner/heap_assigner_tests.cpp index 79491354f7..ef55a1129a 100644 --- a/shared/test/unit_test/heap_assigner/heap_assigner_tests.cpp +++ b/shared/test/unit_test/heap_assigner/heap_assigner_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 Intel Corporation + * Copyright (C) 2020-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -9,6 +9,7 @@ #include "shared/source/memory_manager/allocation_type.h" #include "shared/source/memory_manager/gfx_partition.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/helpers/default_hw_info.h" #include "shared/test/common/test_macros/hw_test.h" namespace NEO { diff --git a/shared/test/unit_test/helpers/blit_commands_helper_tests.cpp b/shared/test/unit_test/helpers/blit_commands_helper_tests.cpp index 7a42476b67..9f862a1a5f 100644 --- a/shared/test/unit_test/helpers/blit_commands_helper_tests.cpp +++ b/shared/test/unit_test/helpers/blit_commands_helper_tests.cpp @@ -14,6 +14,7 @@ #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" #include "shared/test/common/helpers/default_hw_info.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/mocks/mock_graphics_allocation.h" #include "shared/test/common/mocks/mock_timestamp_container.h" #include "shared/test/common/mocks/ult_device_factory.h" diff --git a/shared/test/unit_test/helpers/blit_commands_helper_tests.inl b/shared/test/unit_test/helpers/blit_commands_helper_tests.inl index b66f4f0b52..9bf3e3a8de 100644 --- a/shared/test/unit_test/helpers/blit_commands_helper_tests.inl +++ b/shared/test/unit_test/helpers/blit_commands_helper_tests.inl @@ -1,10 +1,13 @@ /* - * Copyright (C) 2021-2022 Intel Corporation + * Copyright (C) 2021-2023 Intel Corporation * * SPDX-License-Identifier: MIT * */ +#include "shared/source/command_stream/linear_stream.h" +#include "shared/source/device/device.h" +#include "shared/source/execution_environment/execution_environment.h" #include "shared/source/gmm_helper/gmm_helper.h" #include "shared/source/helpers/blit_commands_helper.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h" diff --git a/shared/test/unit_test/helpers/compiler_hw_info_config_tests.cpp b/shared/test/unit_test/helpers/compiler_hw_info_config_tests.cpp index 03adc1b982..f8990386eb 100644 --- a/shared/test/unit_test/helpers/compiler_hw_info_config_tests.cpp +++ b/shared/test/unit_test/helpers/compiler_hw_info_config_tests.cpp @@ -9,6 +9,7 @@ #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" #include "shared/test/common/helpers/unit_test_helper.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/hw_test.h" using namespace NEO; diff --git a/shared/test/unit_test/helpers/engine_node_helper_tests_xehp_and_later.cpp b/shared/test/unit_test/helpers/engine_node_helper_tests_xehp_and_later.cpp index 19003fc4ac..425549963d 100644 --- a/shared/test/unit_test/helpers/engine_node_helper_tests_xehp_and_later.cpp +++ b/shared/test/unit_test/helpers/engine_node_helper_tests_xehp_and_later.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2022 Intel Corporation + * Copyright (C) 2021-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -9,6 +9,7 @@ #include "shared/source/helpers/hw_helper.h" #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/hw_test.h" using namespace NEO; diff --git a/shared/test/unit_test/helpers/hw_helper_default_tests.cpp b/shared/test/unit_test/helpers/hw_helper_default_tests.cpp index 0a30a0ff03..1fb0faf778 100644 --- a/shared/test/unit_test/helpers/hw_helper_default_tests.cpp +++ b/shared/test/unit_test/helpers/hw_helper_default_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2022 Intel Corporation + * Copyright (C) 2018-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -8,6 +8,7 @@ #include "shared/source/helpers/hw_helper.h" #include "shared/source/helpers/hw_info.h" #include "shared/test/common/helpers/hw_helper_tests.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/hw_test.h" HWCMDTEST_F(IGFX_GEN8_CORE, GfxCoreHelperTest, givenGfxCoreHelperWhenAskedForHvAlign4RequiredThenReturnTrue) { diff --git a/shared/test/unit_test/helpers/hw_helper_tests_pvc_and_later.cpp b/shared/test/unit_test/helpers/hw_helper_tests_pvc_and_later.cpp index 5ef71a1a06..8a3e89d827 100644 --- a/shared/test/unit_test/helpers/hw_helper_tests_pvc_and_later.cpp +++ b/shared/test/unit_test/helpers/hw_helper_tests_pvc_and_later.cpp @@ -12,6 +12,7 @@ #include "shared/test/common/helpers/debug_manager_state_restore.h" #include "shared/test/common/helpers/hw_helper_tests.h" #include "shared/test/common/helpers/mock_hw_info_config_hw.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/hw_test.h" using GfxCoreHelperTestPvcAndLater = GfxCoreHelperTest; diff --git a/shared/test/unit_test/helpers/kernel_helpers_tests.cpp b/shared/test/unit_test/helpers/kernel_helpers_tests.cpp index 450ceaf31e..5dee056c87 100644 --- a/shared/test/unit_test/helpers/kernel_helpers_tests.cpp +++ b/shared/test/unit_test/helpers/kernel_helpers_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 Intel Corporation + * Copyright (C) 2019-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -11,6 +11,7 @@ #include "shared/source/helpers/kernel_helpers.h" #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/test.h" using namespace NEO; diff --git a/shared/test/unit_test/helpers/state_base_address_tests.cpp b/shared/test/unit_test/helpers/state_base_address_tests.cpp index 833e2e8a88..fc4acdafcc 100644 --- a/shared/test/unit_test/helpers/state_base_address_tests.cpp +++ b/shared/test/unit_test/helpers/state_base_address_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 Intel Corporation + * Copyright (C) 2020-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -10,6 +10,7 @@ #include "shared/source/command_container/command_encoder.h" #include "shared/source/gmm_helper/gmm_helper.h" #include "shared/source/memory_manager/allocation_properties.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/hw_test.h" #include "encode_surface_state_args.h" diff --git a/shared/test/unit_test/helpers/timestamp_packet_tests.cpp b/shared/test/unit_test/helpers/timestamp_packet_tests.cpp index 4eeb0a3a06..f3f4e14904 100644 --- a/shared/test/unit_test/helpers/timestamp_packet_tests.cpp +++ b/shared/test/unit_test/helpers/timestamp_packet_tests.cpp @@ -12,6 +12,7 @@ #include "shared/test/common/cmd_parse/hw_parse.h" #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/mocks/mock_execution_environment.h" #include "shared/test/common/mocks/mock_memory_manager.h" #include "shared/test/common/mocks/mock_timestamp_container.h" diff --git a/shared/test/unit_test/memory_manager/special_heap_pool_tests.cpp b/shared/test/unit_test/memory_manager/special_heap_pool_tests.cpp index cb0b8000a5..0b88a787ac 100644 --- a/shared/test/unit_test/memory_manager/special_heap_pool_tests.cpp +++ b/shared/test/unit_test/memory_manager/special_heap_pool_tests.cpp @@ -8,6 +8,7 @@ #include "shared/source/gmm_helper/gmm_helper.h" #include "shared/source/memory_manager/gfx_partition.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/mocks/mock_memory_manager.h" #include "shared/test/common/test_macros/test.h" #include "shared/test/unit_test/fixtures/front_window_fixture.h" diff --git a/shared/test/unit_test/os_interface/linux/hw_info_config_linux_tests.cpp b/shared/test/unit_test/os_interface/linux/hw_info_config_linux_tests.cpp index 955a9abcd1..9dad6bce52 100644 --- a/shared/test/unit_test/os_interface/linux/hw_info_config_linux_tests.cpp +++ b/shared/test/unit_test/os_interface/linux/hw_info_config_linux_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2022 Intel Corporation + * Copyright (C) 2018-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -7,6 +7,7 @@ #include "shared/test/unit_test/os_interface/linux/hw_info_config_linux_tests.h" +#include "shared/source/command_stream/preemption_mode.h" #include "shared/source/helpers/hw_helper.h" #include "shared/source/os_interface/linux/i915.h" #include "shared/source/os_interface/os_interface.h" @@ -15,6 +16,7 @@ #include "shared/test/common/helpers/hw_helper_tests.h" #include "shared/test/common/helpers/mock_hw_info_config_hw.h" #include "shared/test/common/helpers/unit_test_helper.h" +#include "shared/test/common/helpers/variable_backup.h" #include diff --git a/shared/test/unit_test/os_interface/windows/device_command_stream_tests.cpp b/shared/test/unit_test/os_interface/windows/device_command_stream_tests.cpp index 23bc9e0a55..b7a898f8d5 100644 --- a/shared/test/unit_test/os_interface/windows/device_command_stream_tests.cpp +++ b/shared/test/unit_test/os_interface/windows/device_command_stream_tests.cpp @@ -24,6 +24,7 @@ #include "shared/test/common/helpers/dispatch_flags_helper.h" #include "shared/test/common/helpers/engine_descriptor_helper.h" #include "shared/test/common/helpers/execution_environment_helper.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/mocks/mock_gmm_page_table_mngr.h" #include "shared/test/common/mocks/mock_io_functions.h" #include "shared/test/common/mocks/mock_submissions_aggregator.h" diff --git a/shared/test/unit_test/os_interface/windows/wddm_memory_reservation_tests.cpp b/shared/test/unit_test/os_interface/windows/wddm_memory_reservation_tests.cpp index 1c80083bdd..5c4e65717f 100644 --- a/shared/test/unit_test/os_interface/windows/wddm_memory_reservation_tests.cpp +++ b/shared/test/unit_test/os_interface/windows/wddm_memory_reservation_tests.cpp @@ -12,6 +12,7 @@ #include "shared/source/os_interface/os_interface.h" #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" +#include "shared/test/common/helpers/default_hw_info.h" #include "shared/test/common/mocks/mock_wddm.h" #include "shared/test/common/os_interface/windows/mock_wddm_memory_manager.h" #include "shared/test/common/test_macros/hw_test.h" diff --git a/shared/test/unit_test/os_interface/windows/wddm_special_heap_test.cpp b/shared/test/unit_test/os_interface/windows/wddm_special_heap_test.cpp index bd01075651..b9f3ce374e 100644 --- a/shared/test/unit_test/os_interface/windows/wddm_special_heap_test.cpp +++ b/shared/test/unit_test/os_interface/windows/wddm_special_heap_test.cpp @@ -11,6 +11,7 @@ #include "shared/source/os_interface/os_interface.h" #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" +#include "shared/test/common/helpers/default_hw_info.h" #include "shared/test/common/mocks/mock_wddm.h" #include "shared/test/common/os_interface/windows/mock_wddm_memory_manager.h" #include "shared/test/common/test_macros/hw_test.h" diff --git a/shared/test/unit_test/scratch_space_controler/scratch_space_controler_tests.cpp b/shared/test/unit_test/scratch_space_controler/scratch_space_controler_tests.cpp index 46aa7a02a3..9f0a903b21 100644 --- a/shared/test/unit_test/scratch_space_controler/scratch_space_controler_tests.cpp +++ b/shared/test/unit_test/scratch_space_controler/scratch_space_controler_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 Intel Corporation + * Copyright (C) 2020-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -8,6 +8,7 @@ #include "shared/source/command_stream/scratch_space_controller_base.h" #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/mocks/mock_command_stream_receiver.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/hw_test.h" using namespace NEO; diff --git a/shared/test/unit_test/scratch_space_controler/scratch_space_controler_xehp_and_later_tests.cpp b/shared/test/unit_test/scratch_space_controler/scratch_space_controler_xehp_and_later_tests.cpp index 3a386d4354..0b11c39965 100644 --- a/shared/test/unit_test/scratch_space_controler/scratch_space_controler_xehp_and_later_tests.cpp +++ b/shared/test/unit_test/scratch_space_controler/scratch_space_controler_xehp_and_later_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2022 Intel Corporation + * Copyright (C) 2021-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -10,6 +10,7 @@ #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" #include "shared/test/common/mocks/mock_command_stream_receiver.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/mocks/mock_graphics_allocation.h" #include "shared/test/common/test_macros/hw_test.h" diff --git a/shared/test/unit_test/utilities/software_tags_manager_tests.cpp b/shared/test/unit_test/utilities/software_tags_manager_tests.cpp index 45a6fd148f..2f85a28cbd 100644 --- a/shared/test/unit_test/utilities/software_tags_manager_tests.cpp +++ b/shared/test/unit_test/utilities/software_tags_manager_tests.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2022 Intel Corporation + * Copyright (C) 2021-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -10,6 +10,7 @@ #include "shared/source/utilities/software_tags_manager.h" #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/hw_test.h" using namespace NEO; diff --git a/shared/test/unit_test/xe_hpc_core/hw_helper_xe_hpc_core_tests.cpp b/shared/test/unit_test/xe_hpc_core/hw_helper_xe_hpc_core_tests.cpp index 159837c7ab..bf7e48c7af 100644 --- a/shared/test/unit_test/xe_hpc_core/hw_helper_xe_hpc_core_tests.cpp +++ b/shared/test/unit_test/xe_hpc_core/hw_helper_xe_hpc_core_tests.cpp @@ -1,11 +1,12 @@ /* - * Copyright (C) 2021-2022 Intel Corporation + * Copyright (C) 2021-2023 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/helpers/hw_helper.h" +#include "shared/source/os_interface/hw_info_config.h" #include "shared/test/common/helpers/default_hw_info.h" #include "shared/test/common/helpers/hw_helper_tests.h" #include "shared/test/common/mocks/mock_execution_environment.h" diff --git a/shared/test/unit_test/xe_hpc_core/pvc/engine_node_helper_tests_pvc.cpp b/shared/test/unit_test/xe_hpc_core/pvc/engine_node_helper_tests_pvc.cpp index 3d10390b07..48445eacc0 100644 --- a/shared/test/unit_test/xe_hpc_core/pvc/engine_node_helper_tests_pvc.cpp +++ b/shared/test/unit_test/xe_hpc_core/pvc/engine_node_helper_tests_pvc.cpp @@ -10,6 +10,7 @@ #include "shared/source/xe_hpc_core/hw_cmds_pvc.h" #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/mocks/mock_graphics_allocation.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/shared/test/unit_test/xe_hpc_core/pvc/hw_helper_tests_pvc.cpp b/shared/test/unit_test/xe_hpc_core/pvc/hw_helper_tests_pvc.cpp index 9be7fc25a3..7d3bbf2a3d 100644 --- a/shared/test/unit_test/xe_hpc_core/pvc/hw_helper_tests_pvc.cpp +++ b/shared/test/unit_test/xe_hpc_core/pvc/hw_helper_tests_pvc.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 Intel Corporation + * Copyright (C) 2022-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -11,6 +11,7 @@ #include "shared/test/common/helpers/debug_manager_state_restore.h" #include "shared/test/common/helpers/hw_helper_tests.h" #include "shared/test/common/helpers/ult_hw_config.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/shared/test/unit_test/xe_hpc_core/pvc/test_device_caps_pvc.cpp b/shared/test/unit_test/xe_hpc_core/pvc/test_device_caps_pvc.cpp index 0734c0a478..dfadbb3bd5 100644 --- a/shared/test/unit_test/xe_hpc_core/pvc/test_device_caps_pvc.cpp +++ b/shared/test/unit_test/xe_hpc_core/pvc/test_device_caps_pvc.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 Intel Corporation + * Copyright (C) 2022-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -7,6 +7,7 @@ #include "shared/source/xe_hpc_core/hw_cmds_pvc.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" using namespace NEO; diff --git a/shared/test/unit_test/xe_hpc_core/pvc/test_encode_dispatch_kernel_pvc.cpp b/shared/test/unit_test/xe_hpc_core/pvc/test_encode_dispatch_kernel_pvc.cpp index 1fd7317338..ef66a7d9b5 100644 --- a/shared/test/unit_test/xe_hpc_core/pvc/test_encode_dispatch_kernel_pvc.cpp +++ b/shared/test/unit_test/xe_hpc_core/pvc/test_encode_dispatch_kernel_pvc.cpp @@ -9,6 +9,7 @@ #include "shared/source/xe_hpc_core/hw_cmds_pvc.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h" #include "shared/test/common/helpers/default_hw_info.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/mocks/mock_execution_environment.h" #include "shared/test/common/test_macros/test.h" #include "shared/test/unit_test/fixtures/command_container_fixture.h" diff --git a/shared/test/unit_test/xe_hpc_core/pvc/test_sample_pvc.cpp b/shared/test/unit_test/xe_hpc_core/pvc/test_sample_pvc.cpp index 1e9bee89c9..e61e636d5b 100644 --- a/shared/test/unit_test/xe_hpc_core/pvc/test_sample_pvc.cpp +++ b/shared/test/unit_test/xe_hpc_core/pvc/test_sample_pvc.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 Intel Corporation + * Copyright (C) 2022-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -7,6 +7,7 @@ #include "shared/source/xe_hpc_core/hw_cmds_pvc.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/shared/test/unit_test/xe_hpc_core/test_device_caps_xe_hpc_core.cpp b/shared/test/unit_test/xe_hpc_core/test_device_caps_xe_hpc_core.cpp index 962f261e03..6d5119ba9d 100644 --- a/shared/test/unit_test/xe_hpc_core/test_device_caps_xe_hpc_core.cpp +++ b/shared/test/unit_test/xe_hpc_core/test_device_caps_xe_hpc_core.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 Intel Corporation + * Copyright (C) 2022-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -9,6 +9,7 @@ #include "shared/source/xe_hpc_core/hw_cmds.h" #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/helpers/hw_helper_tests.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "hw_cmds_xe_hpc_core_base.h" diff --git a/shared/test/unit_test/xe_hpc_core/test_encode_xe_hpc_core.cpp b/shared/test/unit_test/xe_hpc_core/test_encode_xe_hpc_core.cpp index 6cbaeca2a4..56e5127cd7 100644 --- a/shared/test/unit_test/xe_hpc_core/test_encode_xe_hpc_core.cpp +++ b/shared/test/unit_test/xe_hpc_core/test_encode_xe_hpc_core.cpp @@ -16,6 +16,7 @@ #include "shared/test/common/cmd_parse/gen_cmd_parse.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" #include "shared/test/common/helpers/default_hw_info.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/mocks/mock_execution_environment.h" #include "shared/test/common/test_macros/test.h" #include "shared/test/unit_test/fixtures/command_container_fixture.h" diff --git a/shared/test/unit_test/xe_hpc_core/test_sample_xe_hpc_core.cpp b/shared/test/unit_test/xe_hpc_core/test_sample_xe_hpc_core.cpp index 6b7029a90c..209a719fe7 100644 --- a/shared/test/unit_test/xe_hpc_core/test_sample_xe_hpc_core.cpp +++ b/shared/test/unit_test/xe_hpc_core/test_sample_xe_hpc_core.cpp @@ -1,11 +1,12 @@ /* - * Copyright (C) 2021-2022 Intel Corporation + * Copyright (C) 2021-2023 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/shared/test/unit_test/xe_hpg_core/dg2/hw_helper_tests_dg2.cpp b/shared/test/unit_test/xe_hpg_core/dg2/hw_helper_tests_dg2.cpp index d0084f7e75..f864e778a6 100644 --- a/shared/test/unit_test/xe_hpg_core/dg2/hw_helper_tests_dg2.cpp +++ b/shared/test/unit_test/xe_hpg_core/dg2/hw_helper_tests_dg2.cpp @@ -13,6 +13,7 @@ #include "shared/test/common/helpers/default_hw_info.h" #include "shared/test/common/helpers/gtest_helpers.h" #include "shared/test/common/helpers/hw_helper_tests.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/mocks/mock_execution_environment.h" #include "shared/test/common/mocks/ult_device_factory.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" diff --git a/shared/test/unit_test/xe_hpg_core/dg2/hw_info_config_tests_dg2.cpp b/shared/test/unit_test/xe_hpg_core/dg2/hw_info_config_tests_dg2.cpp index 27b1164a75..3c9c59162d 100644 --- a/shared/test/unit_test/xe_hpg_core/dg2/hw_info_config_tests_dg2.cpp +++ b/shared/test/unit_test/xe_hpg_core/dg2/hw_info_config_tests_dg2.cpp @@ -12,6 +12,7 @@ #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" #include "shared/test/common/helpers/default_hw_info.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/test.h" #include "shared/test/common/xe_hpg_core/dg2/product_configs_dg2.h" #include "shared/test/unit_test/fixtures/product_config_fixture.h" diff --git a/shared/test/unit_test/xe_hpg_core/dg2/test_device_caps_dg2.cpp b/shared/test/unit_test/xe_hpg_core/dg2/test_device_caps_dg2.cpp index 96eb19b3bf..59789d8bbf 100644 --- a/shared/test/unit_test/xe_hpg_core/dg2/test_device_caps_dg2.cpp +++ b/shared/test/unit_test/xe_hpg_core/dg2/test_device_caps_dg2.cpp @@ -8,6 +8,7 @@ #include "shared/source/helpers/basic_math.h" #include "shared/source/xe_hpg_core/hw_cmds_dg2.h" #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" using namespace NEO; diff --git a/shared/test/unit_test/xe_hpg_core/dg2/test_encode_dg2.cpp b/shared/test/unit_test/xe_hpg_core/dg2/test_encode_dg2.cpp index 09b5607970..eb73d040c6 100644 --- a/shared/test/unit_test/xe_hpg_core/dg2/test_encode_dg2.cpp +++ b/shared/test/unit_test/xe_hpg_core/dg2/test_encode_dg2.cpp @@ -11,6 +11,7 @@ #include "shared/source/kernel/kernel_descriptor.h" #include "shared/source/xe_hpg_core/hw_cmds_dg2.h" #include "shared/test/common/helpers/default_hw_info.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/mocks/mock_execution_environment.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" diff --git a/shared/test/unit_test/xe_hpg_core/hw_cmds_xe_hpg_core_tests.cpp b/shared/test/unit_test/xe_hpg_core/hw_cmds_xe_hpg_core_tests.cpp index 1451ec23f1..af3c8a7aaf 100644 --- a/shared/test/unit_test/xe_hpg_core/hw_cmds_xe_hpg_core_tests.cpp +++ b/shared/test/unit_test/xe_hpg_core/hw_cmds_xe_hpg_core_tests.cpp @@ -1,10 +1,11 @@ /* - * Copyright (C) 2021-2022 Intel Corporation + * Copyright (C) 2021-2023 Intel Corporation * * SPDX-License-Identifier: MIT * */ +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "shared/test/common/test_macros/test.h" #include "shared/test/unit_test/helpers/state_base_address_tests.h" diff --git a/shared/test/unit_test/xe_hpg_core/hw_helper_tests_xe_hpg_core.cpp b/shared/test/unit_test/xe_hpg_core/hw_helper_tests_xe_hpg_core.cpp index d22e4cac63..13b08b6b7c 100644 --- a/shared/test/unit_test/xe_hpg_core/hw_helper_tests_xe_hpg_core.cpp +++ b/shared/test/unit_test/xe_hpg_core/hw_helper_tests_xe_hpg_core.cpp @@ -15,6 +15,7 @@ #include "shared/test/common/helpers/debug_manager_state_restore.h" #include "shared/test/common/helpers/hw_helper_tests.h" #include "shared/test/common/helpers/unit_test_helper.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "hw_cmds_xe_hpg_core_base.h" diff --git a/shared/test/unit_test/xe_hpg_core/mtl/hw_helper_tests_mtl.cpp b/shared/test/unit_test/xe_hpg_core/mtl/hw_helper_tests_mtl.cpp index fdd957b4ed..bcf57e4fc0 100644 --- a/shared/test/unit_test/xe_hpg_core/mtl/hw_helper_tests_mtl.cpp +++ b/shared/test/unit_test/xe_hpg_core/mtl/hw_helper_tests_mtl.cpp @@ -13,6 +13,7 @@ #include "shared/test/common/helpers/gtest_helpers.h" #include "shared/test/common/helpers/hw_helper_tests.h" #include "shared/test/common/helpers/variable_backup.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/mocks/ult_device_factory.h" #include "shared/test/common/test_macros/hw_test.h" diff --git a/shared/test/unit_test/xe_hpg_core/mtl/test_device_caps_mtl.cpp b/shared/test/unit_test/xe_hpg_core/mtl/test_device_caps_mtl.cpp index dd9a70ad44..d75ae646c1 100644 --- a/shared/test/unit_test/xe_hpg_core/mtl/test_device_caps_mtl.cpp +++ b/shared/test/unit_test/xe_hpg_core/mtl/test_device_caps_mtl.cpp @@ -1,11 +1,12 @@ /* - * Copyright (C) 2022 Intel Corporation + * Copyright (C) 2022-2023 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/test/common/fixtures/device_fixture.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/hw_test.h" using namespace NEO; diff --git a/shared/test/unit_test/xe_hpg_core/mtl/test_encode_dispatch_kernel_mtl.cpp b/shared/test/unit_test/xe_hpg_core/mtl/test_encode_dispatch_kernel_mtl.cpp index 447cdfac6b..3a3bf8d9d7 100644 --- a/shared/test/unit_test/xe_hpg_core/mtl/test_encode_dispatch_kernel_mtl.cpp +++ b/shared/test/unit_test/xe_hpg_core/mtl/test_encode_dispatch_kernel_mtl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 Intel Corporation + * Copyright (C) 2022-2023 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -8,6 +8,7 @@ #include "shared/source/gmm_helper/gmm_helper.h" #include "shared/source/helpers/hw_helper.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/unit_test/fixtures/command_container_fixture.h" #include "shared/test/unit_test/mocks/mock_dispatch_kernel_encoder_interface.h" diff --git a/shared/test/unit_test/xe_hpg_core/test_device_caps_xe_hpg_core.cpp b/shared/test/unit_test/xe_hpg_core/test_device_caps_xe_hpg_core.cpp index 94fac46ef9..3693a92738 100644 --- a/shared/test/unit_test/xe_hpg_core/test_device_caps_xe_hpg_core.cpp +++ b/shared/test/unit_test/xe_hpg_core/test_device_caps_xe_hpg_core.cpp @@ -9,6 +9,7 @@ #include "shared/source/xe_hpg_core/hw_cmds.h" #include "shared/test/common/fixtures/device_fixture.h" #include "shared/test/common/helpers/hw_helper_tests.h" +#include "shared/test/common/mocks/mock_device.h" #include "shared/test/common/test_macros/header/per_product_test_definitions.h" #include "hw_cmds_xe_hpg_core_base.h"