| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 DownloadItem::DownloadState FakeDownloadItem::GetState() const { | 92 DownloadItem::DownloadState FakeDownloadItem::GetState() const { |
| 93 return download_state_; | 93 return download_state_; |
| 94 } | 94 } |
| 95 | 95 |
| 96 // The methods below are not supported and are not expected to be called. | 96 // The methods below are not supported and are not expected to be called. |
| 97 void FakeDownloadItem::ValidateDangerousDownload() { | 97 void FakeDownloadItem::ValidateDangerousDownload() { |
| 98 NOTREACHED(); | 98 NOTREACHED(); |
| 99 } | 99 } |
| 100 | 100 |
| 101 void FakeDownloadItem::StealDangerousDownload( | 101 void FakeDownloadItem::StealDangerousDownload( |
| 102 const AcquireFileCallback& callback) { | 102 bool delete_file_afterward, const AcquireFileCallback& callback) { |
| 103 NOTREACHED(); | 103 NOTREACHED(); |
| 104 callback.Run(base::FilePath()); | 104 callback.Run(base::FilePath()); |
| 105 } | 105 } |
| 106 | 106 |
| 107 void FakeDownloadItem::Pause() { | 107 void FakeDownloadItem::Pause() { |
| 108 NOTREACHED(); | 108 NOTREACHED(); |
| 109 } | 109 } |
| 110 | 110 |
| 111 void FakeDownloadItem::Resume() { | 111 void FakeDownloadItem::Resume() { |
| 112 NOTREACHED(); | 112 NOTREACHED(); |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { | 369 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { |
| 370 NOTREACHED(); | 370 NOTREACHED(); |
| 371 } | 371 } |
| 372 | 372 |
| 373 std::string FakeDownloadItem::DebugString(bool verbose) const { | 373 std::string FakeDownloadItem::DebugString(bool verbose) const { |
| 374 NOTREACHED(); | 374 NOTREACHED(); |
| 375 return std::string(); | 375 return std::string(); |
| 376 } | 376 } |
| 377 | 377 |
| 378 } // namespace test | 378 } // namespace test |
| OLD | NEW |