blob: c29d9629c15aaab89813ff4b06d93d3495ec68cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_DOWNLOAD_TEST_DOWNLOAD_SHELF_H_
#define CHROME_BROWSER_DOWNLOAD_TEST_DOWNLOAD_SHELF_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "chrome/browser/download/download_shelf.h"
// An implementation of DownloadShelf for testing.
class TestDownloadShelf : public DownloadShelf {
public:
TestDownloadShelf();
virtual ~TestDownloadShelf();
// DownloadShelf:
virtual bool IsShowing() const OVERRIDE;
virtual bool IsClosing() const OVERRIDE;
virtual Browser* browser() const OVERRIDE;
protected:
virtual void DoAddDownload(BaseDownloadItemModel* download_model) OVERRIDE;
virtual void DoShow() OVERRIDE;
virtual void DoClose() OVERRIDE;
private:
bool is_showing_;
DISALLOW_COPY_AND_ASSIGN(TestDownloadShelf);
};
#endif // CHROME_BROWSER_DOWNLOAD_TEST_DOWNLOAD_SHELF_H_
|