Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aca04bfa authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Add a test for TcpKeepalivePacketDataParcelable.toString().

Test: test-only change
Change-Id: I4c15f311e5bb328e8c74602e67d74baec3f89743
parent fcd2235d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -147,5 +147,11 @@ public final class TcpKeepalivePacketDataTest {
        assertEquals(resultData.rcvWndScale, wndScale);
        assertEquals(resultData.tos, tos);
        assertEquals(resultData.ttl, ttl);

        final String expected = ""
                + "android.net.TcpKeepalivePacketDataParcelable{srcAddress: [10, 0, 0, 1],"
                + " srcPort: 1234, dstAddress: [10, 0, 0, 5], dstPort: 4321, seq: 286331153,"
                + " ack: 572662306, rcvWnd: 48000, rcvWndScale: 2, tos: 4, ttl: 64}";
        assertEquals(expected, resultData.toString());
    }
}