Files
compute-runtime/shared/test/common/helpers/hw_helper_extended_tests.cpp
lgotszal 3bd4bca911 Copyright header update
Dates corrected in copyright headers to reflect original publication date
(2018 for OpenCL, 2020 for Level Zero).

Signed-off-by: lgotszal <lukasz.gotszald@intel.com>
2021-05-17 20:38:19 +02:00

27 lines
763 B
C++

/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/hw_helper.h"
#include "shared/test/common/fixtures/device_fixture.h"
#include "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);
}