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

Commit 718df42b authored by Roshan Pius's avatar Roshan Pius
Browse files

IpConfigStore: New constructor to accept writer

Add a new constructor to accept a DelayeDiskWrite object from the
caller.

BUG: 27293150
Change-Id: I13fb86c76ee5a0d05b45fec0c42b7e1b2233ee76
TEST: `runtest frameworks-wifi`
parent c3b52bc4
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -59,8 +59,12 @@ public class IpConfigStore {

    protected static final int IPCONFIG_FILE_VERSION = 2;

    public IpConfigStore(DelayedDiskWrite writer) {
        mWriter = writer;
    }

    public IpConfigStore() {
        mWriter = new DelayedDiskWrite();
        this(new DelayedDiskWrite());
    }

    private boolean writeConfig(DataOutputStream out, int configKey,