| 863 | } |
| 864 | |
| 865 | void testCommandQueueGetContext(void) |
| 866 | { |
| 867 | cl_context expected = make_context(0); |
| 868 | int refcount = 1; |
| 869 | |
| 870 | clGetCommandQueueInfo_StubWithCallback(clGetCommandQueueInfo_testCommandQueueGetContext); |
| 871 | prepare_contextRefcounts(1, &expected, &refcount); |
| 872 | |
| 873 | cl::Context ctx = commandQueuePool[0].getInfo<CL_QUEUE_CONTEXT>(); |
| 874 | TEST_ASSERT_EQUAL_PTR(expected, ctx()); |
| 875 | TEST_ASSERT_EQUAL(2, refcount); |
| 876 | |
| 877 | ctx() = nullptr; |
| 878 | } |
| 879 | |
| 880 | // Stub for clGetCommandQueueInfo that returns device 0 |
| 881 | static cl_int clGetCommandQueueInfo_testCommandQueueGetDevice( |
nothing calls this directly
no test coverage detected