@@ -15,12 +15,12 @@ using clIcdGetPlatformIDsKHRTests = Test<PlatformFixture>;
1515
1616namespace 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