| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/download/test_download_shelf.h" | 5 #include "chrome/browser/download/test_download_shelf.h" |
| 6 | 6 |
| 7 #include "content/public/browser/download_manager.h" | 7 #include "content/public/browser/download_manager.h" |
| 8 | 8 |
| 9 TestDownloadShelf::TestDownloadShelf() | 9 TestDownloadShelf::TestDownloadShelf() |
| 10 : is_showing_(false), | 10 : is_showing_(false), |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 void TestDownloadShelf::DoAddDownload(content::DownloadItem* download) { | 34 void TestDownloadShelf::DoAddDownload(content::DownloadItem* download) { |
| 35 did_add_download_ = true; | 35 did_add_download_ = true; |
| 36 } | 36 } |
| 37 | 37 |
| 38 void TestDownloadShelf::DoShow() { | 38 void TestDownloadShelf::DoShow() { |
| 39 is_showing_ = true; | 39 is_showing_ = true; |
| 40 } | 40 } |
| 41 | 41 |
| 42 void TestDownloadShelf::DoClose() { | 42 void TestDownloadShelf::DoClose(CloseReason reason) { |
| 43 is_showing_ = false; | 43 is_showing_ = false; |
| 44 } | 44 } |
| 45 | 45 |
| 46 base::TimeDelta TestDownloadShelf::GetTransientDownloadShowDelay() { | 46 base::TimeDelta TestDownloadShelf::GetTransientDownloadShowDelay() { |
| 47 return base::TimeDelta(); | 47 return base::TimeDelta(); |
| 48 } | 48 } |
| 49 | 49 |
| 50 content::DownloadManager* TestDownloadShelf::GetDownloadManager() { | 50 content::DownloadManager* TestDownloadShelf::GetDownloadManager() { |
| 51 return download_manager_.get(); | 51 return download_manager_.get(); |
| 52 } | 52 } |
| OLD | NEW |