commit | e629bb7c84c402aafb41f308cf5cc118a312b635 | [log] [tgz] |
---|---|---|
author | Remi NGUYEN VAN <reminv@google.com> | Tue Mar 26 18:12:46 2024 +0900 |
committer | Remi NGUYEN VAN <reminv@google.com> | Tue Apr 02 11:18:20 2024 +0900 |
tree | df478672995c0c3868c0ea623f5d4b9e09596784 | |
parent | f8999e32e1e6de820ee62ee3a8becce07c512595 [diff] |
Replace connectToCell -> NetworkCallbackRule Developers often forget to unregister requests in tests, and cleanup code also makes tests more verbose. Add a rule that unregisters callbacks automatically when after each test method. Replace current usage of connectToCell with this rule, as well as network callback usage in CaptivePortalTest (which is one example that did not unregister its callback). Test: atest Change-Id: Ie3b9c5cf529004b7b3af04bc13a7e69acfbbaa18