Skip to content

Commit 6e8e882

Browse files
ULT renaming: Sharing tests
Related-To: NEO-2236 Signed-off-by: Adam Cetnerowski <[email protected]>
1 parent b5a6735 commit 6e8e882

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

opencl/test/unit_test/sharings/d3d/context_d3d_tests.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ TEST(D3DContextTest, WhenContextIsCreatedThenSharingIsNotPresent) {
2323
EXPECT_EQ(nullptr, context.getSharing<D3DSharingFunctions<D3DTypesHelper::D3D11>>());
2424
}
2525

26-
TEST(D3DContextTest, giveDispatchtableContainsValidEntries) {
26+
TEST(D3DContextTest, givenDispatchTableThenItContainsValidEntries) {
2727
sharingFactory.fillGlobalDispatchTable();
2828

2929
MockContext context;
@@ -92,8 +92,7 @@ TEST_F(clIntelSharingFormatQueryDX9, givenInvalidImageTypeWhenMediaSurfaceFormat
9292
EXPECT_EQ(CL_INVALID_VALUE, retVal);
9393
}
9494

95-
TEST_F(clIntelSharingFormatQueryDX9,
96-
givenValidParametersWhenRequestedMediaSurfaceFormatsBelowMaximumThenExceedingFormatAreaRemainsUntouched) {
95+
TEST_F(clIntelSharingFormatQueryDX9, givenValidParametersWhenRequestedMediaSurfaceFormatsBelowMaximumThenExceedingFormatAreaRemainsUntouched) {
9796
for (cl_uint i = 0; i <= static_cast<cl_uint>(retrievedFormats.size()); ++i) {
9897
retVal = clGetSupportedDX9MediaSurfaceFormatsINTEL(pContext, CL_MEM_READ_WRITE, CL_MEM_OBJECT_IMAGE2D, 0, i,
9998
&retrievedFormats[0], &numImageFormats);

opencl/test/unit_test/sharings/gl/windows/gl_arb_sync_event_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ TEST_F(GlArbSyncEventTest, whenGlArbSyncEventIsCreatedAndSetEventFailsThenCreati
243243
EXPECT_EQ(nullptr, arbEvent);
244244
}
245245

246-
TEST_F(GlArbSyncEventTest, whenGlArbSyncEventIsCreatedTheBaseEventIsProperlySet) {
246+
TEST_F(GlArbSyncEventTest, whenGlArbSyncEventIsCreatedThenBaseEventIsProperlySet) {
247247
auto *arbEvent = GlArbSyncEvent::create(*this->getBaseEvent());
248248
EXPECT_NE(nullptr, arbEvent);
249249
EXPECT_TRUE(this->baseEvent->peekHasChildEvents());

opencl/test/unit_test/sharings/gl/windows/gl_reused_buffers_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ TEST_F(GlReusedBufferTests, givenGlobalShareHandleChangedWhenAcquiringSharedBuff
168168
glBuffer->release(clBuffer.get(), rootDeviceIndex);
169169
}
170170

171-
TEST_F(GlReusedBufferTests, givenMultipleBuffersAndGlobalShareHandleChangedWhenAcquiringSharedBufferDeleteOldGfxAllocationFromReuseVector) {
171+
TEST_F(GlReusedBufferTests, givenMultipleBuffersAndGlobalShareHandleChangedWhenAcquiringSharedBufferThenDeleteOldGfxAllocationFromReuseVector) {
172172
GlDllHelper dllParam;
173173
CL_GL_BUFFER_INFO bufferInfoOutput = dllParam.getBufferInfo();
174174
bufferInfoOutput.globalShareHandle = 40;

opencl/test/unit_test/sharings/gl/windows/gl_sharing_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ HWTEST_F(glSharingTests, givenEventCreatedFromFenceObjectWhenItIsPassedToAcquire
11471147
clReleaseEvent(event);
11481148
}
11491149

1150-
TEST_F(glSharingTests, glSyncEventReportsAsExternallySynchronized) {
1150+
TEST_F(glSharingTests, GivenGlSyncEventThenReportsAsExternallySynchronized) {
11511151
GLsync glSync = {0};
11521152
auto syncEvent = GlSyncEvent::create(context, glSync, nullptr);
11531153
ASSERT_NE(nullptr, syncEvent);

opencl/test/unit_test/sharings/gl/windows/gl_texture_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ TEST_F(GlSharingTextureTests, givenMockGlWhenRenderBufferTextureIsCreatedThenMem
187187
delete glTexture;
188188
}
189189

190-
TEST_F(GlSharingTextureTests, givenGmmResourceAsInputeWhenTextureIsCreatedItHasGmmSet) {
190+
TEST_F(GlSharingTextureTests, givenGmmResourceAsInputWhenTextureIsCreatedThenItHasGmmSet) {
191191
cl_int retVal = CL_INVALID_VALUE;
192192

193193
glSharing->m_textureInfoOutput.globalShareHandle = textureId;
@@ -378,7 +378,7 @@ TEST_F(GlSharingTextureTests, givenHwCommandQueueAndGlTextureWhenAcquireIsCalled
378378
EXPECT_EQ(CL_SUCCESS, retVal);
379379
}
380380

381-
TEST_F(GlSharingTextureTests, verifyGlTextureBufferOffset) {
381+
TEST_F(GlSharingTextureTests, GivenGlTextureThenBufferOffsetIsCorrect) {
382382
glSharing->uploadDataToTextureInfo(textureId);
383383

384384
auto rootDeviceIndex = clContext->getDevice(0)->getRootDeviceIndex();

opencl/test/unit_test/sharings/gl/windows/gl_types_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct GlClImageFormatTests
8686

8787
INSTANTIATE_TEST_CASE_P(GlClImageFormatTests, GlClImageFormatTests, testing::ValuesIn(glTypes::allImageFormats));
8888

89-
TEST_P(GlClImageFormatTests, validFormat) {
89+
TEST_P(GlClImageFormatTests, WhenSettingClImageFormatThenValidFormatIsSet) {
9090
cl_image_format imgFormat = {};
9191
auto glFormat = std::get<0>(GetParam());
9292
auto expectedClChannelType = static_cast<cl_channel_type>(std::get<1>(GetParam()));
@@ -104,7 +104,7 @@ struct GlClObjTypesTests
104104

105105
INSTANTIATE_TEST_CASE_P(GlClObjTypesTests, GlClObjTypesTests, testing::ValuesIn(glTypes::allObjTypes));
106106

107-
TEST_P(GlClObjTypesTests, typeConversion) {
107+
TEST_P(GlClObjTypesTests, WhenConvertingTypeThenTypeIsSetCorrectly) {
108108
auto glType = static_cast<cl_GLenum>(std::get<0>(GetParam()));
109109
auto expectedClGlObjType = static_cast<cl_gl_object_type>(std::get<1>(GetParam()));
110110
auto expectedClMemObjType = static_cast<cl_mem_object_type>(std::get<2>(GetParam()));

0 commit comments

Comments
 (0)