Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4951)

Unified Diff: chrome/browser/download/download_ui_controller_unittest.cc

Issue 1875033005: [Downloads/History] Add tab-url and tab-referrer-url to DownloadRow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guid-fix
Patch Set: Update expectations for DownloadUIController test. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/download_ui_controller_unittest.cc
diff --git a/chrome/browser/download/download_ui_controller_unittest.cc b/chrome/browser/download/download_ui_controller_unittest.cc
index f5452ced88e7a9784e973e37bbcfae261a1ff712..51e9c0a1afdd3ba053ae7b7764ae675d73716e8b 100644
--- a/chrome/browser/download/download_ui_controller_unittest.cc
+++ b/chrome/browser/download/download_ui_controller_unittest.cc
@@ -221,6 +221,10 @@ DownloadUIControllerTest::CreateMockInProgressDownload() {
.WillRepeatedly(testing::ReturnRefOfCopy(std::vector<GURL>()));
EXPECT_CALL(*item, GetReferrerUrl())
.WillRepeatedly(testing::ReturnRefOfCopy(GURL()));
+ EXPECT_CALL(*item, GetTabUrl())
+ .WillRepeatedly(testing::ReturnRefOfCopy(GURL()));
+ EXPECT_CALL(*item, GetTabReferrerUrl())
+ .WillRepeatedly(testing::ReturnRefOfCopy(GURL()));
EXPECT_CALL(*item, GetStartTime()).WillRepeatedly(Return(base::Time()));
EXPECT_CALL(*item, GetEndTime()).WillRepeatedly(Return(base::Time()));
EXPECT_CALL(*item, GetETag()).WillRepeatedly(ReturnRefOfCopy(std::string()));

Powered by Google App Engine
This is Rietveld 408576698