Skip to content

Commit

Permalink
Unused variable issue in UT
Browse files Browse the repository at this point in the history
  • Loading branch information
disa6302 committed Oct 10, 2023
1 parent a803fcc commit b57669a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tst/DtlsApiTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,17 @@ TEST_F(DtlsApiTest, createCertificateAndKey_Returns_Success)

TEST_F(DtlsApiTest, dtlsSessionIsInitFinished_Null_Check)
{
PDtlsSession pClient = NULL;
BOOL isDtlsConnected = FALSE;
EXPECT_EQ(STATUS_NULL_ARG, dtlsSessionIsInitFinished(pClient, &isDtlsConnected));
EXPECT_EQ(FALSE, isDtlsConnected);
PDtlsSession pClient = NULL;
DtlsSessionCallbacks callbacks;
TIMER_QUEUE_HANDLE timerQueueHandle = INVALID_TIMER_QUEUE_HANDLE_VALUE;
EXPECT_EQ(STATUS_SUCCESS, timerQueueCreate(&timerQueueHandle));
EXPECT_EQ(STATUS_NULL_ARG, dtlsSessionIsInitFinished(pClient, NULL));
EXPECT_EQ(STATUS_SUCCESS, createDtlsSession(&callbacks, timerQueueHandle, 0, FALSE, NULL, &pClient));
EXPECT_EQ(STATUS_NULL_ARG, dtlsSessionIsInitFinished(pClient, NULL));
freeDtlsSession(&pClient);
EXPECT_EQ(NULL, pClient);
timerQueueFree(&timerQueueHandle);

}

TEST_F(DtlsApiTest, dtlsSessionCreated_RefCount)
Expand Down

0 comments on commit b57669a

Please sign in to comment.