@@ -37,7 +37,7 @@ struct clCreatePerfCountersCommandQueueINTELTests : public api_fixture,
3737
3838namespace ULT {
3939
40- TEST_F (clCreatePerfCountersCommandQueueINTELTests, returnsSuccess ) {
40+ TEST_F (clCreatePerfCountersCommandQueueINTELTests, GivenCorrectParamatersWhenCreatingPerfCountersCmdQThenCmdQIsCreatedAndPerfCountersAreEnabled ) {
4141 cl_command_queue cmdQ = nullptr ;
4242 cl_queue_properties properties = CL_QUEUE_PROFILING_ENABLE;
4343 cl_uint configuration = 1 ;
@@ -56,7 +56,7 @@ TEST_F(clCreatePerfCountersCommandQueueINTELTests, returnsSuccess) {
5656 EXPECT_EQ (CL_SUCCESS, retVal);
5757}
5858
59- TEST_F (clCreatePerfCountersCommandQueueINTELTests, negativeNoProfiling ) {
59+ TEST_F (clCreatePerfCountersCommandQueueINTELTests, GivenNullPropertiesWhenCreatingPerfCountersCmdQThenInvalidQueuePropertiesErrorIsReturned ) {
6060 cl_command_queue cmdQ = nullptr ;
6161 cl_queue_properties properties = 0 ;
6262 cl_uint configuration = 0 ;
@@ -67,7 +67,7 @@ TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeNoProfiling) {
6767 ASSERT_EQ (CL_INVALID_QUEUE_PROPERTIES, retVal);
6868}
6969
70- TEST_F (clCreatePerfCountersCommandQueueINTELTests, negativeProfilingDeviceQueue ) {
70+ TEST_F (clCreatePerfCountersCommandQueueINTELTests, GivenClQueueOnDevicePropertyWhenCreatingPerfCountersCmdQThenInvalidQueuePropertiesErrorIsReturned ) {
7171 cl_command_queue cmdQ = nullptr ;
7272 cl_queue_properties properties = CL_QUEUE_PROFILING_ENABLE | CL_QUEUE_ON_DEVICE;
7373 cl_uint configuration = 0 ;
@@ -83,7 +83,7 @@ TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeProfilingDeviceQueue)
8383 ASSERT_EQ (CL_INVALID_QUEUE_PROPERTIES, retVal);
8484}
8585
86- TEST_F (clCreatePerfCountersCommandQueueINTELTests, negativeInvalidCtx ) {
86+ TEST_F (clCreatePerfCountersCommandQueueINTELTests, GivenNullContextWhenCreatingPerfCountersCmdQThenInvalidContextErrorIsReturned ) {
8787 cl_command_queue cmdQ = nullptr ;
8888 cl_queue_properties properties = CL_QUEUE_PROFILING_ENABLE;
8989 cl_uint configuration = 0 ;
@@ -94,7 +94,7 @@ TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeInvalidCtx) {
9494 ASSERT_EQ (CL_INVALID_CONTEXT, retVal);
9595}
9696
97- TEST_F (clCreatePerfCountersCommandQueueINTELTests, negativeInvalidConfig ) {
97+ TEST_F (clCreatePerfCountersCommandQueueINTELTests, GivenMaximumGtdiConfigurationWhenCreatingPerfCountersCmdQThenOutOfResourcesErrorIsReturned ) {
9898 cl_command_queue cmdQ = nullptr ;
9999 cl_queue_properties properties = CL_QUEUE_PROFILING_ENABLE;
100100 cl_uint configuration = GTDI_CONFIGURATION_SET_MAX;
@@ -105,7 +105,7 @@ TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeInvalidConfig) {
105105 ASSERT_EQ (CL_OUT_OF_RESOURCES, retVal);
106106}
107107
108- TEST_F (clCreatePerfCountersCommandQueueINTELTests, returnsSuccessEvent ) {
108+ TEST_F (clCreatePerfCountersCommandQueueINTELTests, GivenCorrectCmdQWhenEventIsCreatedThenPerfCountersAreEnabled ) {
109109 cl_command_queue cmdQ = nullptr ;
110110 cl_queue_properties properties = CL_QUEUE_PROFILING_ENABLE;
111111 cl_uint configuration = 1 ;
@@ -124,7 +124,7 @@ TEST_F(clCreatePerfCountersCommandQueueINTELTests, returnsSuccessEvent) {
124124 EXPECT_EQ (CL_SUCCESS, retVal);
125125}
126126
127- TEST_F (clCreatePerfCountersCommandQueueINTELTests, negativeNoInstrumentation ) {
127+ TEST_F (clCreatePerfCountersCommandQueueINTELTests, GivenInstrumentationEnabledIsFalseWhenCreatingPerfCountersCmdQThenInvalidDeviceErrorIsReturned ) {
128128 pInHwInfo->capabilityTable .instrumentationEnabled = false ;
129129 cl_command_queue cmdQ = nullptr ;
130130 cl_queue_properties properties = CL_QUEUE_PROFILING_ENABLE;
@@ -135,7 +135,7 @@ TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeNoInstrumentation) {
135135 EXPECT_EQ (CL_INVALID_DEVICE, retVal);
136136}
137137
138- TEST_F (clCreatePerfCountersCommandQueueINTELTests, negativeInvalidDevice ) {
138+ TEST_F (clCreatePerfCountersCommandQueueINTELTests, GivenInvalidDeviceWhenCreatingPerfCountersCmdQThenInvalidDeviceErrorIsReturned ) {
139139 cl_command_queue cmdQ = nullptr ;
140140 cl_queue_properties properties = CL_QUEUE_PROFILING_ENABLE;
141141 cl_uint configuration = 0 ;
0 commit comments