/* * Copyright (C) 2020-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/helpers/heap_assigner.h" #include "shared/test/common/helpers/debug_manager_state_restore.h" #include "opencl/test/unit_test/fixtures/cl_device_fixture.h" #include "test.h" namespace NEO { using AlocationHelperTests = Test; HWTEST_F(AlocationHelperTests, givenLinearStreamTypeWhenUseExternalAllocatorForSshAndDshDisabledThenUse32BitIsFalse) { DebugManagerStateRestore dbgRestorer; DebugManager.flags.UseExternalAllocatorForSshAndDsh.set(true); HeapAssigner heapAssigner = {}; EXPECT_FALSE(heapAssigner.use32BitHeap(GraphicsAllocation::AllocationType::LINEAR_STREAM)); } } // namespace NEO