mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-02 03:06:31 -04:00
added google test for chacha20 code
This commit is contained in:
parent
0387a28e78
commit
0570427c1d
4 changed files with 94 additions and 52 deletions
12
tests/unittests/libretroshare/crypto/chacha20_test.cc
Normal file
12
tests/unittests/libretroshare/crypto/chacha20_test.cc
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include <gtest/gtest.h>
|
||||
|
||||
// from libretroshare
|
||||
|
||||
#include "crypto/chacha20.h"
|
||||
|
||||
TEST(libretroshare_crypto, ChaCha20)
|
||||
{
|
||||
std::cerr << "Testing Chacha20" << std::endl;
|
||||
|
||||
EXPECT_TRUE(librs::crypto::perform_tests()) ;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue