Mercurial > archived > louis > epitech > zia-api
changeset 66:86584ae719fc
Fix problem with header fixed #8, add test for all header fix #9, #11
author | daedric <d43dr1c@gmail.com> |
---|---|
date | Tue, 30 Mar 2010 23:02:51 +0200 |
parents | 769d5793f550 |
children | 360da757ccb0 |
files | include/IConfig.hpp include/IModule.hpp include/network/IEndPoint.hpp tests/CMakeLists.txt tests/IBodyHandler.cpp tests/IConfig.cpp tests/IEndPoint.cpp tests/IHandler.cpp tests/IHeaderHandler.cpp tests/IModule.cpp tests/IRequest.cpp tests/IResponse.cpp tests/ITransaction.cpp |
diffstat | 13 files changed, 159 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/include/IConfig.hpp Tue Mar 30 21:39:30 2010 +0200 +++ b/include/IConfig.hpp Tue Mar 30 23:02:51 2010 +0200 @@ -14,6 +14,7 @@ */ class IConfig { + public: typedef std::map<std::string, std::string> ValueMap; virtual ~IConfig(void) { }
--- a/include/IModule.hpp Tue Mar 30 21:39:30 2010 +0200 +++ b/include/IModule.hpp Tue Mar 30 23:02:51 2010 +0200 @@ -5,6 +5,7 @@ # include <vector> # include "IConfig.hpp" +# include "handler/IHandler.hpp" /** * @mainpage StreamIt API Reference
--- a/include/network/IEndPoint.hpp Tue Mar 30 21:39:30 2010 +0200 +++ b/include/network/IEndPoint.hpp Tue Mar 30 23:02:51 2010 +0200 @@ -1,6 +1,8 @@ #ifndef __ZIA_API_IENDPOINT_HPP_ # define __ZIA_API_IENDPOINT_HPP_ +# include <string> + namespace zia { namespace api
--- a/tests/CMakeLists.txt Tue Mar 30 21:39:30 2010 +0200 +++ b/tests/CMakeLists.txt Tue Mar 30 23:02:51 2010 +0200 @@ -7,6 +7,14 @@ SET(STREAMIT_TESTS IHeader INetworkHandler + IEndPoint + IModule + IHeaderHandler + IHandler + IBodyHandler + IRequest + IResponse + IConfig ) FOREACH(I ${STREAMIT_TESTS})
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/IBodyHandler.cpp Tue Mar 30 23:02:51 2010 +0200 @@ -0,0 +1,17 @@ +/* + * IBodyHandler.cpp + * + * Created on: 30 mars 2010 + * Author: Daedric + */ + +# include "handler/IBodyHandler.hpp" + +int main(int, char**) +{ + + + + + return (0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/IConfig.cpp Tue Mar 30 23:02:51 2010 +0200 @@ -0,0 +1,16 @@ +/* + * IConfig.cpp + * + * Created on: 30 mars 2010 + * Author: Daedric + */ + +#include "IConfig.hpp" +#include <utility> + +int main(int, char**) +{ + zia::api::IConfig::ValueMap map; + + map.insert(std::make_pair("kikoo", "lol")); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/IEndPoint.cpp Tue Mar 30 23:02:51 2010 +0200 @@ -0,0 +1,25 @@ +/* + * IEndPoint.cpp + * + * Created on: 30 mars 2010 + * Author: Daedric + */ + +#include "network/IEndPoint.hpp" + +using namespace zia::api::network; + +int main(int, char**) +{ + IEndPoint::Ip ip = 123; + IEndPoint::Port port= 8000; + IEndPoint::Socket socket = 1234; + IEndPoint::IAddress addr = "salut"; + + (void)ip; + (void)port; + (void)socket; + (void)addr; + + return (0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/IHandler.cpp Tue Mar 30 23:02:51 2010 +0200 @@ -0,0 +1,13 @@ +/* + * IHandler.cpp + * + * Created on: 30 mars 2010 + * Author: Daedric + */ + +#include "handler/IHandler.hpp" + +int main(int, char**) +{ + return zia::api::handler::NetworkModifier & zia::api::handler::Ok; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/IHeaderHandler.cpp Tue Mar 30 23:02:51 2010 +0200 @@ -0,0 +1,17 @@ +/* + * IHeaderHandler.cpp + * + * Created on: 30 mars 2010 + * Author: Daedric + */ + +#include "handler/IHeaderHandler.hpp" + +int main(int, char**) +{ + + + + + return (0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/IModule.cpp Tue Mar 30 23:02:51 2010 +0200 @@ -0,0 +1,15 @@ +/* + * IModule.cpp + * + * Created on: 30 mars 2010 + * Author: Daedric + */ + +#include "IModule.hpp" + +int main(int, char**) +{ + + + return (0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/IRequest.cpp Tue Mar 30 23:02:51 2010 +0200 @@ -0,0 +1,15 @@ +/* + * IRequest.cpp + * + * Created on: 30 mars 2010 + * Author: Daedric + */ + +#include "http/IRequest.hpp" + +int main(int, char**) +{ + + + return (0); +}