Mock DownloadHistory in DownloadProvider tests. |
||||
Issue descriptionUnfortunately, I am not aware of any way to create DownloadHistory in our tests, because its constructor requires being on UI thread. Thus, we cannot tests properly interaction between the provider and DownloadHistory. We (or DownloadHistory OWNERS) need to extract its interface and move implementation into DownloadHistoryImpl. Then add tests.
,
Jan 17 2017
Actually it is possible to construct it, but the code looks quite back. It would be much better to be able to mock it.
,
Mar 31 2017
,
Jun 8 2017
|
||||
►
Sign in to add a comment |
||||
Comment 1 by vitaliii@chromium.org
, Jan 17 2017