# HG changeset patch # User daedric # Date 1269982971 -7200 # Node ID 86584ae719fcf3a457f97846e5fd834d72009649 # Parent 769d5793f5504af467570644be205d97fdb6077a Fix problem with header fixed #8, add test for all header fix #9, #11 diff -r 769d5793f550 -r 86584ae719fc include/IConfig.hpp --- 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 ValueMap; virtual ~IConfig(void) { } diff -r 769d5793f550 -r 86584ae719fc include/IModule.hpp --- 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 # include "IConfig.hpp" +# include "handler/IHandler.hpp" /** * @mainpage StreamIt API Reference diff -r 769d5793f550 -r 86584ae719fc include/network/IEndPoint.hpp --- 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 + namespace zia { namespace api diff -r 769d5793f550 -r 86584ae719fc tests/CMakeLists.txt --- 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}) diff -r 769d5793f550 -r 86584ae719fc tests/IBodyHandler.cpp --- /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); +} diff -r 769d5793f550 -r 86584ae719fc tests/IConfig.cpp --- /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 + +int main(int, char**) +{ + zia::api::IConfig::ValueMap map; + + map.insert(std::make_pair("kikoo", "lol")); +} diff -r 769d5793f550 -r 86584ae719fc tests/IEndPoint.cpp --- /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); +} diff -r 769d5793f550 -r 86584ae719fc tests/IHandler.cpp --- /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; +} diff -r 769d5793f550 -r 86584ae719fc tests/IHeaderHandler.cpp --- /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); +} diff -r 769d5793f550 -r 86584ae719fc tests/IModule.cpp --- /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); +} diff -r 769d5793f550 -r 86584ae719fc tests/IRequest.cpp --- /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); +} diff -r 769d5793f550 -r 86584ae719fc tests/IResponse.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/IResponse.cpp Tue Mar 30 23:02:51 2010 +0200 @@ -0,0 +1,14 @@ +/* + * IResponse.cpp + * + * Created on: 30 mars 2010 + * Author: Daedric + */ + +#include "http/IResponse.hpp" + +int main(int, char**) +{ + + return (0); +} diff -r 769d5793f550 -r 86584ae719fc tests/ITransaction.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/ITransaction.cpp Tue Mar 30 23:02:51 2010 +0200 @@ -0,0 +1,15 @@ +/* + * ITransaction.cpp + * + * Created on: 30 mars 2010 + * Author: Daedric + */ + +#include "http/ITransaction.hpp" + +int main(int, char**) +{ + + + return (0); +}