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

Commit f7df588c authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by Automerger Merge Worker
Browse files

Merge "Add a test for TcpKeepalivePacketDataParcelable.toString()." am: a7e74b30

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1502382

Change-Id: Ib92977574ffb28cd2e455328260f215352f24b32
parents efbc1deb a7e74b30
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());
    }
}