| 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 319 int64_t FakeDownloadItem::GetTotalBytes() const { | 319 int64_t FakeDownloadItem::GetTotalBytes() const { | 
| 320   NOTREACHED(); | 320   NOTREACHED(); | 
| 321   return 1; | 321   return 1; | 
| 322 } | 322 } | 
| 323 | 323 | 
| 324 int64_t FakeDownloadItem::GetReceivedBytes() const { | 324 int64_t FakeDownloadItem::GetReceivedBytes() const { | 
| 325   NOTREACHED(); | 325   NOTREACHED(); | 
| 326   return 1; | 326   return 1; | 
| 327 } | 327 } | 
| 328 | 328 | 
|  | 329 const std::vector<DownloadItem::ReceivedSlice>& | 
|  | 330 FakeDownloadItem::GetReceivedSlices() const { | 
|  | 331   NOTREACHED(); | 
|  | 332   static const std::vector<DownloadItem::ReceivedSlice> slices; | 
|  | 333   return slices; | 
|  | 334 } | 
|  | 335 | 
| 329 bool FakeDownloadItem::CanShowInFolder() { | 336 bool FakeDownloadItem::CanShowInFolder() { | 
| 330   NOTREACHED(); | 337   NOTREACHED(); | 
| 331   return true; | 338   return true; | 
| 332 } | 339 } | 
| 333 | 340 | 
| 334 bool FakeDownloadItem::CanOpenDownload() { | 341 bool FakeDownloadItem::CanOpenDownload() { | 
| 335   NOTREACHED(); | 342   NOTREACHED(); | 
| 336   return true; | 343   return true; | 
| 337 } | 344 } | 
| 338 | 345 | 
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 382 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { | 389 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { | 
| 383   NOTREACHED(); | 390   NOTREACHED(); | 
| 384 } | 391 } | 
| 385 | 392 | 
| 386 std::string FakeDownloadItem::DebugString(bool verbose) const { | 393 std::string FakeDownloadItem::DebugString(bool verbose) const { | 
| 387   NOTREACHED(); | 394   NOTREACHED(); | 
| 388   return std::string(); | 395   return std::string(); | 
| 389 } | 396 } | 
| 390 | 397 | 
| 391 }  // namespace test | 398 }  // namespace test | 
| OLD | NEW | 
|---|