| 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 f3381685a18064e5356360b762bb7423a3f50c32..21b85c201d3248e3e7a8219fb89f1c34a352d656 100644
|
| --- a/content/browser/download/download_item_impl_unittest.cc
|
| +++ b/content/browser/download/download_item_impl_unittest.cc
|
| @@ -460,13 +460,12 @@ TEST_F(DownloadItemTest, CallbackAfterRename) {
|
| ::testing::Mock::VerifyAndClearExpectations(download_file);
|
| ::testing::Mock::VerifyAndClearExpectations(mock_delegate());
|
|
|
| - item->OnAllDataSaved("");
|
| EXPECT_CALL(*download_file, RenameAndAnnotate(final_path, _))
|
| .WillOnce(ScheduleRenameCallback(final_path));
|
| EXPECT_CALL(*mock_delegate(), ShouldOpenDownload(item, _))
|
| .WillOnce(Return(true));
|
| EXPECT_CALL(*download_file, Detach());
|
| - item->MaybeCompleteDownload();
|
| + item->DestinationObserverAsWeakPtr()->DestinationCompleted("");
|
| RunAllPendingInMessageLoops();
|
| ::testing::Mock::VerifyAndClearExpectations(download_file);
|
| ::testing::Mock::VerifyAndClearExpectations(mock_delegate());
|
|
|