• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
6 #define CHROME_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
7 #pragma once
8 
9 #include "chrome/browser/download/download_manager.h"
10 
11 class DownloadStatusUpdater;
12 class DownloadItem;
13 
14 class MockDownloadManager : public DownloadManager {
15  public:
MockDownloadManager(DownloadStatusUpdater * updater)16   explicit MockDownloadManager(DownloadStatusUpdater* updater)
17       : DownloadManager(updater) {
18   }
19 
20   // Override some functions.
UpdateHistoryForDownload(DownloadItem *)21   virtual void UpdateHistoryForDownload(DownloadItem*) { }
22 };
23 
24 #endif  // CHROME_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
25