X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftest_filter_log.cpp;h=27aad45bcce52e4423023d9cd86a546403bc42d4;hb=807b4a4f2f12f18ecd7ffe4198e7d3c7053f2c36;hp=a14b827e7a29367f15a80eb6c0f62f1790e96bd0;hpb=d0123337d70b0fb97b578cc57467bb94980f1014;p=metaproxy-moved-to-github.git diff --git a/src/test_filter_log.cpp b/src/test_filter_log.cpp index a14b827..27aad45 100644 --- a/src/test_filter_log.cpp +++ b/src/test_filter_log.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2009 Index Data + Copyright (C) 2005-2011 Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -21,10 +21,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include "filter_log.hpp" -#include "util.hpp" +#include #include "router_chain.hpp" -#include "session.hpp" -#include "package.hpp" +#include #define BOOST_AUTO_TEST_MAIN #define BOOST_TEST_DYN_LINK @@ -43,18 +42,16 @@ public: } Z_GDU *gdu = package.request().get(); - if (gdu) + if (gdu && gdu->which == Z_GDU_Z3950) { // std::cout << "Got PDU. Sending init response\n"; mp::odr odr; - Z_APDU *apdu = zget_APDU(odr, Z_APDU_initResponse); - - apdu->u.initResponse->implementationName = "YP2/YAZ"; - + Z_APDU *apdu = odr.create_initResponse(gdu->u.z3950, 0, 0); package.response() = apdu; } return package.move(); }; + void configure(const xmlNode* ptr, bool test_only, const char *path) {}; };