Commit 3915512d authored by Andrew Grieve's avatar Andrew Grieve Committed by Commit Bot

Reland "Remove deprecated methods in CallbackHelper.java"

This reverts commit 3455d426.

Reason for reland: restored proper dependent CL

TBR=boliu@chromium.org,agrieve@chromium.org,iclelland@chromium.org

Bug: 1000510
Change-Id: I5df68e7d90894a558b35bde90be9b8248eb8c7f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1788019
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: default avatarBo <boliu@chromium.org>
Reviewed-by: default avatarIan Clelland <iclelland@chromium.org>
Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#694765}
parent 2b11fa8b
...@@ -226,20 +226,6 @@ public class CallbackHelper { ...@@ -226,20 +226,6 @@ public class CallbackHelper {
waitForCallback(null, currentCallCount, 1, WAIT_TIMEOUT_SECONDS, TimeUnit.SECONDS); waitForCallback(null, currentCallCount, 1, WAIT_TIMEOUT_SECONDS, TimeUnit.SECONDS);
} }
/**
* @deprecated Use waitForAnyCallback() instead.
*/
public void waitForCallback(String msg) throws InterruptedException, TimeoutException {
waitForCallback(msg, getCallCount());
}
/**
* @deprecated Use waitForAnyCallback() instead.
*/
public void waitForCallback() throws InterruptedException, TimeoutException {
waitForCallback(getCallCount());
}
/** /**
* Wait until the callback has been called once. * Wait until the callback has been called once.
*/ */
......
...@@ -103,9 +103,8 @@ public class PrintingControllerTest { ...@@ -103,9 +103,8 @@ public class PrintingControllerTest {
} }
private static class WaitForOnWriteHelper extends CallbackHelper { private static class WaitForOnWriteHelper extends CallbackHelper {
@Override
public void waitForCallback(String msg) throws InterruptedException, TimeoutException { public void waitForCallback(String msg) throws InterruptedException, TimeoutException {
waitForCallback(msg, 0, 1, TEST_TIMEOUT, TimeUnit.MILLISECONDS); waitForFirst(msg, TEST_TIMEOUT, TimeUnit.MILLISECONDS);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment