projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Work on filter log. Added support for init-options logging. Category
[metaproxy-moved-to-github.git]
/
src
/
test_filter_backend_test.cpp
diff --git
a/src/test_filter_backend_test.cpp
b/src/test_filter_backend_test.cpp
index
ee107d7
..
c3719c3
100644
(file)
--- a/
src/test_filter_backend_test.cpp
+++ b/
src/test_filter_backend_test.cpp
@@
-1,7
+1,7
@@
-/* $Id: test_filter_backend_test.cpp,v 1.5 2005-10-30 17:13:36 adam Exp $
- Copyright (c) 2005, Index Data.
+/* $Id: test_filter_backend_test.cpp,v 1.8 2006-06-10 14:29:12 adam Exp $
+ Copyright (c) 2005-2006, Index Data.
-%LICENSE%
+ See the LICENSE file for details
*/
#include "config.hpp"
*/
#include "config.hpp"
@@
-24,29
+24,31
@@
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
#include <boost/test/auto_unit_test.hpp>
using namespace boost::unit_test;
-BOOST_AUTO_TEST_CASE( test_filter_backend_test_1 )
+namespace mp = metaproxy_1;
+
+BOOST_AUTO_UNIT_TEST( test_filter_backend_test_1 )
{
try
{
{
try
{
- yp2::filter::Backend_test btest;
+ mp::filter::Backend_test btest;
}
catch ( ... ) {
BOOST_CHECK (false);
}
}
}
catch ( ... ) {
BOOST_CHECK (false);
}
}
-BOOST_AUTO_TEST_CASE( test_filter_backend_test_2 )
+BOOST_AUTO_UNIT_TEST( test_filter_backend_test_2 )
{
try
{
{
try
{
- yp2::RouterChain router;
+ mp::RouterChain router;
- yp2::filter::Backend_test btest;
+ mp::filter::Backend_test btest;
router.append(btest);
router.append(btest);
- yp2::Package pack;
+ mp::Package pack;
- yp2::odr odr;
+ mp::odr odr;
Z_APDU *apdu = zget_APDU(odr, Z_APDU_initRequest);
BOOST_CHECK(apdu);
Z_APDU *apdu = zget_APDU(odr, Z_APDU_initRequest);
BOOST_CHECK(apdu);
@@
-73,23
+75,23
@@
BOOST_AUTO_TEST_CASE( test_filter_backend_test_2 )
}
}
}
}
-BOOST_AUTO_TEST_CASE( test_filter_backend_test_3 )
+BOOST_AUTO_UNIT_TEST( test_filter_backend_test_3 )
{
try
{
{
try
{
- yp2::RouterChain router;
+ mp::RouterChain router;
- yp2::filter::Backend_test btest;
+ mp::filter::Backend_test btest;
router.append(btest);
router.append(btest);
- yp2::Package pack;
+ mp::Package pack;
// send search request as first request.. That should fail with
// a close from the backend
// send search request as first request.. That should fail with
// a close from the backend
- yp2::odr odr;
+ mp::odr odr;
Z_APDU *apdu = zget_APDU(odr, Z_APDU_searchRequest);
Z_APDU *apdu = zget_APDU(odr, Z_APDU_searchRequest);
- yp2::util::pqf(odr, apdu, "computer");
+ mp::util::pqf(odr, apdu, "computer");
apdu->u.searchRequest->num_databaseNames = 1;
apdu->u.searchRequest->databaseNames = (char**)
apdu->u.searchRequest->num_databaseNames = 1;
apdu->u.searchRequest->databaseNames = (char**)
@@
-120,20
+122,20
@@
BOOST_AUTO_TEST_CASE( test_filter_backend_test_3 )
}
}
}
}
-BOOST_AUTO_TEST_CASE( test_filter_backend_test_4 )
+BOOST_AUTO_UNIT_TEST( test_filter_backend_test_4 )
{
try
{
{
try
{
- yp2::RouterChain router;
+ mp::RouterChain router;
- yp2::filter::Backend_test btest;
+ mp::filter::Backend_test btest;
router.append(btest);
router.append(btest);
- yp2::Package pack;
+ mp::Package pack;
// send present request as first request.. That should fail with
// a close from the backend
// send present request as first request.. That should fail with
// a close from the backend
- yp2::odr odr;
+ mp::odr odr;
Z_APDU *apdu = zget_APDU(odr, Z_APDU_presentRequest);
BOOST_CHECK(apdu);
Z_APDU *apdu = zget_APDU(odr, Z_APDU_presentRequest);
BOOST_CHECK(apdu);