Searched refs:mExpectations (Results 1 – 1 of 1) sorted by relevance
632 private CountDownLatch mExpectations; field in ConnectivityServiceTest.MockNetworkFactory674 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 …]