Searched refs:mExpectations (Results 1 – 1 of 1) sorted by relevance
538 private CountDownLatch mExpectations; field in ConnectivityServiceTest.MockNetworkFactory580 if (mExpectations != null && !mExpectingAdditions) { in handleAddRequest()589 assertTrue("Added more requests than expected", mExpectations.getCount() > 0); in handleAddRequest()590 mExpectations.countDown(); in handleAddRequest()597 if (mExpectations != null && mExpectingAdditions) { in handleRemoveRequest()606 assertTrue("Removed more requests than expected", mExpectations.getCount() > 0); in handleRemoveRequest()607 mExpectations.countDown(); in handleRemoveRequest()612 if (mExpectations != null) { in assertNoExpectations()613 fail("Can't add expectation, " + mExpectations.getCount() + " already pending"); in assertNoExpectations()621 mExpectations = new CountDownLatch(count); in expectAddRequests()[all …]