autotest: Clean up WiFiTest class hierarchy
The lab infrastructure team has a strong desire to keep the class
hierarchies surrounding tests clean and easy to understand. This helps
them with test maintainability. Although it is a stretch to subclass
test.test at all, permission has been granted if we keep our
interference with test.test in superclasses to a bare minimum. As such,
do test setup and teardown in a standard way, and move convenience
methods out to context objects. This makes a little more sense anyway,
since these convenience methods are making assertions about fields in
the context objects and their state.
TEST=Tests modified in this CL pass.
BUG=chromium:240330
Change-Id: Id98bee15d39c27c6c20ac804fd923473bf4fe12d
Reviewed-on: https://gerrit.chromium.org/gerrit/58392
Commit-Queue: Christopher Wiley <wiley@chromium.org>
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Tested-by: Christopher Wiley <wiley@chromium.org>
14 files changed