22#include " ur_mock_helpers.hpp"
33#include < sycl/sycl.hpp>
44
5+ #include < helpers/MockDeviceImage.hpp>
56#include < helpers/MockKernelInfo.hpp>
67#include < helpers/RuntimeLinkingCommon.hpp>
7- #include < helpers/UrImage.hpp>
88#include < helpers/UrMock.hpp>
99
1010#include < gtest/gtest.h>
@@ -46,11 +46,11 @@ KERNEL_INFO(KernelG)
4646} // namespace _V1
4747} // namespace sycl
4848
49- static sycl::unittest::UrImage
49+ static sycl::unittest::MockDeviceImage
5050generateImage (std::initializer_list<std::string> KernelNames,
5151 const std::string &VFSets, bool UsesVFSets, unsigned char Magic) {
52- sycl::unittest::UrPropertySet PropSet;
53- std::vector<sycl::unittest::UrProperty > Props;
52+ sycl::unittest::MockPropertySet PropSet;
53+ std::vector<sycl::unittest::MockProperty > Props;
5454 uint64_t PropSize = VFSets.size ();
5555 std::vector<char > Storage (/* bytes for size */ 8 + PropSize +
5656 /* null terminator */ 1 );
@@ -61,18 +61,18 @@ generateImage(std::initializer_list<std::string> KernelNames,
6161 Storage.back () = ' \0 ' ;
6262 const std::string PropName =
6363 UsesVFSets ? " uses-virtual-functions-set" : " virtual-functions-set" ;
64- sycl::unittest::UrProperty Prop (PropName, Storage,
65- SYCL_PROPERTY_TYPE_BYTE_ARRAY);
64+ sycl::unittest::MockProperty Prop (PropName, Storage,
65+ SYCL_PROPERTY_TYPE_BYTE_ARRAY);
6666
6767 Props.push_back (Prop);
6868 PropSet.insert (__SYCL_PROPERTY_SET_SYCL_VIRTUAL_FUNCTIONS, std::move (Props));
6969
7070 std::vector<unsigned char > Bin{Magic};
7171
72- std::vector<sycl::unittest::UrOffloadEntry > Entries =
72+ std::vector<sycl::unittest::MockOffloadEntry > Entries =
7373 sycl::unittest::makeEmptyKernels (KernelNames);
7474
75- sycl::unittest::UrImage Img{
75+ sycl::unittest::MockDeviceImage Img{
7676 SYCL_DEVICE_BINARY_TYPE_SPIRV, // Format
7777 __SYCL_DEVICE_BINARY_TARGET_SPIRV64, // DeviceTargetSpec
7878 " " , // Compile options
@@ -103,7 +103,7 @@ static constexpr unsigned PROGRAM_F1 = 53;
103103// Device images with no entires are ignored by SYCL RT during registration.
104104// Therefore, we have to provide some kernel names to make the test work, even
105105// if we don't really have them/use them.
106- static sycl::unittest::UrImage Imgs[] = {
106+ static sycl::unittest::MockDeviceImage Imgs[] = {
107107 generateImage ({" KernelA" }, " set-a" , /* uses vf set */ true , PROGRAM_A),
108108 generateImage ({" DummyKernel0" }, " set-a" , /* provides vf set */ false ,
109109 PROGRAM_A0),
@@ -131,7 +131,7 @@ static sycl::unittest::UrImage Imgs[] = {
131131 generateImage ({" KernelG" }, " set-f" , /* uses vf set */ true , PROGRAM_F1)};
132132
133133// Registers mock devices images in the SYCL RT
134- static sycl::unittest::UrImageArray <15 > ImgArray{Imgs};
134+ static sycl::unittest::MockDeviceImageArray <15 > ImgArray{Imgs};
135135
136136TEST (VirtualFunctions, SingleKernelUsesSingleVFSet) {
137137 sycl::unittest::UrMock<> Mock;
0 commit comments