Skip to content

Commit 269bb21

Browse files
ULT renaming: ICD Get Platform tests
Related-To: NEO-2236 Change-Id: I481f90cfd78ee76c2d414105399c3520744c013c Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
1 parent 18ccd44 commit 269bb21

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

opencl/test/unit_test/api/cl_icd_get_platform_ids_khr_tests.inl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ using clIcdGetPlatformIDsKHRTests = Test<PlatformFixture>;
1515

1616
namespace ULT {
1717

18-
TEST_F(clIcdGetPlatformIDsKHRTests, checkDispatchLocation) {
18+
TEST_F(clIcdGetPlatformIDsKHRTests, WhenPlatformIsCreatedThenDispatchLocationIsCorrect) {
1919
cl_platform_id platform = pPlatform;
2020
EXPECT_EQ((void *)platform, (void *)(&platform->dispatch));
2121
}
2222

23-
TEST_F(clIcdGetPlatformIDsKHRTests, getCount) {
23+
TEST_F(clIcdGetPlatformIDsKHRTests, WhenGettingNumberOfPlatformsThenGreaterThanZeroIsReturned) {
2424
cl_int retVal = CL_SUCCESS;
2525
cl_uint numPlatforms = 0;
2626

@@ -30,14 +30,14 @@ TEST_F(clIcdGetPlatformIDsKHRTests, getCount) {
3030
EXPECT_GT(numPlatforms, (cl_uint)0);
3131
}
3232

33-
TEST_F(clIcdGetPlatformIDsKHRTests, checkExtensionFunctionAvailability) {
33+
TEST_F(clIcdGetPlatformIDsKHRTests, WheGettingExtensionFunctionAddressThenCorrectPointerIsReturned) {
3434
void *funPtr = clGetExtensionFunctionAddress("clIcdGetPlatformIDsKHR");
3535
decltype(&clIcdGetPlatformIDsKHR) expected = clIcdGetPlatformIDsKHR;
3636
EXPECT_NE(nullptr, funPtr);
3737
EXPECT_EQ(expected, reinterpret_cast<decltype(&clIcdGetPlatformIDsKHR)>(funPtr));
3838
}
3939

40-
TEST_F(clIcdGetPlatformIDsKHRTests, checkDeviceId) {
40+
TEST_F(clIcdGetPlatformIDsKHRTests, WhenGettingPlatformIdThenCorrectIdIsReturned) {
4141
cl_uint numPlatforms = 0;
4242
cl_uint numPlatformsIcd = 0;
4343

@@ -62,7 +62,7 @@ TEST_F(clIcdGetPlatformIDsKHRTests, checkDeviceId) {
6262
}
6363
}
6464

65-
TEST_F(clIcdGetPlatformIDsKHRTests, checkExtensionString) {
65+
TEST_F(clIcdGetPlatformIDsKHRTests, WhenCheckingExtensionStringThenClKhrIcdIsIncluded) {
6666
const ClDeviceInfo &caps = pPlatform->getClDevice(0)->getDeviceInfo();
6767
EXPECT_NE(std::string::npos, std::string(caps.deviceExtensions).find("cl_khr_icd"));
6868
}

0 commit comments

Comments
 (0)