1 /* $Id: test_ses_map.cpp,v 1.1 2005-10-26 18:53:49 adam Exp $
2 Copyright (c) 2005, Index Data.
12 #include "session.hpp"
13 #include "package.hpp"
17 #include <boost/thread.hpp>
18 #include <boost/shared_ptr.hpp>
19 #define BOOST_AUTO_TEST_MAIN
20 #include <boost/test/auto_unit_test.hpp>
23 #include <yaz/pquery.h>
24 #include <yaz/otherinfo.h>
25 using namespace boost::unit_test;
35 Wrap(const double &t) : m_t(t) { };
40 boost::mutex m_map_mutex;
42 void create(SesMap &sm, const yp2::Session &s, double &t) {
43 boost::mutex::scoped_lock lock(m_map_mutex);
45 boost::shared_ptr<Wrap> w_ptr(new Wrap(t));
48 std::map<yp2::Session,boost::shared_ptr<Wrap> >m_map_ptr;
53 BOOST_AUTO_TEST_CASE( test_ses_map_1 )
68 * indent-tabs-mode: nil
69 * c-file-style: "stroustrup"
71 * vim: shiftwidth=4 tabstop=8 expandtab