X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftest_filter_z3950_client.cpp;fp=src%2Ftest_filter_z3950_client.cpp;h=4675f85c84b0ddfbe259d45e65fc67ad90877b34;hb=219ffa015c0e35b03fae0788b0e8e6abcfde1a81;hp=addaf2c99da2b2906810b78697937689c08330a6;hpb=2f8cb1e1bda27debbd84f233453d33c8ff0700fc;p=metaproxy-moved-to-github.git diff --git a/src/test_filter_z3950_client.cpp b/src/test_filter_z3950_client.cpp index addaf2c..4675f85 100644 --- a/src/test_filter_z3950_client.cpp +++ b/src/test_filter_z3950_client.cpp @@ -1,4 +1,4 @@ -/* $Id: test_filter_z3950_client.cpp,v 1.10 2007-01-25 14:05:54 adam Exp $ +/* $Id: test_filter_z3950_client.cpp,v 1.11 2007-04-13 09:57:51 adam Exp $ Copyright (c) 2005-2007, Index Data. See the LICENSE file for details @@ -20,6 +20,7 @@ #include #include +#include using namespace boost::unit_test; namespace mp = metaproxy_1; @@ -135,8 +136,13 @@ BOOST_AUTO_UNIT_TEST( test_filter_z3950_client_4 ) const char *vhost = "localhost:9999"; if (vhost) - yaz_oi_set_string_oidval(&apdu->u.initRequest->otherInfo, - odr, VAL_PROXY, 1, vhost); + { + const int *oid_proxy = yaz_string_to_oid(yaz_oid_std(), + CLASS_USERINFO, + OID_STR_PROXY); + yaz_oi_set_string_oid(&apdu->u.initRequest->otherInfo, + odr, oid_proxy, 1, vhost); + } BOOST_CHECK(apdu); pack.request() = apdu;