summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Nergi Rahardi <nergi@google.com> 2024-12-11 19:45:04 +0900
committer Nergi Rahardi <nergi@google.com> 2024-12-12 16:00:30 +0900
commitab1182c33a05b243384a3d8b86b8d1569ec6d1ec (patch)
tree7dfa75ff93f21e01d629e970b919e1b34fbb7261 /api/api_test.go
parent3fd36128053550ed94fa13d7587e6c0a84b9dfee (diff)
Add builder pattern to build WindowState in WindowTestsBase
The current `createWindow()` method has > 10 overloading patterns, and many calls with null as params as they're not needed, and as to not add more overloading. In the same WindowTestsBase, there's also been TaskBuilder, ActivityBuilder, TaskFragmentBuilder, and therefore having "WindowStateBuilder" also fits the class here. Refactoring of all the usages will be done gradually for each individual test classes. Note: No test would be impacted by this as this is adding a new helper class Bug: 383480021 Test: presubmit Flag: EXEMPT cleaning up tests Change-Id: I56296d595969325a0d3cd63252b8ec5db7e56ed9
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions