Year 2007.
[metaproxy-moved-to-github.git] / src / test_pipe.cpp
index 89f1ee6..282c50c 100644 (file)
@@ -1,12 +1,12 @@
-/* $Id: test_pipe.cpp,v 1.3 2005-11-08 08:55:41 adam Exp $
-   Copyright (c) 2005, Index Data.
+/* $Id: test_pipe.cpp,v 1.8 2007-01-25 14:05:54 adam Exp $
+   Copyright (c) 2005-2007, Index Data.
 
-%LICENSE%
+   See the LICENSE file for details
  */
 
 #include "config.hpp"
 
-#include <yaz++/socket-manager.h>
+#include <yazpp/socket-manager.h>
 
 #include <iostream>
 #include <stdexcept>
 #include <boost/test/auto_unit_test.hpp>
 
 using namespace boost::unit_test;
+namespace mp = metaproxy_1;
 
 class Timer : public yazpp_1::ISocketObserver {
 private:
     yazpp_1::ISocketObservable *m_obs;
-    yp2::Pipe m_pipe;
+    mp::Pipe m_pipe;
     bool m_timeout;
 public:
     Timer(yazpp_1::ISocketObservable *obs, int duration);
@@ -46,7 +47,7 @@ void Timer::socketNotify(int event)
     m_obs->deleteObserver(this);
 }
 
-BOOST_AUTO_TEST_CASE( test_pipe_1 )
+BOOST_AUTO_UNIT_TEST( test_pipe_1 )
 {
     yazpp_1::SocketManager mySocketManager;