OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/public/test/mock_download_manager.h" | 5 #include "content/public/test/mock_download_manager.h" |
6 | 6 |
7 #include "content/browser/download/byte_stream.h" | 7 #include "content/browser/byte_stream.h" |
8 #include "content/browser/download/download_create_info.h" | 8 #include "content/browser/download/download_create_info.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 MockDownloadManager::CreateDownloadItemAdapter::CreateDownloadItemAdapter( | 12 MockDownloadManager::CreateDownloadItemAdapter::CreateDownloadItemAdapter( |
13 const base::FilePath& current_path, | 13 const base::FilePath& current_path, |
14 const base::FilePath& target_path, | 14 const base::FilePath& target_path, |
15 const std::vector<GURL>& url_chain, | 15 const std::vector<GURL>& url_chain, |
16 const GURL& referrer_url, | 16 const GURL& referrer_url, |
17 const base::Time& start_time, | 17 const base::Time& start_time, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 DownloadInterruptReason interrupt_reason, | 92 DownloadInterruptReason interrupt_reason, |
93 bool opened) { | 93 bool opened) { |
94 CreateDownloadItemAdapter adapter( | 94 CreateDownloadItemAdapter adapter( |
95 current_path, target_path, url_chain, referrer_url, start_time, | 95 current_path, target_path, url_chain, referrer_url, start_time, |
96 end_time, received_bytes, total_bytes, state, danger_type, | 96 end_time, received_bytes, total_bytes, state, danger_type, |
97 interrupt_reason, opened); | 97 interrupt_reason, opened); |
98 return MockCreateDownloadItem(adapter); | 98 return MockCreateDownloadItem(adapter); |
99 } | 99 } |
100 | 100 |
101 } // namespace content | 101 } // namespace content |
OLD | NEW |