Searched refs:mExpectations (Results 1 – 1 of 1) sorted by relevance
842 private final LinkedBlockingQueue<Integer> mExpectations; field in ConnectivityServiceTest.MockNetworkFactory855 mExpectations = new LinkedBlockingQueue<>(); in MockNetworkFactory()889 synchronized (mExpectations) { in handleAddRequest()890 final Integer expectedScore = mExpectations.poll(); // null if the queue is empty in handleAddRequest()906 mExpectations.notify(); in handleAddRequest()912 synchronized (mExpectations) { in handleRemoveRequest()913 final Integer expectedScore = mExpectations.poll(); // null if the queue is empty in handleRemoveRequest()924 mExpectations.notify(); in handleRemoveRequest()934 if (mExpectations.size() != 0) { in assertNoExpectations()935 fail("Can't add expectation, " + mExpectations.size() + " already pending"); in assertNoExpectations()[all …]