src/sim/port.test.cc
/**
 * Test that the peer of the port being taken over from must also be connected.
 *
 * Before the take over the connections are: port2 -> port3
 */
Test that the peer of the port being taken over from must also be connected.
Before the take over the connections are: port2 -> port3
Test that the peer of the port being taken over from must also be connected . Before the take over the connections are : port2 - > port3
TEST(PortDeathTest, TakeOverOneSided)
{
#ifdef NDEBUG
    GTEST_SKIP() << "Skipping as assertions are "
        "stripped out of fast builds";
#endif
    TestPort port(0), port2(2), port3(6);
    port2.bind(port3);
    ASSERT_DEATH(port.takeOverFrom(&port2), "");
}
TEST ( PortDeathTest , TakeOverOneSided ) { #ifdef NDEBUG GTEST_SKIP ( ) << " " " " ; #endif TestPort port ( 0 ) , port2 ( 2 ) , port3 ( 6 ) ; port2 . bind ( port3 ) ; ASSERT_DEATH ( port . takeOverFrom ( & port2 ) , " " ) ; }
Test that the peer of the port being taken over from must also be connected.
Test that the peer of the port being taken over from must also be connected .