We'd like to share test utilities across the web shell and Chrome, where possible.
Don't create a long list of random static methods to do anything tests want to do.
Create it in a way that code can be used across Chrome and the web shell.
The initial thought is to have a base class, then derived classes that implement common pieces that are implemented differently (e.g. accessing WebState) on different apps. Alternatively, if it is just the WebState, this could be passed in upon initialization.
Using static methods is also a possibility that should be considered, but would make it harder to reinforce good design as methods are added later.
Comment 1 by bugdroid1@chromium.org
, Apr 26 2016