forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable CommandLineFlags annonations on Rules.
Enable CommandLineFlags.add and CommandLineFlags.remove on Junit4 Rules. The annotations are read in the order: 1. Annotations on Rule Classes and Rule Class Ancestors 2. Annotations on Test Class Ancestors 2. Annotations on Test Class 3 Annotations on Test method Meaning that annotations on the test class or method can remove command line flags set by rules. The order in which annotations on different rules are applied is undefined, but annotations on each rule's ancestors are read before annotations on the rule itself Note that if the @rule annotation annotates a method (see http://junit.org/junit4/javadoc/4.12/org/junit/Rule.html) then this will only read CommandLine annotations on the formal return type of the method, and not the actual type of the returned rule. This CL also (as a test of this) adds command line flags to BottomSheetTestRule, and removes them from tests using this rule. BUG=734553 Change-Id: I1501cb6ca4ae3963775b299b1695304e471ac0ab Reviewed-on: https://chromium-review.googlesource.com/539563 Commit-Queue: Anthony Berent <aberent@chromium.org> Reviewed-by: John Budorick <jbudorick@chromium.org> Reviewed-by: Yoland Yan <yolandyan@chromium.org> Reviewed-by: Bernhard Bauer <bauerb@chromium.org> Cr-Commit-Position: refs/heads/master@{#481568}
- Loading branch information
Anthony Berent
authored and
Commit Bot
committed
Jun 22, 2017
1 parent
d43235d
commit 4b4ec5c
Showing
8 changed files
with
92 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters