Lines Matching defs:AddDownload
186 int64 AddDownload(int32 state, const Time& time) {
315 EXPECT_NE(0, AddDownload(DownloadItem::COMPLETE, Time()));
317 EXPECT_NE(0, AddDownload(DownloadItem::COMPLETE, now - one_day));
318 EXPECT_NE(0, AddDownload(DownloadItem::COMPLETE, now));
319 EXPECT_NE(0, AddDownload(DownloadItem::COMPLETE, now + one_day));
321 EXPECT_NE(0, AddDownload(DownloadItem::COMPLETE, month_ago));
322 EXPECT_NE(0, in_progress = AddDownload(DownloadItem::IN_PROGRESS, month_ago));
323 EXPECT_NE(0, AddDownload(DownloadItem::CANCELLED, month_ago));
324 EXPECT_NE(0, AddDownload(DownloadItem::INTERRUPTED, month_ago));
325 EXPECT_NE(0, removing = AddDownload(DownloadItem::REMOVING, month_ago));
367 EXPECT_NE(0, AddDownload(DownloadItem::COMPLETE, month_ago));
368 EXPECT_NE(0, AddDownload(DownloadItem::IN_PROGRESS, month_ago));