Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Issue 2195143002: [Android] Update all Robolectric tests to Robolectric 3.0 (Closed)

Created:
4 years, 4 months ago by mikecase (-- gone --)
Modified:
4 years, 4 months ago
CC:
cbentzel+watch_chromium.org, Changwan Ryu, chromium-reviews, darin-cc_chromium.org, dgn, dominickn+watch_chromium.org, feature-media-reviews_chromium.org, jam, jbudorick+watch_chromium.org, media-router+watch_chromium.org, mikecase+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update all Robolectric tests to Robolectric 3.0 BUG=522043 Committed: https://crrev.com/de621335b3d5b104587934b51cf83eb17911b14a Cr-Commit-Position: refs/heads/master@{#411362}

Patch Set 1 #

Patch Set 2 : All tests passing!!!! #

Patch Set 3 : Fixed BuildConfig.java hack. #

Total comments: 1

Patch Set 4 : Add OfflinePageTestRunner.java to CL #

Total comments: 27

Patch Set 5 #

Patch Set 6 : All tests pass again! #

Total comments: 1

Patch Set 7 : small nit fix #

Patch Set 8 #

Patch Set 9 : Convert newly added webapk_shell_apk_junit_tests to Robo 3.0 #

Total comments: 15

Patch Set 10 : Update all Robolectric tests to Robolectric 3.0 #

Patch Set 11 : jbudoricks/teds comments #

Total comments: 2

Patch Set 12 : Updated robolectric/BUILD.gn to use host_os #

Patch Set 13 : Added bug for test with sdk=18 #

Total comments: 3

Patch Set 14 : Rebase! #

Patch Set 15 : Fixed Compile Erorr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+502 lines, -575 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +1 line, -15 lines 0 comments Download
M base/android/junit/src/org/chromium/base/BaseChromiumApplicationTest.java View 1 3 chunks +5 lines, -3 lines 0 comments Download
M base/android/junit/src/org/chromium/base/PromiseTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 11 chunks +13 lines, -13 lines 0 comments Download
D base/test/android/junit/src/org/chromium/base/test/shadows/ShadowMultiDex.java View 1 chunk +0 lines, -21 lines 0 comments Download
M base/test/android/junit/src/org/chromium/base/test/util/DisableIfTest.java View 1 12 chunks +29 lines, -35 lines 0 comments Download
M base/test/android/junit/src/org/chromium/base/test/util/MinAndroidSdkLevelSkipCheckTest.java View 5 chunks +10 lines, -10 lines 0 comments Download
M build/android/pylib/junit/test_runner.py View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/ChromeBackupAgentTest.java View 1 2 3 4 5 6 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/download/DownloadSharedPreferenceEntryTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/firstrun/FirstRunFlowSequencerTest.java View 1 3 chunks +1 line, -8 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/gcore/GoogleApiClientHelperTest.java View 1 16 chunks +42 lines, -50 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/invalidation/InvalidationControllerTest.java View 1 2 3 4 11 chunks +28 lines, -26 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/media/remote/AbstractMediaRouteControllerTest.java View 1 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/media/remote/MediaUrlResolverTest.java View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/media/router/ChromeMediaRouterRouteTest.java View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/media/router/ChromeMediaRouterSinkObservationTest.java View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -6 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/media/router/ChromeMediaRouterTestBase.java View 1 2 chunks +0 lines, -19 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/media/router/cast/DiscoveryCallbackTest.java View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/media/router/cast/TestUtils.java View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundOfflinerTaskTest.java View 1 9 chunks +27 lines, -15 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/BackgroundSchedulerTest.java View 1 3 chunks +16 lines, -12 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/ClientIdTest.java View 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageTabObserverTest.java View 2 chunks +1 line, -1 line 0 comments Download
A chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageTestRunner.java View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtilsTest.java View 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/ShadowGcmNetworkManager.java View 1 1 chunk +16 lines, -16 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/TaskExtrasPackerTest.java View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageDownloadBridgeTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +1 line, -1 line 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorTest.java View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappDataStorageTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 11 chunks +19 lines, -18 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappRegistryTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 26 chunks +103 lines, -89 lines 0 comments Download
M chrome/android/webapk/libs/client/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/webapk/libs/client/junit/src/org/chromium/webapk/lib/client/WebApkServiceConnectionManagerTest.java View 1 5 chunks +11 lines, -8 lines 0 comments Download
M chrome/android/webapk/libs/client/junit/src/org/chromium/webapk/lib/client/WebApkValidatorTest.java View 1 9 chunks +11 lines, -10 lines 0 comments Download
M chrome/android/webapk/shell_apk/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/webapk/shell_apk/junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoaderTest.java View 1 2 3 4 5 6 7 8 5 chunks +6 lines, -6 lines 0 comments Download
M components/invalidation/impl/android/junit/src/org/chromium/components/invalidation/PendingInvalidationTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -4 lines 0 comments Download
M components/policy/android/junit/src/org/chromium/policy/AbstractAppRestrictionsProviderTest.java View 7 chunks +13 lines, -11 lines 0 comments Download
M components/web_restrictions/browser/junit/src/org/chromium/components/webrestrictions/WebRestrictionsClientTest.java View 1 3 chunks +3 lines, -3 lines 0 comments Download
M components/web_restrictions/browser/junit/src/org/chromium/components/webrestrictions/WebRestrictionsContentProviderTest.java View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/android/junit/src/org/chromium/content/browser/BindingManagerImplTest.java View 14 chunks +14 lines, -13 lines 0 comments Download
M content/public/android/junit/src/org/chromium/content/browser/input/ThreadedInputConnectionTest.java View 1 2 3 4 5 6 7 3 chunks +3 lines, -0 lines 0 comments Download
M net/android/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/android/junit/src/org/chromium/net/HttpNegotiateAuthenticatorTest.java View 4 chunks +5 lines, -4 lines 0 comments Download
M testing/android/junit/BUILD.gn View 1 chunk +6 lines, -2 lines 0 comments Download
M testing/android/junit/java/src/org/chromium/testing/local/BackgroundShadowAsyncTask.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M testing/android/junit/java/src/org/chromium/testing/local/LocalRobolectricTestRunner.java View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -23 lines 0 comments Download
D testing/android/junit/java/src/org/chromium/testing/local/RobolectricClasspathDependencyResolver.java View 1 chunk +0 lines, -72 lines 0 comments Download
M third_party/robolectric/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -20 lines 0 comments Download
M ui/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M ui/android/junit/src/org/chromium/ui/picker/DateDialogNormalizerTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 60 (22 generated)
mikecase (-- gone --)
All tests are passing!!!!! Some remaining cleanup, but its 99% there.
4 years, 4 months ago (2016-07-31 00:52:50 UTC) #2
mikecase (-- gone --)
This is ready for review. Would like to commit this as 1 CL. I can ...
4 years, 4 months ago (2016-07-31 03:33:52 UTC) #3
mikecase (-- gone --)
https://codereview.chromium.org/2195143002/diff/40001/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/ShadowGcmNetworkManager.java File chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/ShadowGcmNetworkManager.java (right): https://codereview.chromium.org/2195143002/diff/40001/chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/ShadowGcmNetworkManager.java#newcode20 chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/ShadowGcmNetworkManager.java:20: public class ShadowGcmNetworkManager { So, it looks like the ...
4 years, 4 months ago (2016-07-31 04:21:10 UTC) #4
jbudorick
This is a massive CL, and other reviewers are liable to ask, so about splitting: ...
4 years, 4 months ago (2016-08-01 13:52:04 UTC) #5
mikecase (-- gone --)
linux_android_rel_ng passed! (prev patch set). Plan to add a bunch of reviewers tomorrow morning. \o/ ...
4 years, 4 months ago (2016-08-02 06:12:26 UTC) #7
mikecase (-- gone --)
+ jochen@chromium.org to review components/ + pauljensen@chromium.org to review net/ + thestig@chromium.org to review base/ ...
4 years, 4 months ago (2016-08-02 14:21:09 UTC) #9
jochen (gone - plz use gerrit)
I don't know about Robolectric. Can you please get a reviewer that knows about this ...
4 years, 4 months ago (2016-08-02 15:33:27 UTC) #14
mikecase (-- gone --)
+ aberent@ to review the changes in components/. It looks like you wrote one of ...
4 years, 4 months ago (2016-08-02 15:41:16 UTC) #16
aberent
Components lgtm with one nit. https://codereview.chromium.org/2195143002/diff/160001/components/invalidation/impl/android/junit/src/org/chromium/components/invalidation/PendingInvalidationTest.java File components/invalidation/impl/android/junit/src/org/chromium/components/invalidation/PendingInvalidationTest.java (right): https://codereview.chromium.org/2195143002/diff/160001/components/invalidation/impl/android/junit/src/org/chromium/components/invalidation/PendingInvalidationTest.java#newcode19 components/invalidation/impl/android/junit/src/org/chromium/components/invalidation/PendingInvalidationTest.java:19: @RunWith(LocalRobolectricTestRunner.class) Why this change? ...
4 years, 4 months ago (2016-08-02 16:13:54 UTC) #17
mikecase (-- gone --)
https://codereview.chromium.org/2195143002/diff/160001/components/invalidation/impl/android/junit/src/org/chromium/components/invalidation/PendingInvalidationTest.java File components/invalidation/impl/android/junit/src/org/chromium/components/invalidation/PendingInvalidationTest.java (right): https://codereview.chromium.org/2195143002/diff/160001/components/invalidation/impl/android/junit/src/org/chromium/components/invalidation/PendingInvalidationTest.java#newcode19 components/invalidation/impl/android/junit/src/org/chromium/components/invalidation/PendingInvalidationTest.java:19: @RunWith(LocalRobolectricTestRunner.class) On 2016/08/02 at 16:13:54, aberent wrote: > Why ...
4 years, 4 months ago (2016-08-02 16:47:29 UTC) #18
Lei Zhang
On 2016/08/02 14:21:09, mikecase wrote: > + mailto:thestig@chromium.org to review base/ Please ask base/android/OWNERS. Happy ...
4 years, 4 months ago (2016-08-02 16:55:35 UTC) #19
mikecase (-- gone --)
+nyquist for review of /base/android
4 years, 4 months ago (2016-08-02 16:58:42 UTC) #21
mikecase (-- gone --)
4 years, 4 months ago (2016-08-03 13:47:28 UTC) #22
jbudorick
https://codereview.chromium.org/2195143002/diff/160001/build/android/pylib/junit/test_runner.py File build/android/pylib/junit/test_runner.py (right): https://codereview.chromium.org/2195143002/diff/160001/build/android/pylib/junit/test_runner.py#newcode49 build/android/pylib/junit/test_runner.py:49: # TODO(mikecase): Set this property through GN. Can you ...
4 years, 4 months ago (2016-08-03 15:32:29 UTC) #23
Ted C
https://codereview.chromium.org/2195143002/diff/160001/chrome/android/junit/src/org/chromium/chrome/browser/media/router/ChromeMediaRouterSinkObservationTest.java File chrome/android/junit/src/org/chromium/chrome/browser/media/router/ChromeMediaRouterSinkObservationTest.java (right): https://codereview.chromium.org/2195143002/diff/160001/chrome/android/junit/src/org/chromium/chrome/browser/media/router/ChromeMediaRouterSinkObservationTest.java#newcode115 chrome/android/junit/src/org/chromium/chrome/browser/media/router/ChromeMediaRouterSinkObservationTest.java:115: Field field = SysUtils.class.getDeclaredField("sLowEndDevice"); We should really, really, really ...
4 years, 4 months ago (2016-08-03 19:18:26 UTC) #24
mikecase (-- gone --)
https://codereview.chromium.org/2195143002/diff/160001/build/android/pylib/junit/test_runner.py File build/android/pylib/junit/test_runner.py (right): https://codereview.chromium.org/2195143002/diff/160001/build/android/pylib/junit/test_runner.py#newcode49 build/android/pylib/junit/test_runner.py:49: # TODO(mikecase): Set this property through GN. On 2016/08/03 ...
4 years, 4 months ago (2016-08-05 03:17:07 UTC) #25
jbudorick
https://codereview.chromium.org/2195143002/diff/200001/third_party/robolectric/BUILD.gn File third_party/robolectric/BUILD.gn (left): https://codereview.chromium.org/2195143002/diff/200001/third_party/robolectric/BUILD.gn#oldcode597 third_party/robolectric/BUILD.gn:597: if (is_linux) { I think what you wanted was ...
4 years, 4 months ago (2016-08-05 15:38:45 UTC) #26
mikecase (-- gone --)
https://codereview.chromium.org/2195143002/diff/200001/third_party/robolectric/BUILD.gn File third_party/robolectric/BUILD.gn (left): https://codereview.chromium.org/2195143002/diff/200001/third_party/robolectric/BUILD.gn#oldcode597 third_party/robolectric/BUILD.gn:597: if (is_linux) { On 2016/08/05 at 15:38:45, jbudorick wrote: ...
4 years, 4 months ago (2016-08-05 16:15:43 UTC) #27
Ted C
https://codereview.chromium.org/2195143002/diff/160001/ui/android/junit/src/org/chromium/ui/picker/DateDialogNormalizerTest.java File ui/android/junit/src/org/chromium/ui/picker/DateDialogNormalizerTest.java (right): https://codereview.chromium.org/2195143002/diff/160001/ui/android/junit/src/org/chromium/ui/picker/DateDialogNormalizerTest.java#newcode25 ui/android/junit/src/org/chromium/ui/picker/DateDialogNormalizerTest.java:25: @Config(manifest = Config.NONE, sdk = 18) On 2016/08/05 03:17:07, ...
4 years, 4 months ago (2016-08-05 20:17:15 UTC) #28
nyquist
I would agree with Ted that it would be awesome with a default SDK version
4 years, 4 months ago (2016-08-05 21:56:45 UTC) #29
mikecase (-- gone --)
https://codereview.chromium.org/2195143002/diff/240001/base/test/android/junit/src/org/chromium/base/test/util/DisableIfTest.java File base/test/android/junit/src/org/chromium/base/test/util/DisableIfTest.java (right): https://codereview.chromium.org/2195143002/diff/240001/base/test/android/junit/src/org/chromium/base/test/util/DisableIfTest.java#newcode20 base/test/android/junit/src/org/chromium/base/test/util/DisableIfTest.java:20: @Config(manifest = Config.NONE, sdk = 21) Im just setting ...
4 years, 4 months ago (2016-08-06 01:16:13 UTC) #30
Ted C
lgtm...thanks for all the explanations! On Aug 5, 2016 6:16 PM, <mikecase@chromium.org> wrote: > > ...
4 years, 4 months ago (2016-08-06 03:14:38 UTC) #31
Lei Zhang
rs lgtm for base and chrome
4 years, 4 months ago (2016-08-06 06:43:21 UTC) #32
Ted C
lgtm
4 years, 4 months ago (2016-08-06 13:53:33 UTC) #33
jbudorick
build/, testing/android/, and third_party/robolectric/ lgtm
4 years, 4 months ago (2016-08-08 17:59:10 UTC) #34
mikecase (-- gone --)
jochen@chromium.org could you take a quick look / stamp for components. I added aberent@ to ...
4 years, 4 months ago (2016-08-08 18:45:45 UTC) #35
mikecase (-- gone --)
jochen is OOO. + caitkp@chromium.org, please take a look at components/ aberent@ looked at the ...
4 years, 4 months ago (2016-08-08 19:11:04 UTC) #37
Cait (Slow)
rs lgtm for components/
4 years, 4 months ago (2016-08-08 19:17:35 UTC) #38
mikecase (-- gone --)
pauljensen is also OOO this week. + cbentzel@ to review net/ changes instead. Thanks :D
4 years, 4 months ago (2016-08-08 20:19:31 UTC) #40
cbentzel
On 2016/08/08 20:19:31, mikecase wrote: > pauljensen is also OOO this week. > > + ...
4 years, 4 months ago (2016-08-09 17:05:02 UTC) #41
cbentzel
On 2016/08/08 20:19:31, mikecase wrote: > pauljensen is also OOO this week. > > + ...
4 years, 4 months ago (2016-08-09 17:05:07 UTC) #42
nyquist
lgtm
4 years, 4 months ago (2016-08-10 20:05:36 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2195143002/260001
4 years, 4 months ago (2016-08-11 16:54:22 UTC) #54
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 4 months ago (2016-08-11 17:00:21 UTC) #55
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/de621335b3d5b104587934b51cf83eb17911b14a Cr-Commit-Position: refs/heads/master@{#411362}
4 years, 4 months ago (2016-08-11 17:03:21 UTC) #57
mikecase (-- gone --)
A revert of this CL (patchset #14 id:260001) has been created in https://codereview.chromium.org/2239003002/ by mikecase@chromium.org. ...
4 years, 4 months ago (2016-08-11 17:21:09 UTC) #58
mikecase (-- gone --)
On 2016/08/11 at 17:21:09, mikecase wrote: > A revert of this CL (patchset #14 id:260001) ...
4 years, 4 months ago (2016-08-11 17:29:53 UTC) #59
findit-for-me
4 years, 4 months ago (2016-08-11 17:41:58 UTC) #60
Message was sent while issue was closed.
FYI: Findit try jobs (rerunning failed compile or tests) identified this CL
at revision 411362 as the culprit for failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

Powered by Google App Engine
This is Rietveld 408576698