Index: content/browser/download/download_item_impl_unittest.cc |
diff --git a/content/browser/download/download_item_impl_unittest.cc b/content/browser/download/download_item_impl_unittest.cc |
index 7a186af7659e9d242a7d1985e78fc8fd8b211a68..e02a5c8a13ad80a93e50b98b26fd79a682b717ef 100644 |
--- a/content/browser/download/download_item_impl_unittest.cc |
+++ b/content/browser/download/download_item_impl_unittest.cc |
@@ -48,7 +48,6 @@ class MockDelegate : public DownloadItemImplDelegate { |
MOCK_METHOD1(DownloadRemoved, void(DownloadItemImpl* download)); |
MOCK_METHOD1(DownloadRenamedToIntermediateName, |
void(DownloadItemImpl* download)); |
- MOCK_METHOD1(DownloadRenamedToFinalName, void(DownloadItemImpl* download)); |
MOCK_CONST_METHOD1(AssertStateConsistent, void(DownloadItemImpl* download)); |
virtual DownloadFileManager* GetDownloadFileManager() OVERRIDE { |
return file_manager_; |
@@ -447,8 +446,6 @@ TEST_F(DownloadItemTest, DisplayName) { |
// Test that the delegate is invoked after the download file is renamed. |
// Delegate::DownloadRenamedToIntermediateName() should be invoked when the |
// download is renamed to the intermediate name. |
-// Delegate::DownloadRenamedToFinalName() should be invoked after the final |
-// rename. |
TEST_F(DownloadItemTest, CallbackAfterRename) { |
DownloadItemImpl* item = CreateDownloadItem(DownloadItem::IN_PROGRESS); |
FilePath final_path(FilePath(kDummyPath).AppendASCII("foo.bar")); |
@@ -483,15 +480,6 @@ TEST_F(DownloadItemTest, CallbackAfterRename) { |
EXPECT_CALL(*mock_file_manager(), |
CompleteDownload(item->GetGlobalId(), _)) |
.WillOnce(ScheduleCompleteCallback()); |
- // DownloadItemImpl should invoke this callback on the delegate after the |
- // final rename has completed. Also check that GetFullPath() and |
- // GetTargetFilePath() return the final path at the time of the call. |
- EXPECT_CALL(*mock_delegate(), |
- DownloadRenamedToFinalName( |
- AllOf(item, |
- Property(&DownloadItem::GetFullPath, final_path), |
- Property(&DownloadItem::GetTargetFilePath, |
- final_path)))); |
EXPECT_CALL(*mock_delegate(), DownloadCompleted(item)); |
EXPECT_CALL(*mock_delegate(), ShouldOpenDownload(item)) |
.WillOnce(Return(true)); |