IpConnectivityMetrics reads buffer size in settings

Test: IpConnectivityMetricsTest passes. Also manually changed the new
setting and verified the buffer size is as expected after flushing the
buffer.
Bug: 32198637

(cherry picked from commit 6d8c1dfe4b)

Change-Id: Iefbeac3a688b260fb3f92dfe0bfd9db28e26749d
This commit is contained in:
Hugo Benichi
2016-10-19 11:17:28 +09:00
committed by Lorenzo Colitti
parent deebea6136
commit ce2cfa545d

View File

@@ -57,7 +57,7 @@ public class IpConnectivityMetricsTest extends TestCase {
public void setUp() { public void setUp() {
MockitoAnnotations.initMocks(this); MockitoAnnotations.initMocks(this);
mService = new IpConnectivityMetrics(mCtx); mService = new IpConnectivityMetrics(mCtx, (ctx) -> 2000);
} }
public void testLoggingEvents() throws Exception { public void testLoggingEvents() throws Exception {