Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9017)

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java

Issue 284123004: [android_webview] Add more params to request intercepting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java
index f307480e920d809682e45f092c34b58e000968dc..21771da441b1316df21993f25d4dd2b663a0cedd 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java
@@ -21,6 +21,7 @@ import static org.chromium.base.test.util.ScalableTimeout.scaleTimeout;
import org.apache.http.Header;
import org.apache.http.HttpRequest;
import org.chromium.android_webview.AwContents;
+import org.chromium.android_webview.AwContentsClient.ShouldInterceptRequestParams;
import org.chromium.android_webview.AwSettings;
import org.chromium.android_webview.AwSettings.LayoutAlgorithm;
import org.chromium.android_webview.InterceptedRequestData;
@@ -2571,8 +2572,9 @@ public class AwSettingsTest extends AwTestBase {
final String DEFAULT_VIDEO_POSTER_URL = "http://default_video_poster/";
TestAwContentsClient client = new TestAwContentsClient() {
@Override
- public InterceptedRequestData shouldInterceptRequest(String url) {
- if (url.equals(DEFAULT_VIDEO_POSTER_URL)) {
+ public InterceptedRequestData shouldInterceptRequest(
+ ShouldInterceptRequestParams params) {
+ if (params.url.equals(DEFAULT_VIDEO_POSTER_URL)) {
videoPosterAccessedCallbackHelper.notifyCalled();
}
return null;

Powered by Google App Engine
This is Rietveld 408576698