| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/download/download_manager.h" | 9 #include "content/browser/download/download_manager.h" |
| 10 | 10 |
| 11 class DownloadStatusUpdater; | 11 class DownloadStatusUpdater; |
| 12 class DownloadItem; | 12 class DownloadItem; |
| 13 | 13 |
| 14 class MockDownloadManager : public DownloadManager { | 14 class MockDownloadManager : public DownloadManager { |
| 15 public: | 15 public: |
| 16 explicit MockDownloadManager(DownloadManagerDelegate* delegate, | 16 explicit MockDownloadManager(DownloadManagerDelegate* delegate, |
| 17 DownloadStatusUpdater* updater) | 17 DownloadStatusUpdater* updater) |
| 18 : DownloadManager(delegate, updater) { | 18 : DownloadManager(delegate, updater) { |
| 19 } | 19 } |
| 20 | 20 |
| 21 // Override some functions. | 21 // Override some functions. |
| 22 virtual void UpdateHistoryForDownload(DownloadItem*) { } | 22 virtual void UpdateHistoryForDownload(DownloadItem*) { } |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 #endif // CHROME_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ | 25 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ |
| OLD | NEW |