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

Unified Diff: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java

Issue 2739603003: Add TestRules for content shell test and refactor test bases (Closed)
Patch Set: limit API access Created 3 years, 9 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: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java
diff --git a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java
index 263723fb1ed6ed790372310d99d29597d5cca563..1259221bff4d849df0f97c01c62b50640476ef3c 100644
--- a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java
+++ b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestCommon.java
@@ -191,5 +191,9 @@ public final class ContentShellTestCommon {
T launchActivityWithIntentForTestCommon(Intent t);
T getActivityForTestCommon();
void runOnUiThreadForTestCommon(Runnable runnable) throws Throwable;
+ ContentViewCore getContentViewCoreForTestCommon();
boliu 2017/03/08 21:40:18 this assumes test has only one CVC? that seems too
the real yoland 2017/03/08 22:53:53 One alternative is to create another interface (e.
boliu 2017/03/08 23:03:05 Actually, content tests don't generally use multip
the real yoland 2017/03/08 23:52:45 ack
+ ContentShellActivity launchContentShellWithUrlForTestCommon(String url);
+ WebContents getWebContentsForTestCommon();
boliu 2017/03/08 21:40:18 ditto
+ void waitForActiveShellToBeDoneLoadingForTestCommon();
boliu 2017/03/08 21:40:18 ditto
}
}

Powered by Google App Engine
This is Rietveld 408576698