Remove PostFile() from session; refine cmake files; replace final with override.

This commit is contained in:
Chunting Gu
2019-04-24 13:42:16 +08:00
parent ddd521b684
commit 113dacb9ce
21 changed files with 63 additions and 102 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ set(UT_SRCS
set(UT_TARGET_NAME webcc_unittest)
# Common libraries to link.
set(UT_LIBS webcc ${Boost_LIBRARIES} "${CMAKE_THREAD_LIBS_INIT}")
set(UT_LIBS webcc gtest ${Boost_LIBRARIES} "${CMAKE_THREAD_LIBS_INIT}")
if(WEBCC_ENABLE_SSL)
set(UT_LIBS ${UT_LIBS} ${OPENSSL_LIBRARIES})
@@ -34,6 +34,6 @@ if(UNIX)
endif()
add_executable(${UT_TARGET_NAME} ${UT_SRCS})
target_link_libraries(${UT_TARGET_NAME} webcc gtest ${UT_LIBS})
target_link_libraries(${UT_TARGET_NAME} ${UT_LIBS})
add_test(${UT_TARGET_NAME} ${UT_TARGET_NAME})
+1 -1
View File
@@ -7,7 +7,7 @@
class MyRestService : public webcc::RestService {
public:
void Handle(const webcc::RestRequest& request,
webcc::RestResponse* response) final {
webcc::RestResponse* response) override {
response->status = webcc::Status::kOK;
}
};