Skip to content

Commit

Permalink
minor, timer and hide channel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ladnir committed Jan 22, 2024
1 parent 5f90354 commit 0fe0528
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 6 additions & 0 deletions cryptoTools/Common/Timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ namespace osuCrypto
else return {};
}

Timer::timeUnit setTimePoint(const char* msg)
{
if (mTimer) return getTimer().setTimePoint(msg);
else return {};
}

Timer* mTimer = nullptr;
};

Expand Down
7 changes: 2 additions & 5 deletions tests_cryptoTools/UnitTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace tests_cryptoTools
{
TestCollection Tests([](TestCollection& th) {

#ifdef ENABLE_BOOST
th.add("BtNetwork_SBO_ptr_test ", SBO_ptr_test);
th.add("BtNetwork_Connect1_Test ", BtNetwork_Connect1_Test);
th.add("BtNetwork_RapidConnect_Test ", BtNetwork_RapidConnect_Test);
Expand Down Expand Up @@ -47,11 +48,7 @@ namespace tests_cryptoTools
th.add("BtNetwork_queue_Test ", BtNetwork_queue_Test);
th.add("BtNetwork_socketAdapter_test ", BtNetwork_socketAdapter_test);
th.add("BtNetwork_BasicSocket_test ", BtNetwork_BasicSocket_test);

th.add("wolfSSL_echoServer_test ", wolfSSL_echoServer_test);
th.add("wolfSSL_mutualAuth_test ", wolfSSL_mutualAuth_test);
th.add("wolfSSL_channel_test ", wolfSSL_channel_test);
th.add("wolfSSL_CancelChannel_Test ", wolfSSL_CancelChannel_Test);
#endif

th.add("block_operation_test ", block_operation_test);
th.add("AES ", AES_EncDec_Test);
Expand Down

0 comments on commit 0fe0528

Please sign in to comment.