Index: content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java |
index d4530f9d462c853ca053f181e5aef64104083787..0f23bcda766c332bec3cbf16673ac8da8b5e75e6 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java |
@@ -293,12 +293,17 @@ import java.util.UUID; |
} |
@Override |
- @VisibleForTesting |
public void evaluateJavaScript(String script, JavaScriptCallback callback) { |
nativeEvaluateJavaScript(mNativeWebContentsAndroid, script, callback); |
} |
@Override |
+ @VisibleForTesting |
+ public void evaluateJavaScriptForTests(String script, JavaScriptCallback callback) { |
+ nativeEvaluateJavaScriptForTests(mNativeWebContentsAndroid, script, callback); |
+ } |
+ |
+ @Override |
public void addMessageToDevToolsConsole(int level, String message) { |
nativeAddMessageToDevToolsConsole(mNativeWebContentsAndroid, level, message); |
} |
@@ -421,6 +426,8 @@ import java.util.UUID; |
private native void nativeResumeLoadingCreatedWebContents(long nativeWebContentsAndroid); |
private native void nativeEvaluateJavaScript(long nativeWebContentsAndroid, |
String script, JavaScriptCallback callback); |
+ private native void nativeEvaluateJavaScriptForTests(long nativeWebContentsAndroid, |
+ String script, JavaScriptCallback callback); |
private native void nativeAddMessageToDevToolsConsole( |
long nativeWebContentsAndroid, int level, String message); |
private native boolean nativeHasAccessedInitialDocument( |