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

Commit c240b247 authored by Xiao Ma's avatar Xiao Ma Committed by Gerrit Code Review
Browse files

Merge "Cleanup testOverrideVendorId static member after running unittest."

parents 6776ba07 18006eb0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ import androidx.test.runner.AndroidJUnit4;

import com.android.internal.util.HexDump;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -98,6 +99,11 @@ public class DhcpPacketTest {
        DhcpPacket.testOverrideVendorId = "android-dhcp-???";
    }

    @After
    public void tearDown() {
        DhcpPacket.testOverrideVendorId = null;
    }

    class TestDhcpPacket extends DhcpPacket {
        private byte mType;
        // TODO: Make this a map of option numbers to bytes instead.