| 898 | } |
| 899 | |
| 900 | void testCommandQueueGetDevice1_1(void) |
| 901 | { |
| 902 | cl_device_id expected = make_device_id(0); |
| 903 | |
| 904 | clGetDeviceInfo_StubWithCallback(clGetDeviceInfo_platform); |
| 905 | clGetPlatformInfo_StubWithCallback(clGetPlatformInfo_version_1_1); |
| 906 | clGetCommandQueueInfo_StubWithCallback(clGetCommandQueueInfo_testCommandQueueGetDevice); |
| 907 | |
| 908 | cl::Device device = commandQueuePool[0].getInfo<CL_QUEUE_DEVICE>(); |
| 909 | TEST_ASSERT_EQUAL_PTR(expected, device()); |
| 910 | |
| 911 | device() = nullptr; |
| 912 | } |
| 913 | |
| 914 | void testCommandQueueGetDevice1_2(void) |
| 915 | { |
nothing calls this directly
no test coverage detected