1 // Copyright 2013 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.
5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_BROWSERTEST_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_BROWSERTEST_H_
8 #include "base/basictypes.h"
9 #include "content/public/test/download_test_observer.h"
11 // DownloadTestObserver subclass that observes a download until it transitions
12 // from IN_PROGRESS to another state, but only after StartObserving() is called.
13 class DownloadTestObserverNotInProgress
: public content::DownloadTestObserver
{
15 DownloadTestObserverNotInProgress(content::DownloadManager
* download_manager
,
17 virtual ~DownloadTestObserverNotInProgress();
19 void StartObserving();
22 virtual bool IsDownloadInFinalState(content::DownloadItem
* download
) OVERRIDE
;
24 bool started_observing_
;
26 DISALLOW_COPY_AND_ASSIGN(DownloadTestObserverNotInProgress
);
29 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_BROWSERTEST_H_