ULT renaming: Get Platforms IDs tests
Related-To: NEO-2236 Change-Id: I0045c9fa3afe8fa8b1210092de5574a278334e38 Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
parent
a04f2f8fb1
commit
ac5510f808
|
@ -20,7 +20,7 @@ extern bool getDevicesResult;
|
||||||
typedef api_tests clGetPlatformIDsTests;
|
typedef api_tests clGetPlatformIDsTests;
|
||||||
|
|
||||||
namespace ULT {
|
namespace ULT {
|
||||||
TEST_F(clGetPlatformIDsTests, getCount) {
|
TEST_F(clGetPlatformIDsTests, GivenNullPlatformWhenGettingPlatformIdsThenNumberofPlatformsIsReturned) {
|
||||||
cl_int retVal = CL_SUCCESS;
|
cl_int retVal = CL_SUCCESS;
|
||||||
cl_uint numPlatforms = 0;
|
cl_uint numPlatforms = 0;
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ TEST_F(clGetPlatformIDsTests, getCount) {
|
||||||
EXPECT_GT(numPlatforms, 0u);
|
EXPECT_GT(numPlatforms, 0u);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(clGetPlatformIDsTests, getInfo) {
|
TEST_F(clGetPlatformIDsTests, GivenPlatformsWhenGettingPlatformIdsThenPlatformsIdIsReturned) {
|
||||||
cl_int retVal = CL_SUCCESS;
|
cl_int retVal = CL_SUCCESS;
|
||||||
cl_platform_id platform = nullptr;
|
cl_platform_id platform = nullptr;
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ TEST_F(clGetPlatformIDsTests, getInfo) {
|
||||||
EXPECT_NE(nullptr, platform);
|
EXPECT_NE(nullptr, platform);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(clGetPlatformIDsTests, NoPlatformListReturnsError) {
|
TEST_F(clGetPlatformIDsTests, GivenNumEntriesZeroAndPlatformNotNullWhenGettingPlatformIdsThenClInvalidValueErrorIsReturned) {
|
||||||
cl_int retVal = CL_SUCCESS;
|
cl_int retVal = CL_SUCCESS;
|
||||||
cl_platform_id platform = nullptr;
|
cl_platform_id platform = nullptr;
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ TEST_F(clGetPlatformIDsTests, NoPlatformListReturnsError) {
|
||||||
EXPECT_EQ(CL_INVALID_VALUE, retVal);
|
EXPECT_EQ(CL_INVALID_VALUE, retVal);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(clGetPlatformIDsNegativeTests, WhenInitFailedThenErrorIsReturned) {
|
TEST(clGetPlatformIDsNegativeTests, GivenFailedInitWhenGettingPlatformIdsThenClInvalidValueErrorIsReturned) {
|
||||||
VariableBackup<decltype(getDevicesResult)> bkp(&getDevicesResult, false);
|
VariableBackup<decltype(getDevicesResult)> bkp(&getDevicesResult, false);
|
||||||
|
|
||||||
cl_int retVal = CL_SUCCESS;
|
cl_int retVal = CL_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue