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

Unified Diff: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestCallbackHelperContainer.java

Issue 230673004: Adds unit tests for AwContentsClientCallbackHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typos and test names Created 6 years, 8 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
« no previous file with comments | « android_webview/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c0b1554400f8f47e304a15f34381fd0fe6748540..71c09eb1280296fffcf386fecfc5f1258328a828 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
@@ -30,6 +30,9 @@ public class TestCallbackHelperContainer {
mTestWebContentsObserver = contentsObserver;
}
+ /**
+ * CallbackHelper for OnPageFinished.
+ */
public static class OnPageFinishedHelper extends CallbackHelper {
private String mUrl;
public void notifyCalled(String url) {
@@ -42,6 +45,9 @@ public class TestCallbackHelperContainer {
}
}
+ /**
+ * CallbackHelper for OnPageStarted.
+ */
public static class OnPageStartedHelper extends CallbackHelper {
private String mUrl;
public void notifyCalled(String url) {
@@ -54,6 +60,9 @@ public class TestCallbackHelperContainer {
}
}
+ /**
+ * CallbackHelper for OnReceivedError.
+ */
public static class OnReceivedErrorHelper extends CallbackHelper {
private int mErrorCode;
private String mDescription;
@@ -78,6 +87,11 @@ public class TestCallbackHelperContainer {
}
}
+ /**
+ * CallbackHelper for OnEvaluateJavaScriptResult.
+ * This class wraps the evaluation of JavaScript code allowing test code to
+ * synchronously evaluate JavaScript and then test the result.
+ */
public static class OnEvaluateJavaScriptResultHelper extends CallbackHelper {
private String mJsonResult;
@@ -152,6 +166,9 @@ public class TestCallbackHelperContainer {
}
}
+ /**
+ * CallbackHelper for OnStartContentIntent.
+ */
public static class OnStartContentIntentHelper extends CallbackHelper {
private String mIntentUrl;
public void notifyCalled(String intentUrl) {
« no previous file with comments | « android_webview/javatests/src/org/chromium/android_webview/test/TestAwContentsClient.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698