ca0642287d
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>
21 lines
244 B
CMake
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)
|