mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 21:42:53 +08:00
Change return type from unique_ptr to vector
In some of the drm functions there is a pattern to store array in unique_ptr and pass it's length as an argument. This commit simplifies this. Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9be5efe4f7
commit
d9f6757378
@@ -140,5 +140,5 @@ TEST(DrmQueryTest, givenDrmWhenGettingMemoryRegionsThenReturnNull) {
|
||||
executionEnvironment->prepareRootDeviceEnvironments(1);
|
||||
DrmMock drm{*executionEnvironment->rootDeviceEnvironments[0]};
|
||||
|
||||
EXPECT_EQ(drm.getMemoryRegions(), nullptr);
|
||||
}
|
||||
EXPECT_TRUE(drm.getMemoryRegions().empty());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user