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

Unified Diff: content/browser/download/download_browsertest.cc

Issue 10915180: Make DownloadHistory observe manager, items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r165669 Created 8 years, 1 month 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: content/browser/download/download_browsertest.cc
diff --git a/content/browser/download/download_browsertest.cc b/content/browser/download/download_browsertest.cc
index d5725278fb5d5a92512866858ed333928bae0f48..5956bf56b22067a8dcdbc165e4fe393c2036d9b7 100644
--- a/content/browser/download/download_browsertest.cc
+++ b/content/browser/download/download_browsertest.cc
@@ -270,10 +270,6 @@ void DownloadFileWithDelayFactory::WaitForSomeCallback() {
}
}
-bool WasPersisted(DownloadItem* item) {
- return item->IsPersisted();
-}
-
class CountingDownloadFile : public DownloadFileImpl {
public:
CountingDownloadFile(
@@ -674,9 +670,6 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest, ShutdownInProgress) {
ASSERT_EQ(1u, items.size());
EXPECT_EQ(DownloadItem::IN_PROGRESS, items[0]->GetState());
- // Wait for it to be persisted.
- DownloadUpdatedObserver(items[0], base::Bind(&WasPersisted)).WaitForEvent();
-
// Shutdown the download manager and make sure we get the right
// notifications in the right order.
StrictMock<MockDownloadItemObserver> item_observer;

Powered by Google App Engine
This is Rietveld 408576698