]> git.llucax.com Git - software/posixx.git/blobdiff - test/socket/unix/common.hpp
Generalize basic_buffer's value_type
[software/posixx.git] / test / socket / unix / common.hpp
index e80f1a635de33dd9f9964305c6362815c6f10db0..4686974d5bd5c79e8a787ac0681b246e8626b8ba 100644 (file)
@@ -2,6 +2,7 @@
 #define TEST_SOCKET_UNIX_COMMON_HPP_
 
 #include <posixx/socket/unix.hpp> // posixx::socket::unix
+#include <posixx/socket/unix/print.hpp> // address ostream formatting
 #include <boost/test/unit_test.hpp> // unit testing stuff
 #include <ostream> // std::ostream
 #include <unistd.h> // unlink
 #define PATH1 PATH "1"
 #define PATH2 PATH "2"
 
-static inline
-std::ostream& operator << (std::ostream& os,
-               const posixx::socket::unix::sockaddr& sa) throw()
-{
-       return os << "unix::sockaddr(family=" << sa.sun_family
-               << ", path=" << sa.sun_path << ")";
-}
-
 static inline
 void clean_test_address(posixx::socket::unix::socket& socket,
                const posixx::socket::unix::sockaddr& addr)