This source file includes following definitions.
- getOnEvaluateJavaScriptResultHelper
- getOnStartContentIntentHelper
- onStartContentIntent
package org.chromium.content.browser.test.util;
import android.content.Context;
import org.chromium.content.browser.ContentViewClient;
import org.chromium.content.browser.test.util.TestCallbackHelperContainer.OnEvaluateJavaScriptResultHelper;
import org.chromium.content.browser.test.util.TestCallbackHelperContainer.OnStartContentIntentHelper;
public class TestContentViewClient extends ContentViewClient {
private OnEvaluateJavaScriptResultHelper mOnEvaluateJavaScriptResultHelper;
private OnStartContentIntentHelper mOnStartContentIntentHelper;
public TestContentViewClient() {
mOnEvaluateJavaScriptResultHelper = new OnEvaluateJavaScriptResultHelper();
mOnStartContentIntentHelper = new OnStartContentIntentHelper();
}
public OnEvaluateJavaScriptResultHelper getOnEvaluateJavaScriptResultHelper() {
return mOnEvaluateJavaScriptResultHelper;
}
public OnStartContentIntentHelper getOnStartContentIntentHelper() {
return mOnStartContentIntentHelper;
}
@Override
public void onStartContentIntent(Context context, String contentUrl) {
mOnStartContentIntentHelper.notifyCalled(contentUrl);
}
}