| 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 const AcquireFileCallback& callback) { | 126 bool delete_file_afterward, const AcquireFileCallback& callback) { |
| 127 NOTREACHED(); | 127 NOTREACHED(); |
| 128 callback.Run(base::FilePath()); | 128 callback.Run(base::FilePath()); |
| 129 } | 129 } |
| 130 | 130 |
| 131 void FakeDownloadItem::Pause() { | 131 void FakeDownloadItem::Pause() { |
| 132 NOTREACHED(); | 132 NOTREACHED(); |
| 133 } | 133 } |
| 134 | 134 |
| 135 void FakeDownloadItem::Resume() { | 135 void FakeDownloadItem::Resume() { |
| 136 NOTREACHED(); | 136 NOTREACHED(); |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { | 378 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { |
| 379 NOTREACHED(); | 379 NOTREACHED(); |
| 380 } | 380 } |
| 381 | 381 |
| 382 std::string FakeDownloadItem::DebugString(bool verbose) const { | 382 std::string FakeDownloadItem::DebugString(bool verbose) const { |
| 383 NOTREACHED(); | 383 NOTREACHED(); |
| 384 return std::string(); | 384 return std::string(); |
| 385 } | 385 } |
| 386 | 386 |
| 387 } // namespace test | 387 } // namespace test |
| OLD | NEW |