ULT renaming: Sharing tests

Related-To: NEO-2236

Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
Adam Cetnerowski 2020-12-28 12:48:40 +01:00 committed by Compute-Runtime-Automation
parent b5a6735ae3
commit 6e8e882550
6 changed files with 9 additions and 10 deletions

View File

@ -23,7 +23,7 @@ TEST(D3DContextTest, WhenContextIsCreatedThenSharingIsNotPresent) {
EXPECT_EQ(nullptr, context.getSharing<D3DSharingFunctions<D3DTypesHelper::D3D11>>());
}
TEST(D3DContextTest, giveDispatchtableContainsValidEntries) {
TEST(D3DContextTest, givenDispatchTableThenItContainsValidEntries) {
sharingFactory.fillGlobalDispatchTable();
MockContext context;
@ -92,8 +92,7 @@ TEST_F(clIntelSharingFormatQueryDX9, givenInvalidImageTypeWhenMediaSurfaceFormat
EXPECT_EQ(CL_INVALID_VALUE, retVal);
}
TEST_F(clIntelSharingFormatQueryDX9,
givenValidParametersWhenRequestedMediaSurfaceFormatsBelowMaximumThenExceedingFormatAreaRemainsUntouched) {
TEST_F(clIntelSharingFormatQueryDX9, givenValidParametersWhenRequestedMediaSurfaceFormatsBelowMaximumThenExceedingFormatAreaRemainsUntouched) {
for (cl_uint i = 0; i <= static_cast<cl_uint>(retrievedFormats.size()); ++i) {
retVal = clGetSupportedDX9MediaSurfaceFormatsINTEL(pContext, CL_MEM_READ_WRITE, CL_MEM_OBJECT_IMAGE2D, 0, i,
&retrievedFormats[0], &numImageFormats);

View File

@ -243,7 +243,7 @@ TEST_F(GlArbSyncEventTest, whenGlArbSyncEventIsCreatedAndSetEventFailsThenCreati
EXPECT_EQ(nullptr, arbEvent);
}
TEST_F(GlArbSyncEventTest, whenGlArbSyncEventIsCreatedTheBaseEventIsProperlySet) {
TEST_F(GlArbSyncEventTest, whenGlArbSyncEventIsCreatedThenBaseEventIsProperlySet) {
auto *arbEvent = GlArbSyncEvent::create(*this->getBaseEvent());
EXPECT_NE(nullptr, arbEvent);
EXPECT_TRUE(this->baseEvent->peekHasChildEvents());

View File

@ -168,7 +168,7 @@ TEST_F(GlReusedBufferTests, givenGlobalShareHandleChangedWhenAcquiringSharedBuff
glBuffer->release(clBuffer.get(), rootDeviceIndex);
}
TEST_F(GlReusedBufferTests, givenMultipleBuffersAndGlobalShareHandleChangedWhenAcquiringSharedBufferDeleteOldGfxAllocationFromReuseVector) {
TEST_F(GlReusedBufferTests, givenMultipleBuffersAndGlobalShareHandleChangedWhenAcquiringSharedBufferThenDeleteOldGfxAllocationFromReuseVector) {
GlDllHelper dllParam;
CL_GL_BUFFER_INFO bufferInfoOutput = dllParam.getBufferInfo();
bufferInfoOutput.globalShareHandle = 40;

View File

@ -1147,7 +1147,7 @@ HWTEST_F(glSharingTests, givenEventCreatedFromFenceObjectWhenItIsPassedToAcquire
clReleaseEvent(event);
}
TEST_F(glSharingTests, glSyncEventReportsAsExternallySynchronized) {
TEST_F(glSharingTests, GivenGlSyncEventThenReportsAsExternallySynchronized) {
GLsync glSync = {0};
auto syncEvent = GlSyncEvent::create(context, glSync, nullptr);
ASSERT_NE(nullptr, syncEvent);

View File

@ -187,7 +187,7 @@ TEST_F(GlSharingTextureTests, givenMockGlWhenRenderBufferTextureIsCreatedThenMem
delete glTexture;
}
TEST_F(GlSharingTextureTests, givenGmmResourceAsInputeWhenTextureIsCreatedItHasGmmSet) {
TEST_F(GlSharingTextureTests, givenGmmResourceAsInputWhenTextureIsCreatedThenItHasGmmSet) {
cl_int retVal = CL_INVALID_VALUE;
glSharing->m_textureInfoOutput.globalShareHandle = textureId;
@ -378,7 +378,7 @@ TEST_F(GlSharingTextureTests, givenHwCommandQueueAndGlTextureWhenAcquireIsCalled
EXPECT_EQ(CL_SUCCESS, retVal);
}
TEST_F(GlSharingTextureTests, verifyGlTextureBufferOffset) {
TEST_F(GlSharingTextureTests, GivenGlTextureThenBufferOffsetIsCorrect) {
glSharing->uploadDataToTextureInfo(textureId);
auto rootDeviceIndex = clContext->getDevice(0)->getRootDeviceIndex();

View File

@ -86,7 +86,7 @@ struct GlClImageFormatTests
INSTANTIATE_TEST_CASE_P(GlClImageFormatTests, GlClImageFormatTests, testing::ValuesIn(glTypes::allImageFormats));
TEST_P(GlClImageFormatTests, validFormat) {
TEST_P(GlClImageFormatTests, WhenSettingClImageFormatThenValidFormatIsSet) {
cl_image_format imgFormat = {};
auto glFormat = std::get<0>(GetParam());
auto expectedClChannelType = static_cast<cl_channel_type>(std::get<1>(GetParam()));
@ -104,7 +104,7 @@ struct GlClObjTypesTests
INSTANTIATE_TEST_CASE_P(GlClObjTypesTests, GlClObjTypesTests, testing::ValuesIn(glTypes::allObjTypes));
TEST_P(GlClObjTypesTests, typeConversion) {
TEST_P(GlClObjTypesTests, WhenConvertingTypeThenTypeIsSetCorrectly) {
auto glType = static_cast<cl_GLenum>(std::get<0>(GetParam()));
auto expectedClGlObjType = static_cast<cl_gl_object_type>(std::get<1>(GetParam()));
auto expectedClMemObjType = static_cast<cl_mem_object_type>(std::get<2>(GetParam()));