Skip to content

Commit da07d2d

Browse files
test: add missing includes in tests 1/n
Signed-off-by: Mateusz Jablonski <[email protected]>
1 parent f6b9454 commit da07d2d

File tree

15 files changed

+32
-16
lines changed

15 files changed

+32
-16
lines changed

opencl/test/unit_test/command_queue/hardware_interface_helper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2022 Intel Corporation
2+
* Copyright (C) 2022-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -20,7 +20,7 @@ inline NEO::HardwareInterfaceWalkerArgs createHardwareInterfaceWalkerArgs(size_t
2020
return args;
2121
}
2222

23-
inline NEO::HardwareInterfaceWalkerArgs createHardwareInterfaceWalkerArgs(size_t wkgSizeArray[3], Vec3<size_t> &wgInfo, PreemptionMode mode) {
23+
inline NEO::HardwareInterfaceWalkerArgs createHardwareInterfaceWalkerArgs(size_t wkgSizeArray[3], Vec3<size_t> &wgInfo, NEO::PreemptionMode mode) {
2424
NEO::HardwareInterfaceWalkerArgs args = createHardwareInterfaceWalkerArgs(wkgSizeArray, wgInfo);
2525
args.preemptionMode = mode;
2626

opencl/test/unit_test/command_stream/command_stream_receiver_hw_fixture.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
*/
77

88
#pragma once
9+
#include "shared/source/command_stream/command_stream_receiver.h"
10+
#include "shared/source/helpers/blit_properties.h"
11+
#include "shared/source/helpers/blit_properties_container.h"
912
#include "shared/source/helpers/timestamp_packet_container.h"
1013
#include "shared/test/common/helpers/debug_manager_state_restore.h"
1114
#include "shared/test/common/test_macros/hw_test.h"

opencl/test/unit_test/fixtures/buffer_enqueue_fixture.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2019-2022 Intel Corporation
2+
* Copyright (C) 2019-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -21,9 +21,6 @@ using namespace NEO;
2121

2222
struct BufferEnqueueFixture : public ClHardwareParse,
2323
public ::testing::Test {
24-
BufferEnqueueFixture(void)
25-
: buffer(nullptr) {
26-
}
2724

2825
void SetUp() override {
2926
executionEnvironment = getClExecutionEnvironmentImpl(hwInfo, 1);

opencl/test/unit_test/fixtures/device_instrumentation_fixture.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018-2022 Intel Corporation
2+
* Copyright (C) 2018-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -18,7 +18,7 @@ struct HardwareInfo;
1818
struct DeviceInstrumentationFixture {
1919
void setUp(bool instrumentation);
2020

21-
std::unique_ptr<ClDevice> device = nullptr;
21+
std::unique_ptr<ClDevice> device;
2222
HardwareInfo *hwInfo = nullptr;
2323
};
2424
} // namespace NEO

opencl/test/unit_test/fixtures/kernel_arg_fixture.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using namespace NEO;
1717

1818
KernelImageArgTest::~KernelImageArgTest() = default;
19+
KernelImageArgTest::KernelImageArgTest() = default;
1920

2021
void KernelImageArgTest::SetUp() {
2122
pKernelInfo = std::make_unique<MockKernelInfo>();

opencl/test/unit_test/fixtures/kernel_arg_fixture.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018-2023 Intel Corporation
2+
* Copyright (C) 2018-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -31,8 +31,7 @@ struct SKernelBinaryHeaderCommon;
3131

3232
class KernelImageArgTest : public Test<NEO::ClDeviceFixture> {
3333
public:
34-
KernelImageArgTest() {
35-
}
34+
KernelImageArgTest();
3635

3736
~KernelImageArgTest() override;
3837

opencl/test/unit_test/mocks/mock_buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
*/
77

88
#pragma once
9+
#include "shared/test/common/mocks/mock_device.h"
910
#include "shared/test/common/mocks/mock_graphics_allocation.h"
1011

1112
#include "opencl/source/mem_obj/buffer.h"
1213

1314
#include <optional>
1415

1516
namespace NEO {
16-
class MockDevice;
1717
class Context;
1818
class GmmHelper;
1919
class GraphicsAllocation;

shared/test/common/helpers/static_size3.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/*
2-
* Copyright (C) 2018-2023 Intel Corporation
2+
* Copyright (C) 2018-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
66
*/
77

88
#pragma once
9+
#include <cstddef>
910

1011
template <size_t x, size_t y, size_t z>
1112
struct StatickSize3 {

shared/test/common/mocks/mock_compiler_cache.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2022-2024 Intel Corporation
2+
* Copyright (C) 2022-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -9,6 +9,8 @@
99

1010
#include "shared/source/compiler_interface/compiler_cache.h"
1111

12+
#include <vector>
13+
1214
namespace NEO {
1315
class CompilerCacheMock : public CompilerCache {
1416
public:

shared/test/common/mocks/wddm_mock_helpers.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#pragma once
99

10+
#include "shared/source/memory_manager/memory_operations_status.h"
1011
#include "shared/source/os_interface/windows/wddm/wddm_defs.h"
1112
#include "shared/source/os_interface/windows/windows_defs.h"
1213

0 commit comments

Comments
 (0)