diff options
author | Maurice Lam <yukl@google.com> | 2017-12-06 12:55:23 -0800 |
---|---|---|
committer | Maurice Lam <yukl@google.com> | 2017-12-06 20:03:01 -0800 |
commit | ba1332d1b4dd525a2ef313246482708cb2016052 (patch) | |
tree | 91b258e0a4efeaf259405b0960d2eff6d21e5b0a /library/test/robotest/src/com/android/setupwizardlib/span | |
parent | ac5ce544be357085d4c28475db7613d4da4a32c0 (diff) | |
download | setupwizard-ba1332d1b4dd525a2ef313246482708cb2016052.tar.gz |
Changes needed to upgrade to new gradle version
- Add ignore for various lint errors that is introduced in the lint
update
- Remove GLIF Pixel themes as they are unused and causing lint errors
- Add flavor dimension "compat" as it is now required
- Replace *Compile with *Implementation in the gradle files, as
needed by the newer Gradle version
- Use build tools 27.0.0 to avoid the Gradle warning
- Use new Robolectric configuration mechanism and removed our old
hack, per http://robolectric.org/getting-started/
Reference: https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html
Test: Existing tests pass
Bug: 70287447
Change-Id: I505476ae3695cd06349766c5e6280299f779f272
Diffstat (limited to 'library/test/robotest/src/com/android/setupwizardlib/span')
-rw-r--r-- | library/test/robotest/src/com/android/setupwizardlib/span/LinkSpanTest.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/test/robotest/src/com/android/setupwizardlib/span/LinkSpanTest.java b/library/test/robotest/src/com/android/setupwizardlib/span/LinkSpanTest.java index f86e057..fe72e03 100644 --- a/library/test/robotest/src/com/android/setupwizardlib/span/LinkSpanTest.java +++ b/library/test/robotest/src/com/android/setupwizardlib/span/LinkSpanTest.java @@ -23,15 +23,12 @@ import android.content.Context; import android.content.ContextWrapper; import android.widget.TextView; -import com.android.setupwizardlib.BuildConfig; import com.android.setupwizardlib.robolectric.SuwLibRobolectricTestRunner; import org.junit.Test; import org.junit.runner.RunWith; -import org.robolectric.annotation.Config; @RunWith(SuwLibRobolectricTestRunner.class) -@Config(constants = BuildConfig.class) public class LinkSpanTest { @Test @@ -68,6 +65,7 @@ public class LinkSpanTest { assertSame("Clicked LinkSpan should be passed to setup", linkSpan, context.clickedSpan); } + @SuppressWarnings("deprecation") private static class TestContext extends ContextWrapper implements LinkSpan.OnClickListener { public LinkSpan clickedSpan = null; |