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

Unified Diff: content/public/test/mock_download_manager.h

Issue 10915180: Make DownloadHistory observe manager, items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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: content/public/test/mock_download_manager.h
diff --git a/content/public/test/mock_download_manager.h b/content/public/test/mock_download_manager.h
index d9be07e047ba805a5d25a877b2c0a7030144d1c2..25a02d002f5f729668f3b09f1a54f262358b95bf 100644
--- a/content/public/test/mock_download_manager.h
+++ b/content/public/test/mock_download_manager.h
@@ -57,8 +57,16 @@ class MockDownloadManager : public DownloadManager {
}
MOCK_METHOD1(AddObserver, void(Observer* observer));
MOCK_METHOD1(RemoveObserver, void(Observer* observer));
- MOCK_METHOD1(OnPersistentStoreQueryComplete, void(
- std::vector<DownloadPersistentStoreInfo>* entries));
+ MOCK_METHOD9(CreateDownloadItem, DownloadItem*(
+ const FilePath& path,
+ const GURL& url,
+ const GURL& referrer_url,
+ const base::Time& start_tiem,
+ const base::Time& end_time,
+ int64 received_bytes,
+ int64 total_bytes,
+ DownloadItem::DownloadState state,
+ bool opened));
MOCK_METHOD2(OnItemAddedToPersistentStore, void(int32 download_id,
int64 db_handle));
MOCK_CONST_METHOD0(InProgressCount, int());

Powered by Google App Engine
This is Rietveld 408576698