OSDN Git Service

Move the Robolectric shadow config up.
authorDaniel Nishi <dhnishi@google.com>
Thu, 17 Aug 2017 21:34:05 +0000 (14:34 -0700)
committerDaniel Nishi <dhnishi@google.com>
Thu, 17 Aug 2017 21:37:27 +0000 (14:37 -0700)
commit739b0eef10b9701282712f905a4904cad54ad2c8
treef2c43c26cc2ec5ca1f362e0380d34aca424e8edd
parent682ff5562c709723ba9f90b4870a3700fc6d314c
Move the Robolectric shadow config up.

In my testing, this reduces the runtime of the Robolectric Settings test
suite on my Z840 workstation from 440 seconds to 402 seconds on average.
By avoiding having a method-level Robolectric shadow import, we avoid
going down a code path which needs to add more shadows later in the
Robolectric execution.

Bug: 64808827
Test: Settings robotests still pass
Change-Id: I7b40d73b30306ae3f9759281afbd7f7266579e24
15 files changed:
tests/robotests/src/com/android/settings/DeviceInfoSettingsTest.java
tests/robotests/src/com/android/settings/MasterClearTest.java
tests/robotests/src/com/android/settings/SecuritySettingsTest.java
tests/robotests/src/com/android/settings/accounts/AccountHeaderPreferenceControllerTest.java
tests/robotests/src/com/android/settings/accounts/AccountPreferenceControllerTest.java
tests/robotests/src/com/android/settings/applications/InstalledAppDetailsTest.java
tests/robotests/src/com/android/settings/dashboard/suggestions/SuggestionFeatureProviderImplTest.java
tests/robotests/src/com/android/settings/deviceinfo/storage/AutomaticStorageManagementSwitchPreferenceControllerTest.java
tests/robotests/src/com/android/settings/display/AutoRotatePreferenceControllerTest.java
tests/robotests/src/com/android/settings/gestures/AssistGestureSettingsPreferenceControllerTest.java
tests/robotests/src/com/android/settings/network/MobileNetworkPreferenceControllerTest.java
tests/robotests/src/com/android/settings/search/DatabaseIndexingManagerTest.java
tests/robotests/src/com/android/settings/security/ConfigureKeyGuardDialogTest.java
tests/robotests/src/com/android/settings/system/FactoryResetPreferenceControllerTest.java
tests/robotests/src/com/android/settings/widget/RtlCompatibleViewPagerTest.java