| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 void TestDownloadShelf::ManagerGoingDown(content::DownloadManager* manager) { | 41 void TestDownloadShelf::ManagerGoingDown(content::DownloadManager* manager) { |
| 42 DCHECK_EQ(manager, download_manager_); | 42 DCHECK_EQ(manager, download_manager_); |
| 43 download_manager_ = NULL; | 43 download_manager_ = NULL; |
| 44 } | 44 } |
| 45 | 45 |
| 46 void TestDownloadShelf::DoAddDownload(content::DownloadItem* download) { | 46 void TestDownloadShelf::DoAddDownload(content::DownloadItem* download) { |
| 47 did_add_download_ = true; | 47 did_add_download_ = true; |
| 48 } | 48 } |
| 49 | 49 |
| 50 void TestDownloadShelf::DoShow() { | 50 void TestDownloadShelf::DoOpen() { |
| 51 is_showing_ = true; | 51 is_showing_ = true; |
| 52 } | 52 } |
| 53 | 53 |
| 54 void TestDownloadShelf::DoClose(CloseReason reason) { | 54 void TestDownloadShelf::DoClose(CloseReason reason) { |
| 55 is_showing_ = false; | 55 is_showing_ = false; |
| 56 } | 56 } |
| 57 | 57 |
| 58 void TestDownloadShelf::DoHide() { |
| 59 is_showing_ = false; |
| 60 } |
| 61 |
| 62 void TestDownloadShelf::DoUnhide() { |
| 63 is_showing_ = true; |
| 64 } |
| 65 |
| 58 base::TimeDelta TestDownloadShelf::GetTransientDownloadShowDelay() { | 66 base::TimeDelta TestDownloadShelf::GetTransientDownloadShowDelay() { |
| 59 return base::TimeDelta(); | 67 return base::TimeDelta(); |
| 60 } | 68 } |
| 61 | 69 |
| 62 content::DownloadManager* TestDownloadShelf::GetDownloadManager() { | 70 content::DownloadManager* TestDownloadShelf::GetDownloadManager() { |
| 63 return download_manager_; | 71 return download_manager_; |
| 64 } | 72 } |
| OLD | NEW |