增加HTTP解析层单元测试用例。

This commit is contained in:
Lu Qiuwen
2018-09-18 20:45:21 +08:00
parent 9ccc3d329e
commit 3d8498b648
4 changed files with 96 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
### PLUGIN
add_library(http src/http_entry.cpp src/http_half.cpp)
target_include_directories(http PRIVATE include/internal)
@@ -6,3 +7,12 @@ target_include_directories(http PUBLIC incluce/external)
target_link_libraries(http common)
target_link_libraries(http http-parser-static)
target_link_libraries(http libevent-static)
### UNITTEST CASE
add_executable(test-http-half test/test_http_half.cpp)
target_include_directories(test-http-half PRIVATE include/internal)
target_link_libraries(test-http-half gtest common http)
include(GoogleTest)
gtest_discover_tests(test-http-half)