| 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 bool FakeDownloadItem::GetAutoOpened() { | 349 bool FakeDownloadItem::GetAutoOpened() { |
| 350 NOTREACHED(); | 350 NOTREACHED(); |
| 351 return false; | 351 return false; |
| 352 } | 352 } |
| 353 | 353 |
| 354 bool FakeDownloadItem::GetOpened() const { | 354 bool FakeDownloadItem::GetOpened() const { |
| 355 NOTREACHED(); | 355 NOTREACHED(); |
| 356 return false; | 356 return false; |
| 357 } | 357 } |
| 358 | 358 |
| 359 base::Time FakeDownloadItem::GetLastAccessTime() const { |
| 360 NOTREACHED(); |
| 361 return base::Time(); |
| 362 } |
| 363 |
| 359 content::BrowserContext* FakeDownloadItem::GetBrowserContext() const { | 364 content::BrowserContext* FakeDownloadItem::GetBrowserContext() const { |
| 360 NOTREACHED(); | 365 NOTREACHED(); |
| 361 return nullptr; | 366 return nullptr; |
| 362 } | 367 } |
| 363 | 368 |
| 364 content::WebContents* FakeDownloadItem::GetWebContents() const { | 369 content::WebContents* FakeDownloadItem::GetWebContents() const { |
| 365 NOTREACHED(); | 370 NOTREACHED(); |
| 366 return nullptr; | 371 return nullptr; |
| 367 } | 372 } |
| 368 | 373 |
| 369 void FakeDownloadItem::OnContentCheckCompleted( | 374 void FakeDownloadItem::OnContentCheckCompleted( |
| 370 content::DownloadDangerType danger_type) { | 375 content::DownloadDangerType danger_type) { |
| 371 NOTREACHED(); | 376 NOTREACHED(); |
| 372 } | 377 } |
| 373 | 378 |
| 374 void FakeDownloadItem::SetOpenWhenComplete(bool open) { | 379 void FakeDownloadItem::SetOpenWhenComplete(bool open) { |
| 375 NOTREACHED(); | 380 NOTREACHED(); |
| 376 } | 381 } |
| 377 | 382 |
| 378 void FakeDownloadItem::SetOpened(bool opened) { | 383 void FakeDownloadItem::SetOpened(bool opened) { |
| 379 NOTREACHED(); | 384 NOTREACHED(); |
| 380 } | 385 } |
| 381 | 386 |
| 387 void FakeDownloadItem::UpdateLastAccessTime() { |
| 388 NOTREACHED(); |
| 389 } |
| 390 |
| 382 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { | 391 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { |
| 383 NOTREACHED(); | 392 NOTREACHED(); |
| 384 } | 393 } |
| 385 | 394 |
| 386 std::string FakeDownloadItem::DebugString(bool verbose) const { | 395 std::string FakeDownloadItem::DebugString(bool verbose) const { |
| 387 NOTREACHED(); | 396 NOTREACHED(); |
| 388 return std::string(); | 397 return std::string(); |
| 389 } | 398 } |
| 390 | 399 |
| 391 } // namespace test | 400 } // namespace test |
| OLD | NEW |