| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 bool FakeDownloadItem::GetOpened() const { | 361 bool FakeDownloadItem::GetOpened() const { |
| 362 NOTREACHED(); | 362 NOTREACHED(); |
| 363 return false; | 363 return false; |
| 364 } | 364 } |
| 365 | 365 |
| 366 base::Time FakeDownloadItem::GetLastAccessTime() const { | 366 base::Time FakeDownloadItem::GetLastAccessTime() const { |
| 367 NOTREACHED(); | 367 NOTREACHED(); |
| 368 return base::Time(); | 368 return base::Time(); |
| 369 } | 369 } |
| 370 | 370 |
| 371 bool FakeDownloadItem::IsVisible() const { |
| 372 NOTREACHED(); |
| 373 return true; |
| 374 } |
| 375 |
| 371 content::BrowserContext* FakeDownloadItem::GetBrowserContext() const { | 376 content::BrowserContext* FakeDownloadItem::GetBrowserContext() const { |
| 372 NOTREACHED(); | 377 NOTREACHED(); |
| 373 return nullptr; | 378 return nullptr; |
| 374 } | 379 } |
| 375 | 380 |
| 376 content::WebContents* FakeDownloadItem::GetWebContents() const { | 381 content::WebContents* FakeDownloadItem::GetWebContents() const { |
| 377 NOTREACHED(); | 382 NOTREACHED(); |
| 378 return nullptr; | 383 return nullptr; |
| 379 } | 384 } |
| 380 | 385 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 398 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { | 403 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { |
| 399 NOTREACHED(); | 404 NOTREACHED(); |
| 400 } | 405 } |
| 401 | 406 |
| 402 std::string FakeDownloadItem::DebugString(bool verbose) const { | 407 std::string FakeDownloadItem::DebugString(bool verbose) const { |
| 403 NOTREACHED(); | 408 NOTREACHED(); |
| 404 return std::string(); | 409 return std::string(); |
| 405 } | 410 } |
| 406 | 411 |
| 407 } // namespace test | 412 } // namespace test |
| OLD | NEW |