SysUi can mock static methods + coordinator tests

- Add ability to mock static methods in SystemUI (In SystemUI, use
  mockito-target-extended-minus-junit4 and add libdexmakerjvmtiagent
  and libstaticjvmtiagent jni libraries to SystemUI tests bp/mk files
  so that we have static-mocking abilities)
- Add tests for new Coordinators

Test: atest SystemUiTests
Bug: 145134683
Change-Id: I0450a07c6d465c6d1f7d74acddb054538540785a
This commit is contained in:
Beverly
2019-12-11 16:33:16 -05:00
parent 3ae892b167
commit 9028d41a7f
8 changed files with 517 additions and 19 deletions

View File

@@ -127,7 +127,7 @@ android_library {
"SystemUI-proto",
"metrics-helper-lib",
"androidx.test.rules", "hamcrest-library",
"mockito-target-inline-minus-junit4",
"mockito-target-extended-minus-junit4",
"testables",
"truth-prebuilt",
"dagger2-2.19",