1/* 2 * Copyright (C) 2018-2021 Intel Corporation 3 * 4 * SPDX-License-Identifier: MIT 5 * 6 */ 7 8#include "opencl/source/command_queue/command_queue.h" 9 10#include "cl_api_tests.h" 11 12using namespace NEO; 13 14typedef api_tests clFlushTests; 15 16namespace ULT { 17 18TEST_F(clFlushTests, GivenValidCommandQueueWhenFlushingThenSuccessIsReturned) { 19 retVal = clFlush(pCommandQueue); 20 EXPECT_EQ(CL_SUCCESS, retVal); 21} 22 23TEST_F(clFlushTests, GivenNullCommandQueueWhenFlushingThenInvalidCommandQueueErrorIsReturned) { 24 auto retVal = clFlush(nullptr); 25 EXPECT_EQ(CL_INVALID_COMMAND_QUEUE, retVal); 26} 27} // namespace ULT 28