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

Issue 1422433007: Align handling of ParameterizedTest annotations in Java and Python code (Closed)

Created:
5 years, 1 month ago by mnaganov (inactive)
Modified:
5 years, 1 month ago
Reviewers:
nyquist, jbudorick
CC:
chromium-reviews, klundberg+watch_chromium.org, mikecase+watch_chromium.org, jbudorick+watch_chromium.org, yfriedman+watch_chromium.org, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Align handling of ParameterizedTest annotations in Java and Python code The following rules are applied: -- all annotations are merged down starting from the topmost superclass and finally updated with method annotations (thus, method annotations override class annotations); -- if the test method ends up having both @ParameterizedTest.Set and @ParameterizedTest annotations, the set "wins" (but that also means, if the method has defined @ParameterizedTest on itself, but there is @ParameterizedTest.Set coming from the class, the latter "wins", as the method receives both annotations due to the first rule). BUG=526885 Committed: https://crrev.com/ee07229c554d9e028c60df336cc6792a426eee64 Cr-Commit-Position: refs/heads/master@{#360158}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -64 lines) Patch
M base/test/android/javatests/src/org/chromium/base/test/util/parameter/Parameter.java View 1 4 chunks +50 lines, -16 lines 0 comments Download
M build/android/pylib/instrumentation/instrumentation_test_instance.py View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/base/test/util/parameter/ParameterizedTestAnnotationTest.java View 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/base/test/util/parameter/ParameterizedTestClassAnnotationInheritanceTest.java View 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/base/test/util/parameter/ParameterizedTestClassAnnotationParameterSetAndTest.java View 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/base/test/util/parameter/ParameterizedTestClassAnnotationParametersTest.java View 1 chunk +7 lines, -15 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/base/test/util/parameter/ParameterizedTestClassAnnotationParametersTestSetInheritanceTest.java View 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/base/test/util/parameter/ParameterizedTestClassAnnotationParametersTestSetTest.java View 1 chunk +22 lines, -20 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/base/test/util/parameter/ParameterizedTestClassAnnotationTest.java View 1 chunk +18 lines, -10 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
mnaganov (inactive)
Hi John, Please take a look whether the proposed set of rules makes sense to ...
5 years, 1 month ago (2015-11-11 17:41:49 UTC) #2
jbudorick
lgtm w/ nit https://codereview.chromium.org/1422433007/diff/1/base/test/android/javatests/src/org/chromium/base/test/util/parameter/Parameter.java File base/test/android/javatests/src/org/chromium/base/test/util/parameter/Parameter.java (right): https://codereview.chromium.org/1422433007/diff/1/base/test/android/javatests/src/org/chromium/base/test/util/parameter/Parameter.java#newcode91 base/test/android/javatests/src/org/chromium/base/test/util/parameter/Parameter.java:91: } else if (mAnnotatedTestMethod.isAnnotationPresent(ParameterizedTest.class)) { nit: ...
5 years, 1 month ago (2015-11-16 14:40:34 UTC) #3
mnaganov (inactive)
https://codereview.chromium.org/1422433007/diff/1/base/test/android/javatests/src/org/chromium/base/test/util/parameter/Parameter.java File base/test/android/javatests/src/org/chromium/base/test/util/parameter/Parameter.java (right): https://codereview.chromium.org/1422433007/diff/1/base/test/android/javatests/src/org/chromium/base/test/util/parameter/Parameter.java#newcode91 base/test/android/javatests/src/org/chromium/base/test/util/parameter/Parameter.java:91: } else if (mAnnotatedTestMethod.isAnnotationPresent(ParameterizedTest.class)) { On 2015/11/16 14:40:34, jbudorick ...
5 years, 1 month ago (2015-11-16 16:53:47 UTC) #4
mnaganov (inactive)
Hi Tommy, Can you please take a look at the changes?
5 years, 1 month ago (2015-11-16 16:54:18 UTC) #6
nyquist
lgtm
5 years, 1 month ago (2015-11-17 19:30:38 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1422433007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1422433007/20001
5 years, 1 month ago (2015-11-17 19:32:51 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-17 20:57:32 UTC) #11
commit-bot: I haz the power
5 years, 1 month ago (2015-11-17 20:58:27 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ee07229c554d9e028c60df336cc6792a426eee64
Cr-Commit-Position: refs/heads/master@{#360158}

Powered by Google App Engine
This is Rietveld 408576698