BaseActivityInstrumentationTestCase.java and NativeLibraryTestBase.java use deprecated things |
|
Issue description
One of the (very few) warnings when building lib_android_webview_unittests__library.so:
[16175/23223] ACTION //base:base_java_test_support__compile_java__javac(//build/toolchain/android:android_clang_arm)
../../base/test/android/javatests/src/org/chromium/base/test/BaseActivityInstrumentationTestCase.java:8: warning: [deprecation] ActivityInstrumentationTestCase2 in android.test has been deprecated
import android.test.ActivityInstrumentationTestCase2;
^
../../base/test/android/javatests/src/org/chromium/base/test/BaseInstrumentationTestRunner.java:11: warning: [deprecation] AndroidTestRunner in android.test has been deprecated
import android.test.AndroidTestRunner;
^
../../base/test/android/javatests/src/org/chromium/base/test/BaseInstrumentationTestRunner.java:12: warning: [deprecation] InstrumentationTestRunner in android.test has been deprecated
import android.test.InstrumentationTestRunner;
^
../../base/test/android/javatests/src/org/chromium/base/test/BaseActivityInstrumentationTestCase.java:24: warning: [deprecation] ActivityInstrumentationTestCase2 in android.test has been deprecated
extends ActivityInstrumentationTestCase2<T> implements Parameterizable {
^
../../base/test/android/javatests/src/org/chromium/base/test/BaseInstrumentationTestRunner.java:29: warning: [deprecation] InstrumentationTestRunner in android.test has been deprecated
public class BaseInstrumentationTestRunner extends InstrumentationTestRunner {
^
../../base/test/android/javatests/src/org/chromium/base/test/BaseInstrumentationTestRunner.java:31: warning: [deprecation] AndroidTestRunner in android.test has been deprecated
protected AndroidTestRunner getAndroidTestRunner() {
^
../../base/test/android/javatests/src/org/chromium/base/test/BaseInstrumentationTestRunner.java:32: warning: [deprecation] AndroidTestRunner in android.test has been deprecated
AndroidTestRunner runner = new AndroidTestRunner() {
^
../../base/test/android/javatests/src/org/chromium/base/test/BaseInstrumentationTestRunner.java:32: warning: [deprecation] AndroidTestRunner in android.test has been deprecated
AndroidTestRunner runner = new AndroidTestRunner() {
^
8 warnings
[23042/23223] ACTION //content/public/test/android:content_java_test_support__compile_java__javac(//build/toolchain/android:android_clang_arm)
../../content/public/test/android/javatests/src/org/chromium/content/browser/test/NativeLibraryTestBase.java:7: warning: [deprecation] InstrumentationTestCase in android.test has been deprecated
import android.test.InstrumentationTestCase;
^
../../content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java:10: warning: [deprecation] ActivityInstrumentationTestCase2 in android.test has been deprecated
import android.test.ActivityInstrumentationTestCase2;
^
../../content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TouchCommon.java:9: warning: [deprecation] TouchUtils in android.test has been deprecated
import android.test.TouchUtils;
^
../../content/public/test/android/javatests/src/org/chromium/content/browser/test/NativeLibraryTestBase.java:20: warning: [deprecation] InstrumentationTestCase in android.test has been deprecated
public class NativeLibraryTestBase extends InstrumentationTestCase {
^
../../content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java:232: warning: [deprecation] ActivityInstrumentationTestCase2 in android.test has been deprecated
public static boolean clickNode(ActivityInstrumentationTestCase2 activityTestCase,
^
../../content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java:247: warning: [deprecation] ActivityInstrumentationTestCase2 in android.test has been deprecated
public static void clickNodeByJs(ActivityInstrumentationTestCase2 activityTestCase,
^
../../content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java:273: warning: [deprecation] ActivityInstrumentationTestCase2 in android.test has been deprecated
public static void longPressNode(ActivityInstrumentationTestCase2 activityTestCase,
^
../../content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java:289: warning: [deprecation] ActivityInstrumentationTestCase2 in android.test has been deprecated
public static void longPressNodeByJs(ActivityInstrumentationTestCase2 activityTestCase,
^
../../content/public/test/android/javatests/src/org/chromium/content/browser/test/util/TestTouchUtils.java:18: warning: [deprecation] TouchUtils in android.test has been deprecated
public class TestTouchUtils extends android.test.TouchUtils {
^
9 warnings
(The two sets of warnings look very similar, so filing just one bug
We try to have a silent build.
jbudorick, do you think you have time to look at this? If not, do you know who'd be a good assignee?
,
Feb 15 2017
|
|
►
Sign in to add a comment |
|
Comment 1 by thakis@chromium.org
, Feb 8 2017