Rename from yp2 to metaproxy. The namespace for all definitions
[metaproxy-moved-to-github.git] / src / test_pipe.cpp
index 89f1ee6..01c06b9 100644 (file)
@@ -1,5 +1,5 @@
-/* $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.5 2006-03-16 10:40:59 adam Exp $
+   Copyright (c) 2005-2006, Index Data.
 
 %LICENSE%
  */
 #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;