Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java632 private CountDownLatch mExpectations; field in ConnectivityServiceTest.MockNetworkFactory
674 if (mExpectations != null && !mExpectingAdditions) { in handleAddRequest()
683 assertTrue("Added more requests than expected", mExpectations.getCount() > 0); in handleAddRequest()
684 mExpectations.countDown(); in handleAddRequest()
691 if (mExpectations != null && mExpectingAdditions) { in handleRemoveRequest()
700 assertTrue("Removed more requests than expected", mExpectations.getCount() > 0); in handleRemoveRequest()
701 mExpectations.countDown(); in handleRemoveRequest()
706 if (mExpectations != null) { in assertNoExpectations()
707 fail("Can't add expectation, " + mExpectations.getCount() + " already pending"); in assertNoExpectations()
715 mExpectations = new CountDownLatch(count); in expectAddRequests()
[all …]