ULT renaming: Command Parse Tests

Related-To: NEO-2236

Change-Id: I2cf5fc4e2a196a550a729bf8c3b09e4f095bf59b
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
Adam Cetnerowski
2020-01-13 12:55:55 -08:00
committed by sys_ocldev
parent bead2c992c
commit ac6db95f75

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017-2019 Intel Corporation
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -23,13 +23,13 @@ struct CommandParse
}
};
HWTEST_F(CommandParse, parseCommandBufferWithNULLBuffer) {
HWTEST_F(CommandParse, WhenGeneratingCommandBufferThenIsNotNull) {
typedef typename FamilyType::PARSE PARSE;
GenCmdList cmds;
EXPECT_FALSE(PARSE::parseCommandBuffer(cmds, nullptr, sizeof(void *)));
}
HWTEST_F(CommandParse, parseCommandBufferWithGarbage) {
HWTEST_F(CommandParse, WhenGeneratingCommandBufferThenDoesNotContainGarbage) {
typedef typename FamilyType::PARSE PARSE;
uint32_t buffer[30] = {0xbaadf00d};
GenCmdList cmds;
@ -37,14 +37,14 @@ HWTEST_F(CommandParse, parseCommandBufferWithGarbage) {
EXPECT_FALSE(PARSE::parseCommandBuffer(cmds, buffer, sizeof(uint32_t)));
}
HWTEST_F(CommandParse, getCommandLengthWithGarbage) {
HWTEST_F(CommandParse, GivenGarbageWhenGeneratingCommandBufferThenLengthIsZero) {
typedef typename FamilyType::PARSE PARSE;
uint32_t buffer[30] = {0xbaadf00d};
EXPECT_EQ(0u, PARSE::getCommandLength(buffer));
}
HWTEST_F(CommandParse, parseCommandBufferWithLength) {
HWTEST_F(CommandParse, WhenGeneratingCommandBufferThenBufferIsCorrect) {
typedef typename FamilyType::PARSE PARSE;
typedef typename FamilyType::WALKER_TYPE WALKER_TYPE;
GenCmdList cmds;