Chromium Code Reviews
DescriptionReplace webkitpy standalone builders functions with instantiable class.
This patch replaces the standalone functions and global _exact_matches
dictionary with an instantiable Builders class. By default, a new Builders
object uses the dictionary that was previously globally defined so there should
be no behavioral change. Subclasses of Builders can provide a new dictionary
for tests.
I've replaced uses of the global by instantiating a Builders object in the Host
class and modifying BotTestExpectations and BotTestExpectationsFactory to take
a Builders as an argument.
This was suggested in https://codereview.chromium.org/1766583002/ and makes the
builders more straightfoward to fake in unit tests.
BUG=595414
Committed: https://crrev.com/2e290a5019d0e50540503c18f660cb44d117e0d6
Cr-Commit-Position: refs/heads/master@{#391805}
Patch Set 1 #
Total comments: 2
Patch Set 2 : #
Total comments: 21
Patch Set 3 : Addressed feedback #Patch Set 4 : Moved builders out of port, updated comment #Messages
Total messages: 17 (8 generated)
|