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`
This commit is contained in:
Roshan Pius
2016-02-22 17:06:47 -08:00
parent c3b52bc466
commit 718df42b23

View File

@@ -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,