| 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 "chrome/browser/ntp_snippets/fake_download_item.h" | 5 #include "chrome/browser/ntp_snippets/fake_download_item.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 | 8 |
| 9 using content::DownloadItem; | 9 using content::DownloadItem; |
| 10 | 10 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 const GURL& FakeDownloadItem::GetOriginalUrl() const { | 116 const GURL& FakeDownloadItem::GetOriginalUrl() const { |
| 117 return original_url_; | 117 return original_url_; |
| 118 } | 118 } |
| 119 | 119 |
| 120 // The methods below are not supported and are not expected to be called. | 120 // The methods below are not supported and are not expected to be called. |
| 121 void FakeDownloadItem::ValidateDangerousDownload() { | 121 void FakeDownloadItem::ValidateDangerousDownload() { |
| 122 NOTREACHED(); | 122 NOTREACHED(); |
| 123 } | 123 } |
| 124 | 124 |
| 125 void FakeDownloadItem::StealDangerousDownload( | 125 void FakeDownloadItem::StealDangerousDownload( |
| 126 bool delete_file_afterward, |
| 126 const AcquireFileCallback& callback) { | 127 const AcquireFileCallback& callback) { |
| 127 NOTREACHED(); | 128 NOTREACHED(); |
| 128 callback.Run(base::FilePath()); | 129 callback.Run(base::FilePath()); |
| 129 } | 130 } |
| 130 | 131 |
| 131 void FakeDownloadItem::Pause() { | 132 void FakeDownloadItem::Pause() { |
| 132 NOTREACHED(); | 133 NOTREACHED(); |
| 133 } | 134 } |
| 134 | 135 |
| 135 void FakeDownloadItem::Resume() { | 136 void FakeDownloadItem::Resume() { |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { | 379 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { |
| 379 NOTREACHED(); | 380 NOTREACHED(); |
| 380 } | 381 } |
| 381 | 382 |
| 382 std::string FakeDownloadItem::DebugString(bool verbose) const { | 383 std::string FakeDownloadItem::DebugString(bool verbose) const { |
| 383 NOTREACHED(); | 384 NOTREACHED(); |
| 384 return std::string(); | 385 return std::string(); |
| 385 } | 386 } |
| 386 | 387 |
| 387 } // namespace test | 388 } // namespace test |
| OLD | NEW |