mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
sys_ocldev

parent
0d35af9327
commit
818a5a683e
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user