Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/
DConnectivityServiceTest.java445 private CountDownLatch mExpectations; field in ConnectivityServiceTest.MockNetworkFactory
487 if (mExpectations != null && !mExpectingAdditions) { in handleAddRequest()
496 assertTrue("Added more requests than expected", mExpectations.getCount() > 0); in handleAddRequest()
497 mExpectations.countDown(); in handleAddRequest()
504 if (mExpectations != null && mExpectingAdditions) { in handleRemoveRequest()
513 assertTrue("Removed more requests than expected", mExpectations.getCount() > 0); in handleRemoveRequest()
514 mExpectations.countDown(); in handleRemoveRequest()
519 if (mExpectations != null) { in assertNoExpectations()
520 fail("Can't add expectation, " + mExpectations.getCount() + " already pending"); in assertNoExpectations()
528 mExpectations = new CountDownLatch(count); in expectAddRequests()
[all …]