boringssl/crypto/lhash/CMakeLists.txt
David Benjamin ca0642287d Rewrite lhash_test in C++.
Use a std::map as the dummy lhash and use unique_ptr. This also improves
the test to check on pointer equality; we wish to ensure the lhash
stores the particular pointer value we asked for.

dummy_lh now also owns the pointers. It makes things simpler and since
LHASH doesn't free things, we weren't getting anything out of testing
that.

Change-Id: I97159175ca79a5874586650f272a7846100395e1
Reviewed-on: https://boringssl-review.googlesource.com/12976
Reviewed-by: Adam Langley <agl@google.com>
2017-01-04 01:38:45 +00:00

21 lines
244 B
CMake

include_directories(../../include)
add_library(
lhash
OBJECT
lhash.c
)
add_executable(
lhash_test
lhash_test.cc
$<TARGET_OBJECTS:test_support>
)
target_link_libraries(lhash_test crypto)
add_dependencies(all_tests lhash_test)