| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 } | 119 } |
| 120 | 120 |
| 121 void FakeDownloadItem::SetState(const DownloadState& state) { | 121 void FakeDownloadItem::SetState(const DownloadState& state) { |
| 122 download_state_ = state; | 122 download_state_ = state; |
| 123 } | 123 } |
| 124 | 124 |
| 125 DownloadItem::DownloadState FakeDownloadItem::GetState() const { | 125 DownloadItem::DownloadState FakeDownloadItem::GetState() const { |
| 126 return download_state_; | 126 return download_state_; |
| 127 } | 127 } |
| 128 | 128 |
| 129 void FakeDownloadItem::SetResponseCode(int response_code) { |
| 130 response_code_ = response_code; |
| 131 } |
| 132 |
| 133 int FakeDownloadItem::GetResponseCode() const { |
| 134 return response_code_; |
| 135 } |
| 136 |
| 129 void FakeDownloadItem::SetMimeType(const std::string& mime_type) { | 137 void FakeDownloadItem::SetMimeType(const std::string& mime_type) { |
| 130 mime_type_ = mime_type; | 138 mime_type_ = mime_type; |
| 131 } | 139 } |
| 132 | 140 |
| 133 std::string FakeDownloadItem::GetMimeType() const { | 141 std::string FakeDownloadItem::GetMimeType() const { |
| 134 return mime_type_; | 142 return mime_type_; |
| 135 } | 143 } |
| 136 | 144 |
| 137 void FakeDownloadItem::SetOriginalUrl(const GURL& url) { | 145 void FakeDownloadItem::SetOriginalUrl(const GURL& url) { |
| 138 original_url_ = url; | 146 original_url_ = url; |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { | 419 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { |
| 412 NOTREACHED(); | 420 NOTREACHED(); |
| 413 } | 421 } |
| 414 | 422 |
| 415 std::string FakeDownloadItem::DebugString(bool verbose) const { | 423 std::string FakeDownloadItem::DebugString(bool verbose) const { |
| 416 NOTREACHED(); | 424 NOTREACHED(); |
| 417 return std::string(); | 425 return std::string(); |
| 418 } | 426 } |
| 419 | 427 |
| 420 } // namespace content | 428 } // namespace content |
| OLD | NEW |