-
DownloadManagerTest: Don't make Downloaders ahead of the manager · c746885c
DownloadRunner.getDownloader was creating Downloader instances before the actual DownloadManager under test would have created them. Tests were then asserting and manipulating these Downloader instances, which is quite confusing. In particular FakeDownloader.assertDoesNotStart() is an assertion on a Downloader instance that only makes sense when called on an instance that DownloadManager would not have created by itself. This change replaces FakeDownloader.assertDoesNotStart() with an assertion on DownloadRunner that no Downloader instance has been created. PiperOrigin-RevId: 308822398
olly committed
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| androidTest | Loading commit data... | |
| main | Loading commit data... | |
| test | Loading commit data... |