| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/fake_download_item.h" | 5 #include "content/public/test/fake_download_item.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 } | 62 } |
| 63 | 63 |
| 64 void FakeDownloadItem::SetURL(const GURL& url) { | 64 void FakeDownloadItem::SetURL(const GURL& url) { |
| 65 url_ = url; | 65 url_ = url; |
| 66 } | 66 } |
| 67 | 67 |
| 68 const GURL& FakeDownloadItem::GetURL() const { | 68 const GURL& FakeDownloadItem::GetURL() const { |
| 69 return url_; | 69 return url_; |
| 70 } | 70 } |
| 71 | 71 |
| 72 void FakeDownloadItem::SetUrlChain(const std::vector<GURL>& url_chain) { |
| 73 url_chain_ = url_chain; |
| 74 } |
| 75 |
| 76 const std::vector<GURL>& FakeDownloadItem::GetUrlChain() const { |
| 77 return url_chain_; |
| 78 } |
| 79 |
| 72 void FakeDownloadItem::SetLastReason(DownloadInterruptReason last_reason) { | 80 void FakeDownloadItem::SetLastReason(DownloadInterruptReason last_reason) { |
| 73 last_reason_ = last_reason; | 81 last_reason_ = last_reason; |
| 74 } | 82 } |
| 75 | 83 |
| 76 DownloadInterruptReason FakeDownloadItem::GetLastReason() const { | 84 DownloadInterruptReason FakeDownloadItem::GetLastReason() const { |
| 77 return last_reason_; | 85 return last_reason_; |
| 78 } | 86 } |
| 79 | 87 |
| 80 void FakeDownloadItem::SetTargetFilePath(const base::FilePath& file_path) { | 88 void FakeDownloadItem::SetTargetFilePath(const base::FilePath& file_path) { |
| 81 file_path_ = file_path; | 89 file_path_ = file_path; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 bool FakeDownloadItem::CanResume() const { | 207 bool FakeDownloadItem::CanResume() const { |
| 200 NOTREACHED(); | 208 NOTREACHED(); |
| 201 return false; | 209 return false; |
| 202 } | 210 } |
| 203 | 211 |
| 204 bool FakeDownloadItem::IsDone() const { | 212 bool FakeDownloadItem::IsDone() const { |
| 205 NOTREACHED(); | 213 NOTREACHED(); |
| 206 return true; | 214 return true; |
| 207 } | 215 } |
| 208 | 216 |
| 209 const std::vector<GURL>& FakeDownloadItem::GetUrlChain() const { | |
| 210 NOTREACHED(); | |
| 211 return dummy_url_vector; | |
| 212 } | |
| 213 | |
| 214 const GURL& FakeDownloadItem::GetReferrerUrl() const { | 217 const GURL& FakeDownloadItem::GetReferrerUrl() const { |
| 215 NOTREACHED(); | 218 NOTREACHED(); |
| 216 return dummy_url; | 219 return dummy_url; |
| 217 } | 220 } |
| 218 | 221 |
| 219 const GURL& FakeDownloadItem::GetSiteUrl() const { | 222 const GURL& FakeDownloadItem::GetSiteUrl() const { |
| 220 NOTREACHED(); | 223 NOTREACHED(); |
| 221 return dummy_url; | 224 return dummy_url; |
| 222 } | 225 } |
| 223 | 226 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { | 411 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { |
| 409 NOTREACHED(); | 412 NOTREACHED(); |
| 410 } | 413 } |
| 411 | 414 |
| 412 std::string FakeDownloadItem::DebugString(bool verbose) const { | 415 std::string FakeDownloadItem::DebugString(bool verbose) const { |
| 413 NOTREACHED(); | 416 NOTREACHED(); |
| 414 return std::string(); | 417 return std::string(); |
| 415 } | 418 } |
| 416 | 419 |
| 417 } // namespace content | 420 } // namespace content |
| OLD | NEW |