Mercurial > archived > louis > epitech > zia-api
changeset 61:71782d1b8f92
Fix private typedefs in IHeader.hpp (close #8)
author | Louis Opter <opter_l@epitech.eu> |
---|---|
date | Tue, 30 Mar 2010 20:21:34 +0200 |
parents | d7dac2995a83 |
children | 4d7e65058f93 |
files | CHANGELOG CMakeLists.txt include/http/IHeader.hpp tests/CMakeLists.txt tests/IHeader.cpp |
diffstat | 5 files changed, 31 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGELOG Tue Mar 30 20:21:34 2010 +0200 +++ b/CHANGELOG Tue Mar 30 20:21:34 2010 +0200 @@ -1,8 +1,9 @@ 0.0.2: * Lot of improvements in the documentation; - * IEndPoint refactored to allow ipv6 use (close #4) (TODO). - * Add a cmake finder (close #6) (TODO). + * IHeader.hpp fixed (close #8); + * IEndPoint refactored to allow ipv6 use (close #4) (TODO); + * Add a cmake finder (close #6). 0.0.1:
--- a/CMakeLists.txt Tue Mar 30 20:21:34 2010 +0200 +++ b/CMakeLists.txt Tue Mar 30 20:21:34 2010 +0200 @@ -23,6 +23,8 @@ MESSAGE(STATUS "Install Prefix : ${CMAKE_INSTALL_PREFIX}") MESSAGE(STATUS "Source Directory : ${STREAMIT_API_SOURCE_DIR}") +ENABLE_TESTING() + # Global definitions ########################################################### IF (CMAKE_COMPILER_IS_GNUCXX) @@ -70,6 +72,7 @@ ADD_SUBDIRECTORY(examples) ADD_SUBDIRECTORY(include) +ADD_SUBDIRECTORY(tests) # CPack stuff ##################################################################
--- a/include/http/IHeader.hpp Tue Mar 30 20:21:34 2010 +0200 +++ b/include/http/IHeader.hpp Tue Mar 30 20:21:34 2010 +0200 @@ -15,10 +15,10 @@ */ class IHeader { + public: typedef std::string Key; typedef std::string Value; - public: virtual ~IHeader(void) { } /**
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/CMakeLists.txt Tue Mar 30 20:21:34 2010 +0200 @@ -0,0 +1,13 @@ +MACRO(ADD_STREAMIT_TEST TEST_NAME) + SET(EXE_NAME Test_${TEST_NAME}) + ADD_EXECUTABLE(${EXE_NAME} ${TEST_NAME}.cpp) + ADD_TEST(StreamIt_${TEST_NAME} ${EXE_NAME}) +ENDMACRO(ADD_STREAMIT_TEST TEST_NAME) + +SET(STREAMIT_TESTS + IHeader + ) + +FOREACH(I ${STREAMIT_TESTS}) + ADD_STREAMIT_TEST(${I}) +ENDFOREACH(I ${STREAMIT_TESTS})
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/IHeader.cpp Tue Mar 30 20:21:34 2010 +0200 @@ -0,0 +1,11 @@ +#include <cstdlib> + +#include "http/IHeader.hpp" + +int main(void) +{ + zia::api::http::IHeader::Key key("Host"); + zia::api::http::IHeader::Value value("www.ziastream.it"); + + return (EXIT_SUCCESS); +}