Chromium Code Reviews| Index: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java |
| diff --git a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java |
| index c06fa6c0658d4374a04085dd645dcc05feb92d87..d461d99540c28cdbcae6cfc4d0978445ddada445 100644 |
| --- a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java |
| +++ b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java |
| @@ -17,12 +17,9 @@ import java.util.concurrent.TimeoutException; |
| * This class is used to provide callback hooks for tests and related classes. |
| */ |
| public class TestCallbackHelperContainer { |
| - private final TestContentViewClient mTestContentViewClient; |
| - private TestWebContentsObserver mTestWebContentsObserver; |
|
boliu
2017/02/08 18:51:51
nit: remove this empty line
Jinsuk Kim
2017/02/08 22:49:39
Done.
|
| + private TestWebContentsObserver mTestWebContentsObserver; |
| public TestCallbackHelperContainer(final ContentViewCore contentViewCore) { |
| - mTestContentViewClient = new TestContentViewClient(); |
| - contentViewCore.setContentViewClient(mTestContentViewClient); |
| // TODO(yfriedman): Change callers to be executed on the UI thread. Unfortunately this is |
| // super convenient as the caller is nearly always on the test thread which is fine to block |
| // and it's cumbersome to keep bouncing to the UI thread. |
| @@ -35,12 +32,6 @@ public class TestCallbackHelperContainer { |
| }); |
| } |
| - protected TestCallbackHelperContainer( |
| - TestContentViewClient viewClient, TestWebContentsObserver contentsObserver) { |
| - mTestContentViewClient = viewClient; |
| - mTestWebContentsObserver = contentsObserver; |
| - } |
| - |
| /** |
| * CallbackHelper for OnPageCommitVisible. |
| */ |
| @@ -181,21 +172,6 @@ public class TestCallbackHelperContainer { |
| } |
| } |
| - /** |
| - * CallbackHelper for OnStartContentIntent. |
| - */ |
| - public static class OnStartContentIntentHelper extends CallbackHelper { |
| - private String mIntentUrl; |
| - public void notifyCalled(String intentUrl) { |
| - mIntentUrl = intentUrl; |
| - notifyCalled(); |
| - } |
| - public String getIntentUrl() { |
| - assert getCallCount() > 0; |
| - return mIntentUrl; |
| - } |
| - } |
| - |
| public OnPageStartedHelper getOnPageStartedHelper() { |
| return mTestWebContentsObserver.getOnPageStartedHelper(); |
| } |
| @@ -207,8 +183,4 @@ public class TestCallbackHelperContainer { |
| public OnReceivedErrorHelper getOnReceivedErrorHelper() { |
| return mTestWebContentsObserver.getOnReceivedErrorHelper(); |
| } |
| - |
| - public OnStartContentIntentHelper getOnStartContentIntentHelper() { |
| - return mTestContentViewClient.getOnStartContentIntentHelper(); |
| - } |
| } |