Commit 3a3f1241 authored by Xiao Ma's avatar Xiao Ma Committed by Tyler Wear
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 NetworkStackTest
Change-Id: I585fa7942f7ddc8dc167a513c816f4534c120fc1
(cherry picked from commit eb61ab9aad76e896782c400015dbd2f1d9c62314)
CRs-fixed: 2583997
parent 9d2ec22e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment