Index: content/public/test/mock_download_manager.cc |
diff --git a/content/public/test/mock_download_manager.cc b/content/public/test/mock_download_manager.cc |
index ef5a9f5e7c16d06ad5d3ce6dc808a95b47f53401..8d19a9fecbcb4e4469be8cf6dd8a0bcfe24e3502 100644 |
--- a/content/public/test/mock_download_manager.cc |
+++ b/content/public/test/mock_download_manager.cc |
@@ -4,6 +4,8 @@ |
#include "content/public/test/mock_download_manager.h" |
+#include <string> |
asanka
2013/12/16 21:51:48
nit: not necessary in the .cc file since the decla
|
+ |
#include "content/browser/byte_stream.h" |
#include "content/browser/download/download_create_info.h" |
@@ -15,6 +17,8 @@ MockDownloadManager::CreateDownloadItemAdapter::CreateDownloadItemAdapter( |
const base::FilePath& target_path, |
const std::vector<GURL>& url_chain, |
const GURL& referrer_url, |
+ const std::string &mime_type, |
+ const std::string &original_mime_type, |
const base::Time& start_time, |
const base::Time& end_time, |
const std::string& etag, |
@@ -30,6 +34,8 @@ MockDownloadManager::CreateDownloadItemAdapter::CreateDownloadItemAdapter( |
target_path(target_path), |
url_chain(url_chain), |
referrer_url(referrer_url), |
+ mime_type(mime_type), |
+ original_mime_type(original_mime_type), |
start_time(start_time), |
end_time(end_time), |
received_bytes(received_bytes), |
@@ -66,6 +72,8 @@ bool MockDownloadManager::CreateDownloadItemAdapter::operator==( |
target_path == rhs.target_path && |
url_chain == rhs.url_chain && |
referrer_url == rhs.referrer_url && |
+ mime_type == rhs.mime_type && |
+ original_mime_type == rhs.original_mime_type && |
start_time == rhs.start_time && |
end_time == rhs.end_time && |
etag == rhs.etag && |
@@ -95,6 +103,8 @@ DownloadItem* MockDownloadManager::CreateDownloadItem( |
const base::FilePath& target_path, |
const std::vector<GURL>& url_chain, |
const GURL& referrer_url, |
+ const std::string &mime_type, |
+ const std::string &original_mime_type, |
const base::Time& start_time, |
const base::Time& end_time, |
const std::string& etag, |
@@ -106,7 +116,9 @@ DownloadItem* MockDownloadManager::CreateDownloadItem( |
DownloadInterruptReason interrupt_reason, |
bool opened) { |
CreateDownloadItemAdapter adapter( |
- id, current_path, target_path, url_chain, referrer_url, start_time, |
+ id, current_path, target_path, url_chain, referrer_url, |
+ mime_type, original_mime_type, |
+ start_time, |
end_time, etag, last_modified, received_bytes, total_bytes, state, |
danger_type, interrupt_reason, opened); |
return MockCreateDownloadItem(adapter); |