Index: content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java |
diff --git a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java |
index 8d1d738644f3e2d02c50568ac6da61d276be4926..ae8b821415b518120b4e09df8b475dde7b93a0dc 100644 |
--- a/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java |
+++ b/content/shell/android/javatests/src/org/chromium/content_shell_apk/ContentShellTestBase.java |
@@ -40,31 +40,6 @@ public class ContentShellTestBase extends BaseActivityInstrumentationTestCase<Co |
mDelegate = new ContentShellTestCommon(this); |
} |
- @SuppressWarnings("deprecation") |
- @Override |
- public ContentShellActivity getActivityForTestCommon() { |
- return getActivity(); |
- } |
- |
- @Override |
- @SuppressWarnings("deprecation") |
- public Instrumentation getInstrumentationForTestCommon() { |
- return getInstrumentation(); |
- } |
- |
- @SuppressWarnings("deprecation") |
- @Override |
- public ContentShellActivity launchActivityWithIntentForTestCommon(Intent intent) { |
- setActivityIntent(intent); |
- return getActivity(); |
- } |
- |
- @SuppressWarnings("deprecation") |
- @Override |
- public void runOnUiThreadForTestCommon(Runnable runnable) throws Throwable { |
- runTestOnUiThread(runnable); |
- } |
- |
@Override |
@SuppressWarnings("deprecation") |
protected void setUp() throws Exception { |
@@ -185,4 +160,49 @@ public class ContentShellTestBase extends BaseActivityInstrumentationTestCase<Co |
+ " See ContentShellTestBase#runTest.", e); |
} |
} |
+ |
+ @SuppressWarnings("deprecation") |
+ @Override |
+ public ContentShellActivity getActivityForTestCommon() { |
+ return getActivity(); |
+ } |
+ |
+ @Override |
+ @SuppressWarnings("deprecation") |
+ public Instrumentation getInstrumentationForTestCommon() { |
+ return getInstrumentation(); |
+ } |
+ |
+ @SuppressWarnings("deprecation") |
+ @Override |
+ public ContentShellActivity launchActivityWithIntentForTestCommon(Intent intent) { |
+ setActivityIntent(intent); |
+ return getActivity(); |
+ } |
+ |
+ @SuppressWarnings("deprecation") |
+ @Override |
+ public void runOnUiThreadForTestCommon(Runnable runnable) throws Throwable { |
+ runTestOnUiThread(runnable); |
+ } |
+ |
+ @Override |
+ public ContentViewCore getContentViewCoreForTestCommon() { |
+ return getContentViewCore(); |
+ } |
+ |
+ @Override |
+ public WebContents getWebContentsForTestCommon() { |
+ return getWebContents(); |
+ } |
+ |
+ @Override |
+ public void waitForActiveShellToBeDoneLoadingForTestCommon() { |
+ waitForActiveShellToBeDoneLoading(); |
+ } |
+ |
+ @Override |
+ public ContentShellActivity launchContentShellWithUrlForTestCommon(String url) { |
+ return launchContentShellWithUrl(url); |
+ } |
} |