commit | e8e79f89005042a51fe180f0e301304f54b4fba5 | [log] [tgz] |
---|---|---|
author | Oli Lan <olilan@google.com> | Thu Feb 24 15:52:13 2022 +0000 |
committer | Oli Lan <olilan@google.com> | Thu Feb 24 16:08:47 2022 +0000 |
tree | 4023a66f6778683a340146343fa04a78bc033454 | |
parent | d62c6e6c7dbb1360531894303d7f91ee8b7e290b [diff] |
Add tests for AvatarPhotoController. To facilitate adding tests, the class is modified to allow the Activity to be mocked. A small amount of clean-up is also performed, to remove AsyncTask usages and remove some unnecessary code. Bug: 221223842 Test: atest AvatarPhotoControllerTest Change-Id: I70f3e8dcd371f48c780b29fada002dbd2f174c2d