ULT renaming: Block Kernel Manager tests

Related-To: NEO-2236

Change-Id: Ice2aa7daa4ef3c0b91b3788f570ff8b41eee1f0b
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
Adam Cetnerowski
2020-07-13 12:56:33 +02:00
committed by sys_ocldev
parent eb766be160
commit 77dbdf17d1

View File

@@ -15,7 +15,7 @@
using namespace NEO;
TEST(BlockKernelManagerTest, pushPrivateSurfaceResizesArray) {
TEST(BlockKernelManagerTest, WhenPushingPrivateSurfaceThenPrivateSurfaceArrayIsResized) {
MockGraphicsAllocation allocation(0, 0);
KernelInfo *blockInfo = new KernelInfo;
MockBlockKernelManager blockManager;
@@ -29,7 +29,7 @@ TEST(BlockKernelManagerTest, pushPrivateSurfaceResizesArray) {
EXPECT_EQ(1u, blockManager.blockPrivateSurfaceArray.size());
}
TEST(BlockKernelManagerTest, pushPrivateSurfacePlacesAllocationInCorrectPosition) {
TEST(BlockKernelManagerTest, WhenPushingPrivateSurfaceThenAllocationsArePlacedInCorrectPosition) {
MockGraphicsAllocation allocation1(0, 0);
MockGraphicsAllocation allocation2(0, 0);
KernelInfo *blockInfo = new KernelInfo;
@@ -48,7 +48,7 @@ TEST(BlockKernelManagerTest, pushPrivateSurfacePlacesAllocationInCorrectPosition
EXPECT_EQ(&allocation2, blockManager.blockPrivateSurfaceArray[1]);
}
TEST(BlockKernelManagerTest, pushPrivateSurfaceSetsPrivateSurfaceArrayToNullptrOnFirstCall) {
TEST(BlockKernelManagerTest, WhenPushingPrivateSurfaceThenPrivateSurfaceArrayIsSetToNullptrOnFirstCall) {
MockGraphicsAllocation allocation(0, 0);
KernelInfo *blockInfo = new KernelInfo;
KernelInfo *blockInfo2 = new KernelInfo;
@@ -67,7 +67,7 @@ TEST(BlockKernelManagerTest, pushPrivateSurfaceSetsPrivateSurfaceArrayToNullptrO
EXPECT_EQ(nullptr, blockManager.blockPrivateSurfaceArray[2]);
}
TEST(BlockKernelManagerTest, getPrivateSurface) {
TEST(BlockKernelManagerTest, WhenGettingPrivateSurfaceThenValidAllocationIsReturned) {
MockGraphicsAllocation allocation(0, 0);
KernelInfo *blockInfo = new KernelInfo;
@@ -82,7 +82,7 @@ TEST(BlockKernelManagerTest, getPrivateSurface) {
EXPECT_EQ(&allocation, blockManager.getPrivateSurface(0));
}
TEST(BlockKernelManagerTest, getPrivateSurfaceWithOutOfBoundOrdinalRetunrsNullptr) {
TEST(BlockKernelManagerTest, GivenOutOfBoundIndexWhenGettingPrivateSurfaceThenNullptrIsReturned) {
MockBlockKernelManager blockManager;
EXPECT_EQ(nullptr, blockManager.getPrivateSurface(0));
EXPECT_EQ(nullptr, blockManager.getPrivateSurface(10));