Searched refs:mExpectations (Results 1 – 1 of 1) sorted by relevance
839 private final LinkedBlockingQueue<Integer> mExpectations; field in ConnectivityServiceTest.MockNetworkFactory852 mExpectations = new LinkedBlockingQueue<>(); in MockNetworkFactory()886 synchronized (mExpectations) { in handleAddRequest()887 final Integer expectedScore = mExpectations.poll(); // null if the queue is empty in handleAddRequest()903 mExpectations.notify(); in handleAddRequest()909 synchronized (mExpectations) { in handleRemoveRequest()910 final Integer expectedScore = mExpectations.poll(); // null if the queue is empty in handleRemoveRequest()921 mExpectations.notify(); in handleRemoveRequest()931 if (mExpectations.size() != 0) { in assertNoExpectations()932 fail("Can't add expectation, " + mExpectations.size() + " already pending"); in assertNoExpectations()[all …]