Home
last modified time | relevance | path

Searched refs:SHORT_TIMEOUT (Results 1 – 1 of 1) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DTrackRecordTest.kt48 const val SHORT_TIMEOUT = 40L // ms in <lambda>() constant
181 var delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 0)) } in <lambda>()
182 assertTrue(delay >= SHORT_TIMEOUT, "Delay $delay < $SHORT_TIMEOUT") in <lambda>()
183 delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 0) { it < 10 }) } in <lambda>()
184 assertTrue(delay >= SHORT_TIMEOUT) in <lambda>()
221 Thread.sleep(SHORT_TIMEOUT * 2) in <lambda>()
230 assertTrue(delay in SHORT_TIMEOUT..TEST_TIMEOUT) in <lambda>()
235 delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 1)) } in <lambda>()
236 assertTrue(delay >= SHORT_TIMEOUT, "Delay $delay < $SHORT_TIMEOUT") in <lambda>()
238 delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 0) { it < 10 }) } in <lambda>()
[all …]