-/* $Id: filter_backend_test.cpp,v 1.19 2006-06-10 14:29:12 adam Exp $
+/* $Id: filter_backend_test.cpp,v 1.20 2006-09-28 11:56:54 marc Exp $
Copyright (c) 2005-2006, Index Data.
See the LICENSE file for details
class Session_info {
int dummy;
};
- class Backend_test::Rep {
- friend class Backend_test;
+ class BackendTest::Rep {
+ friend class BackendTest;
Z_Records *fetch(
ODR odr, Odr_oid *preferredRecordSyntax,
"\x20\x20\x20\x31\x31\x32\x32\x34\x34\x36\x36\x20\x1E\x1D";
-yf::Backend_test::Backend_test() : m_p(new Backend_test::Rep) {
+yf::BackendTest::BackendTest() : m_p(new BackendTest::Rep) {
m_p->m_support_named_result_sets = false;
}
-yf::Backend_test::~Backend_test() {
+yf::BackendTest::~BackendTest() {
}
-Z_Records *yf::Backend_test::Rep::fetch(
+Z_Records *yf::BackendTest::Rep::fetch(
ODR odr, Odr_oid *preferredRecordSyntax,
int start, int number, int &error_code, std::string &addinfo,
int *number_returned, int *next_position)
return rec;
}
-void yf::Backend_test::process(Package &package) const
+void yf::BackendTest::process(Package &package) const
{
Z_GDU *gdu = package.request().get();
static mp::filter::Base* filter_creator()
{
- return new mp::filter::Backend_test;
+ return new mp::filter::BackendTest;
}
extern "C" {
-/* $Id: filter_backend_test.hpp,v 1.9 2006-06-10 14:29:12 adam Exp $
+/* $Id: filter_backend_test.hpp,v 1.10 2006-09-28 11:56:54 marc Exp $
Copyright (c) 2005-2006, Index Data.
See the LICENSE file for details
namespace metaproxy_1 {
namespace filter {
- class Backend_test : public Base {
+ class BackendTest : public Base {
class Rep;
public:
- ~Backend_test();
- Backend_test();
+ ~BackendTest();
+ BackendTest();
void process(metaproxy_1::Package & package) const;
private:
boost::scoped_ptr<Rep> m_p;
-/* $Id: test_filter_backend_test.cpp,v 1.8 2006-06-10 14:29:12 adam Exp $
+/* $Id: test_filter_backend_test.cpp,v 1.9 2006-09-28 11:56:54 marc Exp $
Copyright (c) 2005-2006, Index Data.
See the LICENSE file for details
{
try
{
- mp::filter::Backend_test btest;
+ mp::filter::BackendTest btest;
}
catch ( ... ) {
BOOST_CHECK (false);
{
mp::RouterChain router;
- mp::filter::Backend_test btest;
+ mp::filter::BackendTest btest;
router.append(btest);
mp::Package pack;
{
mp::RouterChain router;
- mp::filter::Backend_test btest;
+ mp::filter::BackendTest btest;
router.append(btest);
mp::Package pack;
{
mp::RouterChain router;
- mp::filter::Backend_test btest;
+ mp::filter::BackendTest btest;
router.append(btest);
mp::Package pack;
-/* $Id: test_filter_sru_to_z3950.cpp,v 1.1 2006-09-28 10:38:00 marc Exp $
+/* $Id: test_filter_sru_to_z3950.cpp,v 1.2 2006-09-28 11:56:54 marc Exp $
Copyright (c) 2005-2006, Index Data.
See the LICENSE file for details
}
}
-// BOOST_AUTO_UNIT_TEST( test_filter_sru_to_z3950_2 )
-// {
-// try
-// {
-// mp::RouterChain router;
+BOOST_AUTO_UNIT_TEST( test_filter_sru_to_z3950_2 )
+{
+ try
+ {
+ mp::RouterChain router;
-// mp::filter::SRUtoZ3950 f_sru_to_z3950;
-// //FilterBounceZ3950 f_bounce_z3950;
+ mp::filter::SRUtoZ3950 f_sru_to_z3950;
-// router.append(f_sru_to_z3950);
-// //router.append(f_bounce_z3950);
+ router.append(f_sru_to_z3950);
-// check_sru_to_z3950_init(router);
-// check_sru_to_z3950_search(router,
-// "@attrset Bib-1 @attr 1=4 the",
-// "@attrset Bib-1 @attr 1=4 the");
+ //check_sru_to_z3950_init(router);
+ //check_sru_to_z3950_search(router,
+ // "@attrset Bib-1 @attr 1=4 the",
+ // "@attrset Bib-1 @attr 1=4 the");
-// }
-// catch ( ... ) {
-// BOOST_CHECK (false);
-// }
-// }
+ }
+ catch ( ... ) {
+ BOOST_CHECK (false);
+ }
+}
// BOOST_AUTO_UNIT_TEST( test_filter_sru_to_z3950_3 )
-/* $Id: test_filter_virt_db.cpp,v 1.13 2006-06-10 14:29:12 adam Exp $
+/* $Id: test_filter_virt_db.cpp,v 1.14 2006-09-28 11:56:54 marc Exp $
Copyright (c) 2005-2006, Index Data.
See the LICENSE file for details
#if 0
router.append(filter_log2);
#endif
- mp::filter::Backend_test btest;
+ mp::filter::BackendTest btest;
router.append(btest);
mp::Session session1;