Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ab1182c3 authored by Nergi Rahardi's avatar Nergi Rahardi
Browse files

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
parent 3fd36128
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment