Remove Context::processExtraProperties function

Related-To: NEO-4700

Simplify SharingContextBuilder::processProperties function.

Change-Id: I78bbf06c688c37490d9d7f09c9bfc451f1e68d30
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2020-10-29 16:26:52 +01:00
committed by sys_ocldev
parent 0d35af9327
commit 818a5a683e
18 changed files with 62 additions and 133 deletions

View File

@ -44,10 +44,8 @@ TEST(UnifiedSharingTests, givenExternalDeviceHandleWhenProcessingBySharingContex
MockUnifiedSharingContextBuilder builder{};
cl_context_properties propertyType = static_cast<cl_context_properties>(UnifiedSharingContextType::DeviceHandle);
cl_context_properties propertyValue = 0x1234;
cl_int retVal{};
bool result = builder.processProperties(propertyType, propertyValue, retVal);
bool result = builder.processProperties(propertyType, propertyValue);
EXPECT_TRUE(result);
EXPECT_EQ(CL_SUCCESS, retVal);
EXPECT_NE(nullptr, builder.contextData);
}
@ -55,10 +53,8 @@ TEST(UnifiedSharingTests, givenExternalDeviceGroupHandleWhenProcessingBySharingC
MockUnifiedSharingContextBuilder builder{};
cl_context_properties propertyType = static_cast<cl_context_properties>(UnifiedSharingContextType::DeviceGroup);
cl_context_properties propertyValue = 0x1234;
cl_int retVal{};
bool result = builder.processProperties(propertyType, propertyValue, retVal);
bool result = builder.processProperties(propertyType, propertyValue);
EXPECT_TRUE(result);
EXPECT_EQ(CL_SUCCESS, retVal);
EXPECT_NE(nullptr, builder.contextData);
}
@ -66,10 +62,8 @@ TEST(UnifiedSharingTests, givenExternalDeviceGroupHandleWhenProcessingBySharingC
MockUnifiedSharingContextBuilder builder{};
cl_context_properties propertyType = CL_CONTEXT_PLATFORM;
cl_context_properties propertyValue = 0x1234;
cl_int retVal{};
bool result = builder.processProperties(propertyType, propertyValue, retVal);
bool result = builder.processProperties(propertyType, propertyValue);
EXPECT_FALSE(result);
EXPECT_EQ(CL_SUCCESS, retVal);
EXPECT_EQ(nullptr, builder.contextData);
}