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

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

Issue 9296012: Hooked up NetLog to DownloadItem, DownloadFile, and FileStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with trunk Created 8 years, 10 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/browser/download/download_file_manager_unittest.cc
diff --git a/content/browser/download/download_file_manager_unittest.cc b/content/browser/download/download_file_manager_unittest.cc
index bdbad04107582d166cdfc975e6879686550b337f..f14c0387669039e5dc8a0b625a2135646a3911be 100644
--- a/content/browser/download/download_file_manager_unittest.cc
+++ b/content/browser/download/download_file_manager_unittest.cc
@@ -44,7 +44,8 @@ class MockDownloadFileFactory :
DownloadCreateInfo* info,
const DownloadRequestHandle& request_handle,
content::DownloadManager* download_manager,
- bool calculate_hash) OVERRIDE;
+ bool calculate_hash,
+ const net::BoundNetLog& bound_net_log) OVERRIDE;
MockDownloadFile* GetExistingFile(const DownloadId& id);
@@ -56,7 +57,8 @@ content::DownloadFile* MockDownloadFileFactory::CreateFile(
DownloadCreateInfo* info,
const DownloadRequestHandle& request_handle,
content::DownloadManager* download_manager,
- bool calculate_hash) {
+ bool calculate_hash,
+ const net::BoundNetLog& bound_net_log) {
DCHECK(files_.end() == files_.find(info->download_id));
MockDownloadFile* created_file = new MockDownloadFile();
files_[info->download_id] = created_file;
@@ -167,7 +169,8 @@ class DownloadFileManagerTest : public testing::Test {
// Set expectations and return values.
EXPECT_CALL(*download_manager_, CreateDownloadItem(info, _))
- .Times(1);
+ .Times(1)
+ .WillOnce(Return(net::BoundNetLog()));
EXPECT_CALL(*download_manager_, GenerateFileHash())
.Times(AtLeast(1))
.WillRepeatedly(Return(false));
« no previous file with comments | « content/browser/download/download_file_manager.cc ('k') | content/browser/download/download_file_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698