Socket: fixed socket handle dumpState() tests
tho [Sun, 16 Aug 2009 15:08:29 +0000 (15:08 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1293 270642c3-0616-0410-b53a-bc976706d245

Socket/ProtocolServerSocketHandle.test.cc
Socket/SocketHandle.test.cc

index 9a3913f..7d51364 100644 (file)
@@ -67,13 +67,8 @@ BOOST_AUTO_UNIT_TEST(protocolServerSocketHandle)
         BOOST_CHECK_EQUAL( client.fd(), -1 );
 
         BOOST_CHECK_EQUAL( h.dumpState(),
-                           "file.handle: -1\n"
-                           "file.refcount: 2\n"
-                           "handle: senf::ProtocolServerSocketHandle<(anonymous namespace)::MySocketProtocol>\n"
-                           "socket.protocol: (anonymous namespace)::MySocketProtocol\n"
-                           "socket.protocol.policy: senf::SocketPolicy<senf::test::SomeAddressingPolicy, senf::test::SomeFramingPolicy, senf::test::SomeCommunicationPolicy, senf::test::SomeReadPolicy, senf::test::SomeWritePolicy>\n"
-                           "socket.server: true\n" );
-
+                "handle: senf::ProtocolServerSocketHandle<(anonymous namespace)::MySocketProtocol>\n"
+                "valid: false\n" );
     }
 
     {
index 234ca02..b4d8e5c 100644 (file)
@@ -96,12 +96,13 @@ BOOST_AUTO_UNIT_TEST(socketHandle)
                            std::bad_cast );
 
         BOOST_CHECK_EQUAL( myh.dumpState(),
-                           "file.handle: 0\n"
-                           "file.refcount: 3\n"
-                           "handle: senf::SocketHandle<senf::SocketPolicy<senf::test::SomeAddressingPolicy, senf::test::SomeFramingPolicy, senf::test::SomeCommunicationPolicy, senf::test::SomeReadPolicy, senf::test::SomeWritePolicy> >\n"
-                           "socket.protocol: senf::test::SomeSocketProtocol\n"
-                           "socket.protocol.policy: senf::SocketPolicy<senf::test::SomeAddressingPolicy, senf::test::SomeFramingPolicy, senf::test::SomeCommunicationPolicy, senf::test::SomeReadPolicy, senf::test::SomeWritePolicy>\n"
-                           "socket.server: false\n" );
+                "file.handle: 0\n"
+                "file.refcount: 3\n"
+                "handle: senf::SocketHandle<senf::SocketPolicy<senf::test::SomeAddressingPolicy, senf::test::SomeFramingPolicy, senf::test::SomeCommunicationPolicy, senf::test::SomeReadPolicy, senf::test::SomeWritePolicy> >\n"
+                "socket.protocol: senf::test::SomeSocketProtocol\n"
+                "socket.protocol.policy: senf::SocketPolicy<senf::test::SomeAddressingPolicy, senf::test::SomeFramingPolicy, senf::test::SomeCommunicationPolicy, senf::test::SomeReadPolicy, senf::test::SomeWritePolicy>\n"
+                "socket.server: false\n"
+                "valid: true\n" );
 
         SENF_CHECK_NO_THROW( myh.facet<senf::test::SomeSocketProtocol>() );
     }