-/* $Id: test_ses_map.cpp,v 1.2 2005-12-02 12:21:07 adam Exp $
- Copyright (c) 2005, Index Data.
+/* $Id: test_ses_map.cpp,v 1.4 2006-06-10 14:29:13 adam Exp $
+ Copyright (c) 2005-2006, Index Data.
-%LICENSE%
+ See the LICENSE file for details
*/
#include "config.hpp"
#include <yaz/otherinfo.h>
using namespace boost::unit_test;
+namespace mp = metaproxy_1;
-namespace yp2 {
+namespace metaproxy_1 {
class SesMap;
private:
boost::mutex m_map_mutex;
public:
- void create(SesMap &sm, const yp2::Session &s, double &t) {
+ void create(SesMap &sm, const mp::Session &s, double &t) {
boost::mutex::scoped_lock lock(m_map_mutex);
boost::shared_ptr<Wrap> w_ptr(new Wrap(t));
m_map_ptr[s] = w_ptr;
}
- std::map<yp2::Session,boost::shared_ptr<Wrap> >m_map_ptr;
+ std::map<mp::Session,boost::shared_ptr<Wrap> >m_map_ptr;
};
}
{
try
{
- yp2::SesMap ses_map;
+ mp::SesMap ses_map;
}
catch ( ... ) {
BOOST_CHECK (false);