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

Skip to content
Commit eb61ab9a authored by Xiao Ma's avatar Xiao Ma
Browse files

Separate the timeout behavior from PacketRetransmittingState class.

The purpose is to make subclass that only requires timeout method
could extend from TimeoutState instead of PacketRetransmittingState,
avoiding the anti-pattern of using inheritance for code reuse only.

After refactoring, class inheritance relationship looks like:

LoggingState <-- TimeoutState <-- PacketRetransmittingState <-- DhcpInitState

Bug: 140223017
Test: atest FrameworksNetTests NetworkStackTests
Test: atest NetworkStackIntegrationTests

Change-Id: I1fed3ff3ef8b0bdf3645188949e38c3a332f9d6e
parent f3f5f36d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment