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

Side by Side Diff: android_webview/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java

Issue 11883037: Revert 176773 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1384/src/
Patch Set: Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.android_webview.test; 5 package org.chromium.android_webview.test;
6 6
7 import android.webkit.ConsoleMessage; 7 import android.webkit.ConsoleMessage;
8 8
9 import org.chromium.content.browser.test.util.CallbackHelper; 9 import org.chromium.content.browser.test.util.CallbackHelper;
10 import org.chromium.content.browser.test.util.TestCallbackHelperContainer.OnPage StartedHelper; 10 import org.chromium.content.browser.test.util.TestCallbackHelperContainer.OnPage StartedHelper;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 public void onPageFinished(String url) { 66 public void onPageFinished(String url) {
67 mOnPageFinishedHelper.notifyCalled(url); 67 mOnPageFinishedHelper.notifyCalled(url);
68 } 68 }
69 69
70 @Override 70 @Override
71 public void onReceivedError(int errorCode, String description, String failin gUrl) { 71 public void onReceivedError(int errorCode, String description, String failin gUrl) {
72 mOnReceivedErrorHelper.notifyCalled(errorCode, description, failingUrl); 72 mOnReceivedErrorHelper.notifyCalled(errorCode, description, failingUrl);
73 } 73 }
74 74
75 @Override 75 @Override
76 public void onEvaluateJavaScriptResult(int id, String jsonResult) {
77 super.onEvaluateJavaScriptResult(id, jsonResult);
78 mOnEvaluateJavaScriptResultHelper.notifyCalled(id, jsonResult);
79 }
80
81 @Override
76 public boolean onConsoleMessage(ConsoleMessage consoleMessage) { 82 public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
77 mAddMessageToConsoleHelper.setLevel(consoleMessage.messageLevel().ordina l()); 83 mAddMessageToConsoleHelper.setLevel(consoleMessage.messageLevel().ordina l());
78 mAddMessageToConsoleHelper.setMessage(consoleMessage.message()); 84 mAddMessageToConsoleHelper.setMessage(consoleMessage.message());
79 mAddMessageToConsoleHelper.setLineNumber(consoleMessage.lineNumber()); 85 mAddMessageToConsoleHelper.setLineNumber(consoleMessage.lineNumber());
80 mAddMessageToConsoleHelper.setSourceId(consoleMessage.sourceId()); 86 mAddMessageToConsoleHelper.setSourceId(consoleMessage.sourceId());
81 mAddMessageToConsoleHelper.notifyCalled(); 87 mAddMessageToConsoleHelper.notifyCalled();
82 return false; 88 return false;
83 } 89 }
84 90
85 public class AddMessageToConsoleHelper extends CallbackHelper { 91 public class AddMessageToConsoleHelper extends CallbackHelper {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 String contentDisposition, 152 String contentDisposition,
147 String mimeType, 153 String mimeType,
148 long contentLength) { 154 long contentLength) {
149 mLastDownloadUrl = url; 155 mLastDownloadUrl = url;
150 mLastDownloadUserAgent = userAgent; 156 mLastDownloadUserAgent = userAgent;
151 mLastDownloadContentDisposition = contentDisposition; 157 mLastDownloadContentDisposition = contentDisposition;
152 mLastDownloadMimeType = mimeType; 158 mLastDownloadMimeType = mimeType;
153 mLastDownloadContentLength = contentLength; 159 mLastDownloadContentLength = contentLength;
154 } 160 }
155 } 161 }
OLDNEW
« no previous file with comments | « no previous file | android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698