ULT renaming: Fill buffer tests

Related-To: NEO-2236

Change-Id: Ie6464fb26c9271d936c114ea780fdfa9259bd3d0
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
Adam Cetnerowski 2019-09-26 10:54:12 +02:00 committed by sys_ocldev
parent cce6f8ecf3
commit badc704b92
1 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ struct EnqueueFillBuffer : public EnqueueFillBufferFixture,
} }
}; };
TEST_F(EnqueueFillBuffer, null_buffer) { TEST_F(EnqueueFillBuffer, GivenNullBufferWhenFillingBufferThenInvalidMemObjectErrorIsReturned) {
cl_float pattern = 1.0f; cl_float pattern = 1.0f;
auto retVal = clEnqueueFillBuffer( auto retVal = clEnqueueFillBuffer(
BaseClass::pCmdQ, BaseClass::pCmdQ,
@ -44,7 +44,7 @@ TEST_F(EnqueueFillBuffer, null_buffer) {
EXPECT_EQ(CL_INVALID_MEM_OBJECT, retVal); EXPECT_EQ(CL_INVALID_MEM_OBJECT, retVal);
} }
TEST_F(EnqueueFillBuffer, null_pattern) { TEST_F(EnqueueFillBuffer, GivenNullPatternWhenFillingBufferThenInvalidValueErrorIsReturned) {
cl_float pattern = 1.0f; cl_float pattern = 1.0f;
cl_uint numEventsInWaitList = 0; cl_uint numEventsInWaitList = 0;
cl_event *eventWaitList = nullptr; cl_event *eventWaitList = nullptr;
@ -64,7 +64,7 @@ TEST_F(EnqueueFillBuffer, null_pattern) {
EXPECT_EQ(CL_INVALID_VALUE, retVal); EXPECT_EQ(CL_INVALID_VALUE, retVal);
} }
TEST_F(EnqueueFillBuffer, null_event_list) { TEST_F(EnqueueFillBuffer, GivenNullEventListAndNumEventsNonZeroWhenFillingBufferThenInvalidEventWaitListErrorIsReturned) {
cl_float pattern = 1.0f; cl_float pattern = 1.0f;
auto retVal = clEnqueueFillBuffer( auto retVal = clEnqueueFillBuffer(
@ -81,7 +81,7 @@ TEST_F(EnqueueFillBuffer, null_event_list) {
EXPECT_EQ(CL_INVALID_EVENT_WAIT_LIST, retVal); EXPECT_EQ(CL_INVALID_EVENT_WAIT_LIST, retVal);
} }
TEST_F(EnqueueFillBuffer, invalid_event_list_count) { TEST_F(EnqueueFillBuffer, GivenEventListAndNumEventsZeroWhenFillingBufferThenInvalidEventWaitListErrorIsReturned) {
cl_event eventList = (cl_event)ptrGarbage; cl_event eventList = (cl_event)ptrGarbage;
cl_float pattern = 1.0f; cl_float pattern = 1.0f;
@ -124,7 +124,7 @@ struct InvalidPatternSize : public EnqueueFillBufferFixture,
char *pattern = nullptr; char *pattern = nullptr;
}; };
TEST_P(InvalidPatternSize, returns_CL_INVALID_VALUE) { TEST_P(InvalidPatternSize, GivenInvalidPatternSizeWhenFillingBufferThenInvalidValueErrorIsReturned) {
auto retVal = clEnqueueFillBuffer( auto retVal = clEnqueueFillBuffer(
BaseClass::pCmdQ, BaseClass::pCmdQ,
buffer, buffer,