Files
compute-runtime/shared/test/unit_test/helpers/hw_helper_extended_tests.cpp
Mateusz Jablonski 6a46e8f0ca Correct method names in device and module fixtures
correct naming in derived classes

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-08-12 10:40:56 +02:00

27 lines
802 B
C++

/*
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/hw_helper.h"
#include "shared/test/common/fixtures/device_fixture.h"
#include "shared/test/common/test_macros/hw_test.h"
using namespace NEO;
typedef Test<DeviceFixture> HwHelperTest;
HWTEST_F(HwHelperTest, GivenHwInfoWithEnabledBliterWhenCheckCopyEnginesCountThenReturnedOne) {
HardwareInfo hwInfo{};
hwInfo.capabilityTable.blitterOperationsSupported = true;
EXPECT_EQ(HwHelper::getCopyEnginesCount(hwInfo), 1u);
}
HWTEST_F(HwHelperTest, GivenHwInfoWithDisabledBliterWhenCheckCopyEnginesCountThenReturnedZero) {
HardwareInfo hwInfo{};
hwInfo.capabilityTable.blitterOperationsSupported = false;
EXPECT_EQ(HwHelper::getCopyEnginesCount(hwInfo), 0u);
}